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

write_program_memory

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







write_program_memory
PostPosted: Wed Mar 09, 2005 10:59 am     Reply with quote

I am having problems with the write_program_memory function used on an 18F2620. CCSC PIC C 3.219.

We have written our own bootloader which is much the same as the example provided with the compiler. However, it seems that the write_program_memory function calls another internal function (FLASH_WR or something like that) which is not in a constant memory location. When loading a new program, the upload works great until FLASH_WR is overwritten, then write_program_memory stops working. Any thoughts? (nb: same with RS232 getc( ) function, but this one is simple to inline).

If this is the case does anyone have a C/asm implementation of write_program_memory?

Many thanks.
Guest
Guest







#org
PostPosted: Wed Mar 09, 2005 11:48 am     Reply with quote

#org XXXX default
...
write_program_memory( )
...
#org default

seems to do it.
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