View previous topic :: View next topic |
Author |
Message |
Scottzilla
Joined: 17 Jul 2012 Posts: 14
|
|
Posted: Fri Dec 28, 2012 9:54 am |
|
|
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
|
|
Posted: Fri Dec 28, 2012 4:10 pm |
|
|
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
|
|
Posted: Sat Dec 29, 2012 5:32 am |
|
|
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
|
|
Posted: Sat Dec 29, 2012 12:14 pm |
|
|
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
|
|
Posted: Tue Jan 01, 2013 12:36 pm |
|
|
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
|
|
Posted: Fri Jan 11, 2013 4:18 am |
|
|
I did not understand the solution is? |
|
|
Scottzilla
Joined: 17 Jul 2012 Posts: 14
|
|
Posted: Sat Feb 16, 2013 6:51 pm |
|
|
For which part? |
|
|
|