I don't have 3.0 yet, I'm only going by the message you posted. Most of the migration problems come from changing the CONFIGs.
Your best bet is to post your code. Help those with the answers to help you.
Robert
I don't have 3.0 yet, I'm only going by the message you posted. Most of the migration problems come from changing the CONFIGs.
Your best bet is to post your code. Help those with the answers to help you.
Robert
Demon,
Here's an example:
Code:Define OSC 24 ANSEL = 0 'All ports digital ANSELH = 0 'All ports digital TRISC.3 = 0 pause 100 loop1: DTMFout PortC.3,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] Goto loop1
As you can see, very simple example with no calls to assembler or anything complex. The simple sample programs provided with PBP3 also produces the same error too.
Thanks,
Troy
BTW: This is the screen grab I get when I click on the Error Message:
Troy
Define must be in CAPS for it to work. i.e. #DEFINE OSC 24
The editor that came with PBP3 -- Microcode Studio MCSX (the apparent successor to MCS) -- appears to automatically adjust/correct the "DEFINE" to lowercase. I'm assuming this is intentional??? Nevertheless, it's not the cause of the compiling error as the error still appears even if I remove that entire line from the code.
Regards,
Troy
Are you sure you have selected the correct chip on the MCSX drop down menu?
I suppose you have a new version of MPLAB and a new directory you installed PBP. Not over the old one?
Ioannis
I'm not a 3.0 user either, but the 18F13K50 does not have onboard debug support, so the new compiler may give a warning when invoking DEBUG, even if the DEFINE is to turn it off. If you comment out that line, does the error go away?
Troy,
Microcode Studio MCSX defaults to lower case for the reserve words, but you can change that. To do so, click on the 'View' menu, then select 'Editor Options'. Now select the 'Highlighter' tab and at the bottom of that tab is the 'Reserve Word Formatting' area. Just select the 'Uppercase all' option and your "DEFINE", as well as all reserve words, will be in caps.
Bookmarks