CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LASCAR MDM-1 display demo software doesn't compile.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rngolding



Joined: 07 Sep 2003
Posts: 8
Location: Shrewsbury, UK

View user's profile Send private message

LASCAR MDM-1 display demo software doesn't compile.
PostPosted: Wed Feb 04, 2009 9:37 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Feb 04, 2009 12:43 pm     Reply with quote

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

View user's profile Send private message

Lascar MDM-1 software link
PostPosted: Wed Feb 04, 2009 3:44 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Feb 04, 2009 3:56 pm     Reply with quote

To get rid of the errors, do these changes:

1. In the Analog1.c file, add the 'void' keyword to main():
Quote:

void 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

View user's profile Send private message

PostPosted: Thu Feb 05, 2009 6:00 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 05, 2009 9:40 am     Reply with quote

The MPLAB project should have only one file in "Source Files" list on the
left side of the screen. This one:
Quote:
analog1.c

Remove mdm.c from the Source files list.
rngolding



Joined: 07 Sep 2003
Posts: 8
Location: Shrewsbury, UK

View user's profile Send private message

PostPosted: Thu Feb 05, 2009 10:09 am     Reply with quote

Thanks a million PCM Programmer - that's fixed it.

That's something else I've learned today!

best regards, Richard
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group