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

MRF24j40 and 887 chip....Write eeprom problems

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



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

MRF24j40 and 887 chip....Write eeprom problems
PostPosted: Wed Mar 23, 2011 10:35 am     Reply with quote

I am using a CCS compiler and trying to write to the internal eeprom of an 887. But every time i write to the eeprom I have to give a reset_cpu command. I am pretty sure the processor is still working as the wdt is not tripping. So i think its the rf. I have even tried to re initialize after the write eeprom and also tried keeping rf in reset then reinitializing. But nothing. i have been trying to work around this for a very long time. Any help would be greatly appreciated.. Thanx
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 23, 2011 12:25 pm     Reply with quote

Try a simple test program which only tests the internal eeprom problem.
See the program shown in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=32722

If it doesn't work, then post your compiler version.
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

PostPosted: Wed Mar 23, 2011 1:01 pm     Reply with quote

i have used this chip before on other projects and do not have trouble with the actual writing or reading.. But for the RF interface it uses SPI. So I am thinking it is screwing that up some how. I have tried reading from the MRF device and I still can.. I am at a loss..
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 23, 2011 1:09 pm     Reply with quote

Comment out the "guts" of each MRF driver routine, so that each driver
function is largely empty. If it is supposed to return a value, then put in
a line of code to return a nominal value. Then run your program and
see if it still fails.
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

PostPosted: Fri Mar 25, 2011 8:55 am     Reply with quote

I changed to a 16F1937 chip. I planned on moving to this series anyways. Same code works fine. I can write_eeprom all I want and everything still works fine. Not sure what was going on but now it does not matter to me. Thanks for trying to help. TTY
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