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

Noticed this about write_program_memory

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



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

Noticed this about write_program_memory
PostPosted: Thu Apr 12, 2007 1:12 pm     Reply with quote

I noticed a problem with WRITE_PROGRAM_MEMORY that I haven't seen on the search.

I have a way around it easily, but it appears that if the first time after reset that you call it you are using an address that is 2 bytes after a 64-byte boundary, occasionally the written value will be incorrect.

I changed (to what I was intending anyway) to first write on 64-byte boundary and have had no issues.

This is on 18F4520, with version 4.030, using some mods to the loader.c example. Found it because without a correct first byte on a bootloaded program, it will bomb. But it was strange that it works sometimes.
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