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

Strange PCD implementation of 24FxxKA chips

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



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

Strange PCD implementation of 24FxxKA chips
PostPosted: Thu Oct 29, 2009 4:57 pm     Reply with quote

A colleague reported about obscure behaviour of 24FxxKA chips with PCD, that apparently crashed at the first function call. It turned out, that PCD sets the stack to 0x1580..0x15ff, a memory area, that doesn't exist with these chips.

You need to specify a correct stack usage explicitely
Code:
#build(stack=0xd7f:0xdFF)

Also the configuration registers seem to be accessed upside down (according to a recent MPLAB version), so oscillator, watchdog and other settings are completely confused.

There are more flaws as forgotten SPI resources. It's possibly though to use the chip with PCD.
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