Jump to content
Sign in to follow this  
Conrad

Problem Compiling Fmesure Example From Sourceboost

Recommended Posts

Hello I am having some problems compiling the FMesure program listed as an example from the SourceBoost pages.

 

click here

 

I am using the SourceBoost IDE but I confess to being new to the program. Presumably if I unzip the files and make sure that lcd6Pin.c and FMesure.c are included the project should build, link and compile ok. I get lots of errors such as the code below indicates. I am using C2C plus toolsuite with the matrix multimedia PPP parallel port programmer, although I think should be obvious from the output window code :-)

 

Please help!

 

Compiling...

C:\PROGRA~1\SOURCE~1\c2c.exe -PPIC16F84 -SRC -ols -md -O2 -Ip16F84.inc -oFMesure.asm  FMesure.c Lcd6Pin.c

C2C-plus 5.9.1e C-compiler  Copyright(C) 1998-99,2000-2005 by Pavel Baranov
http://www.picant.com/c2c/c.html
support@picant.com
(Extended version)

Licensed to: Conrad Farlow


FMesure.c
Lcd6Pin.c(94): Error: General error
Lcd6Pin.c(155): Error: General error
Lcd6Pin.c(206): Error: General error
Lcd6Pin.c(206): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(214): Error: General error
Lcd6Pin.c(214): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(239): Error: General error
Lcd6Pin.c(241): Error: General error
Lcd6Pin.c(241): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(242): Error: General error
Lcd6Pin.c(243): Error: General error
Lcd6Pin.c(243): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(244): Error: General error
Lcd6Pin.c(245): Error: General error
Lcd6Pin.c(245): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(246): Error: General error
Lcd6Pin.c(248): Error: General error
Lcd6Pin.c(248): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(249): Error: General error
Lcd6Pin.c(251): Error: General error
Lcd6Pin.c(251): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(252): Error: General error
Lcd6Pin.c(253): Error: General error
Lcd6Pin.c(253): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(254): Error: General error
Lcd6Pin.c(255): Error: General error
Lcd6Pin.c(255): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(256): Error: General error
Lcd6Pin.c(257): Error: General error
Lcd6Pin.c(257): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(258): Error: General error
Lcd6Pin.c(274): Error: General error
Lcd6Pin.c(274): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(285): Error: General error
Lcd6Pin.c(285): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(295): Error: General error
Lcd6Pin.c(295): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(307): Error: General error
Lcd6Pin.c(307): Error: General error
Lcd6Pin.c(309): Error: General error
Lcd6Pin.c(309): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(313): Error: General error
Lcd6Pin.c(323): Error: General error
Lcd6Pin.c(323): Error: General error
Lcd6Pin.c(325): Error: General error
Lcd6Pin.c(325): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(329): Error: General error
Lcd6Pin.c(341): Error: General error
Lcd6Pin.c(345): Error: General error
Lcd6Pin.c(345): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(349): Error: General error
Lcd6Pin.c(354): Error: General error
Lcd6Pin.c(354): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(355): Error: General error
Lcd6Pin.c(355): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(356): Error: General error
Lcd6Pin.c(356): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(357): Error: General error
Lcd6Pin.c(357): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(358): Error: General error
Lcd6Pin.c(358): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
FMesure.c(53): Error: General error
FMesure.c(57): Error: General error
FMesure.c(63): Error: General error in function definition
Lcd6Pin.c
Lcd6Pin.c(93): Error: The function 'Delay' is already defined
Lcd6Pin.c(94): Error: General error
Lcd6Pin.c(104): Error: The function 'Write_8_Bit' is already defined
Lcd6Pin.c(108): Error: Variable expected
Lcd6Pin.c(109): Error: Variable expected
Lcd6Pin.c(111): Error: Variable expected
Lcd6Pin.c(112): Error: Variable expected
Lcd6Pin.c(114): Error: Variable expected
Lcd6Pin.c(115): Error: Variable expected
Lcd6Pin.c(117): Error: Variable expected
Lcd6Pin.c(118): Error: Variable expected
Lcd6Pin.c(120): Error: Variable expected
Lcd6Pin.c(122): Error: Variable expected
Lcd6Pin.c(132): Error: The function 'Write_4_Bit' is already defined
Lcd6Pin.c(137): Error: Variable expected
Lcd6Pin.c(138): Error: Variable expected
Lcd6Pin.c(140): Error: Variable expected
Lcd6Pin.c(141): Error: Variable expected
Lcd6Pin.c(143): Error: Variable expected
Lcd6Pin.c(144): Error: Variable expected
Lcd6Pin.c(146): Error: Variable expected
Lcd6Pin.c(147): Error: Variable expected
Lcd6Pin.c(150): Error: Variable expected
Lcd6Pin.c(152): Error: Variable expected
Lcd6Pin.c(155): Error: General error
Lcd6Pin.c(158): Error: Variable expected
Lcd6Pin.c(159): Error: Variable expected
Lcd6Pin.c(161): Error: Variable expected
Lcd6Pin.c(162): Error: Variable expected
Lcd6Pin.c(164): Error: Variable expected
Lcd6Pin.c(165): Error: Variable expected
Lcd6Pin.c(167): Error: Variable expected
Lcd6Pin.c(168): Error: Variable expected
Lcd6Pin.c(171): Error: Variable expected
Lcd6Pin.c(173): Error: Variable expected
Lcd6Pin.c(184): Error: The function 'DataMode' is already defined
Lcd6Pin.c(185): Error: Variable expected
Lcd6Pin.c(193): Error: The function 'FunctionMode' is already defined
Lcd6Pin.c(194): Error: Variable expected
Lcd6Pin.c(203): Error: The function 'LcdClear' is already defined
Lcd6Pin.c(206): Error: General error
Lcd6Pin.c(206): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(212): Error: The function 'Set8BitMode' is already defined
Lcd6Pin.c(214): Error: General error
Lcd6Pin.c(214): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(222): Error: The function 'LcdSetup' is already defined
Lcd6Pin.c(225): Error: Variable expected
Lcd6Pin.c(226): Error: Variable expected
Lcd6Pin.c(227): Error: Variable expected
Lcd6Pin.c(228): Error: Variable expected
Lcd6Pin.c(229): Error: Variable expected
Lcd6Pin.c(230): Error: Variable expected
Lcd6Pin.c(233): Error: Variable expected
Lcd6Pin.c(234): Error: Variable expected
Lcd6Pin.c(239): Error: General error
Lcd6Pin.c(241): Error: General error
Lcd6Pin.c(241): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(242): Error: General error
Lcd6Pin.c(243): Error: General error
Lcd6Pin.c(243): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(244): Error: General error
Lcd6Pin.c(245): Error: General error
Lcd6Pin.c(245): Error: Error in function call. The function was declared as 'Write_8_Bit( char )'
Lcd6Pin.c(246): Error: General error
Lcd6Pin.c(248): Error: General error
Lcd6Pin.c(248): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(249): Error: General error
Lcd6Pin.c(251): Error: General error
Lcd6Pin.c(251): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(252): Error: General error
Lcd6Pin.c(253): Error: General error
Lcd6Pin.c(253): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(254): Error: General error
Lcd6Pin.c(255): Error: General error
Lcd6Pin.c(255): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(256): Error: General error
Lcd6Pin.c(257): Error: General error
Lcd6Pin.c(257): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(258): Error: General error
Lcd6Pin.c(271): Error: The function 'LcdSetPos' is already defined
Lcd6Pin.c(274): Error: General error
Lcd6Pin.c(274): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(283): Error: The function 'LcdLine1' is already defined
Lcd6Pin.c(285): Error: General error
Lcd6Pin.c(285): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(293): Error: The function 'LcdLine2' is already defined
Lcd6Pin.c(295): Error: General error
Lcd6Pin.c(295): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(303): Error: The function 'LcdClearLine1' is already defined
Lcd6Pin.c(307): Error: General error
Lcd6Pin.c(307): Error: General error
Lcd6Pin.c(309): Error: General error
Lcd6Pin.c(309): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(313): Error: General error
Lcd6Pin.c(319): Error: The function 'LcdClearLine2' is already defined
Lcd6Pin.c(323): Error: General error
Lcd6Pin.c(323): Error: General error
Lcd6Pin.c(325): Error: General error
Lcd6Pin.c(325): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(329): Error: General error
Lcd6Pin.c(335): Error: The function 'LcdWrite' is already defined
Lcd6Pin.c(341): Error: General error
Lcd6Pin.c(345): Error: General error
Lcd6Pin.c(345): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(349): Error: General error
Lcd6Pin.c(353): Error: The function 'LcdWriteInt' is already defined
Lcd6Pin.c(354): Error: General error
Lcd6Pin.c(354): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(355): Error: General error
Lcd6Pin.c(355): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(356): Error: General error
Lcd6Pin.c(356): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(357): Error: General error
Lcd6Pin.c(357): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'
Lcd6Pin.c(358): Error: General error
Lcd6Pin.c(358): Error: Error in function call. The function was declared as 'Write_4_Bit( char )'

Finished.
Failed to locate output file 'FMesure.asm'
Done

Failed

Share this post


Link to post
Share on other sites

Conrad,

 

I just unzip the FMeasure project and dumped the files into a folder.

I open the project file included in the project.

 

Heres my output

 

Compiling...

C:\PROGRA~1\SO4BA7~1\c2c.exe -PPIC16F84 -SRC -ols -md -O2 -Ip16F84.inc -oFMesure.asm  FMesure.c

C2C-plus 5.9.1e C-compiler  Copyright(C) 1998-99,2000-2005 by Pavel Baranov
http://www.picant.com/c2c/c.html
support@picant.com
(Extended version)

Licensed to: David Hobday


FMesure.c
Lcd6Pin.c(274): Warning: Possible truncation to 8-bit
Lcd6Pin.c(354): Warning: Possible truncation to 8-bit
Lcd6Pin.c(355): Warning: Possible truncation to 8-bit
Lcd6Pin.c(356): Warning: Possible truncation to 8-bit
Lcd6Pin.c(357): Warning: Possible truncation to 8-bit
Lcd6Pin.c(358): Warning: Possible truncation to 8-bit
Warning: The function '_LcdSetPos' was not called. Code generation skipped
Message: Built-in variables are obsolete. Use variables defined inside the system header file
Optimized 89 instruction(s)


Finished.
Done

 

Are you using the supplied project or creating your own ?

 

Regards

Dave

Share this post


Link to post
Share on other sites

Hi Dave well I 'thought' that I had done what you suggested, yet when I looked at the unzipped folder it appeared to have some extra files in it. In hindsight I think that I must have tried to compile Lcd6Pin first. Anyway I unzipped the folder to a different location and all is ok with the compiler.

 

Now the problem is that I can't get the LCD to work, it is definitely wired correctly, the datasheet suggests that it is pin compatible with the one shown on Gerard Burger's schematic. My LCD uses a KS0070B controller IC.

 

Any ideas? Is there something I could use as a quick check to see if the LCD is functional?

 

Conrad

Share this post


Link to post
Share on other sites

I have verified that the LCD is ok as I have it displaying some text. So I wonder what the problem could be with the FMesure project? Does anyone have any ideas?

 

Conrad

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...