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 flash memory in bootloader
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jeremiah



Joined: 20 Jul 2010
Posts: 1426

View user's profile Send private message

PostPosted: Thu Sep 06, 2012 7:55 pm     Reply with quote

naughty_mark wrote:

Hi, Jeremiah
I just tried your advice, I commented out the header files in main.c file which may cause compiling errors described above, and also use a blank main()function.
Then I got this compiling error
--- Info 300 "UNIT_TEST.c" Line 238(0,7): More info: * Access violation at address 018798E7 in module 'PCD.dll'. Read of address 84CE9E0E
*** Error 44 "UNIT_TEST.c" Line 238(0,7): Internal Error - Contact CCS OUTPUT FILE O
1 Errors, 28 Warnings.
Build Failed.

I don't know what does it mean? Confused
Thanks mate


Actually, that is the error I am getting too. I also get it with the code you posted. You may have to contact CCS support and ask them to take a look at it. You would want to send them the c file so they could replicate it.


EDIT:
As a point of interest, if you change your addresses to normal memory:
Code:

#define LOADER_ADDR           (0x2A400)
#define LOADER_END            (0x2A7FF)


The error goes away and compiles nicely. So I *think* the addresses are tripping up the compiler. CCS support could verify either way.
naughty_mark



Joined: 29 Aug 2012
Posts: 97

View user's profile Send private message

PostPosted: Thu Sep 06, 2012 8:09 pm     Reply with quote

Thank you very much, mate! I give up~~and try my bootloader code just in main flash memory to see if it can works well and maybe later let CCS know this to find the root cause.
Thanks again.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Sep 07, 2012 12:10 am     Reply with quote

I wasn't aware of the "auxilary flash memory" thing. A plausible explanation is to consider it as a feature
presently not fully supported by CCS PCD. I notice that there's an Aux Mem entry in the device editor, so CCS
is at least preparing to support the feature.

CCS support should clarify.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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