View previous topic :: View next topic |
Author |
Message |
rngolding
Joined: 07 Sep 2003 Posts: 8 Location: Shrewsbury, UK
|
LASCAR MDM-1 display demo software doesn't compile. |
Posted: Wed Feb 04, 2009 9:37 am |
|
|
Hi, has anyone tried compiling the CCS 'analog1' demo software provided for the LASCAR MDM-1 LCD display:-
(available here - http://www.geocities.com/g13685/C_Software.html)
I've tried compiling it, but get the following error:
------------------------------------------
>>> Warning 203 "analog1.c" Line 54(1,1): Condition always TRUE
*** Error 160 "analog1.c" Line 105(0,1): EXTERNal symbol not found mdm_cursor_position
1 Errors, 2 Warnings.
Halting build on first failure as requested.
--------------------------------------------
The author claims it works with the old 3 series PCM compiler but, for the life of me, I can't fathom out out to get it to work with the later 4 series (4.082).
Any help/comments greatfully appreciated |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Feb 04, 2009 12:43 pm |
|
|
That's a link to the main page. Can you post a direct link to the code
that you downloaded ? Because if I click on the Lascar link, it goes
to a page with a million more links on it. |
|
|
rngolding
Joined: 07 Sep 2003 Posts: 8 Location: Shrewsbury, UK
|
Lascar MDM-1 software link |
Posted: Wed Feb 04, 2009 3:44 pm |
|
|
Hi PCM Programmer - thanks for your reply.
The full link for the MDM-1 demo analog1.c software is:
http://www.geocities.com/g13685/mdm_demo_ccs.zip
best regards, Richard
ps sorry if this is repeat - not sure the original reply worked! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Feb 04, 2009 3:56 pm |
|
|
To get rid of the errors, do these changes:
1. In the Analog1.c file, add the 'void' keyword to main():
2. Edit the mdm.h file and delete all 'extern' keywords. There are 8 lines
where you need to do this. Don't change anything else on those lines. |
|
|
rngolding
Joined: 07 Sep 2003 Posts: 8 Location: Shrewsbury, UK
|
|
Posted: Thu Feb 05, 2009 6:00 am |
|
|
Thanks - I had sussed the need to add the void to the main rfunction.
I deleted the 8 'external' references in the mdm.h file but now get the following error:
---------------------------------------------------------------------------------
Executing: "C:\CCS\Ccsc.exe" +FM "mdm.c" +EXPORT +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 128 "mdm.c" Line 31(1,1): A #DEVICE required before this line
1 Errors, 0 Warnings.
Halting build on first failure as requested.
----------------------------------------------------------------------------------
I'm now using latest version (4.085) - did you get the above error?
I then tried inserting the default #device CONST=ROM statement into the analog1.c, which produces the same error.
Inserting #device CONST=READ_ONLY, produces the following error:
--------------------------------------------------------------------------------
>>> Warning 203 "analog1.c" Line 56(1,1): Condition always TRUE
*** Error 74 "analog1.c" Line 107(0,1): Not enough RAM for all variables
1 Errors, 2 Warnings.
Halting build on first failure as requested.
----------------------------------------------------------------------------------
Is there another #device statement that the compiler is expecting? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Feb 05, 2009 9:40 am |
|
|
The MPLAB project should have only one file in "Source Files" list on the
left side of the screen. This one:
Remove mdm.c from the Source files list. |
|
|
rngolding
Joined: 07 Sep 2003 Posts: 8 Location: Shrewsbury, UK
|
|
Posted: Thu Feb 05, 2009 10:09 am |
|
|
Thanks a million PCM Programmer - that's fixed it.
That's something else I've learned today!
best regards, Richard |
|
|
|