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 support@ccsinfo.com

Beware - PIC18F45J10 and #Device (PCH 4.025)

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







Beware - PIC18F45J10 and #Device (PCH 4.025)
PostPosted: Tue Apr 10, 2007 3:04 pm     Reply with quote

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

View user's profile Send private message

PIC18f45J10 Not working with simple printf("Hello"
PostPosted: Mon May 14, 2007 2:26 am     Reply with quote

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.
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