Sorry if this is a repost or general knowledge. I seached and did not find any mention of this issue.
I ported code to the PIC18F45J10 and it compiled, but did not run.
I traced the listing and disassembly and everything looked perfect.
Finally, I looked at program memory (using MPLAB) and discovered that the first 4 words of program memory were 0xF0?? (aka "nop"). There was no "goto @main"
My first thought was that it was mis-allocation of the configuration bits (because there were 4 words affected). However after much frustration and downloads of all of the latest revisions of everything to no avail, I discovered that directive "#ID CHECKSUM" was the culprit.
Apparently, the #ID directive doesn't work well with the 45J10 - not surprising seeing as though the 45J10 does not have user ID memory space. (It would be nice if the compiler would error or warn.)
abk
Joined: 14 May 2007 Posts: 1
PIC18f45J10 Not working with simple printf("Hello"
Posted: Mon May 14, 2007 2:26 am
That was well sported cos I've been trying to get just a simple printf("Hello"); to work using the pic18f45j10, but to no avil either, I only get gabbage character. So whats the remedy to correcting it so that it could work normally.
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