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

18F4550 + Enhanced CPU
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
Scottzilla



Joined: 17 Jul 2012
Posts: 14

View user's profile Send private message

PostPosted: Fri Dec 28, 2012 9:54 am     Reply with quote

Current challenge: Since this was originally made for a 24Kbyte part, it's loading my code just fine except for the fact that it cuts it off after 0x5fff. Has anybody figured out where to increase the upper limit so I can use the entire 32Kbyte the 18F4553 offers?
Scottzilla



Joined: 17 Jul 2012
Posts: 14

View user's profile Send private message

PostPosted: Fri Dec 28, 2012 4:10 pm     Reply with quote

I think this line in pic_bootloader.h might be what needs to be changed:

Code:
#define BOOT_FLASH_SIZE      0x6000   /* Program Memory Size */
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Dec 29, 2012 5:32 am     Reply with quote

Scottzilla,
We don't want to spoon feed you everything.

24kb is in decimal notation. Convert to hex and you will find 0x6000.
So yes, without knowing the bootloader code it seems like you have found the value to be changed. Change it to 32kb and see if it works.
Scottzilla



Joined: 17 Jul 2012
Posts: 14

View user's profile Send private message

PostPosted: Sat Dec 29, 2012 12:14 pm     Reply with quote

Quote:
Scottzilla,
We don't want to spoon feed you everything.


Definitely don't want/need to be spoonfed. I'm mostly logging my progress here in hopes that what I figure out will be helpful to others as it seems that many people have problems getting this bootloader to work.

Yup, 0x6000 ~ 24k. I've changed the value to 0x8000 (the upper end of the program memory area for the 18F4553). Now I'm trying to build the executable again so I can try it out.
Scottzilla



Joined: 17 Jul 2012
Posts: 14

View user's profile Send private message

PostPosted: Tue Jan 01, 2013 12:36 pm     Reply with quote

Sheesh, that was a pain to build. It fixed the problem, though, and the bootloader now writes the entire code.

LMK if anyone needs fw_update.exe for 32k parts.
fkl



Joined: 20 Nov 2010
Posts: 44

View user's profile Send private message

PostPosted: Fri Jan 11, 2013 4:18 am     Reply with quote

I did not understand the solution is?
Scottzilla



Joined: 17 Jul 2012
Posts: 14

View user's profile Send private message

PostPosted: Sat Feb 16, 2013 6:51 pm     Reply with quote

For which part?
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