Hi all,
I am working on C8051F350 for a data aq. project. when the code size was small, the flash was working, as it grows up beyong 6.9 k it stopped working and getting hang somewhre. even erasing the flash is not working. some threads i have seen in the same forum but it didnt helps out.
plz see this thread. it didnt help me out. http://www.keil.com/forum/6131/
i am using the same functions provided by silabs without much of changes.
can anybody tell me what would be the problem as the programs size grows up. i am a novice to microcontrollers and just starting learning.
Plz help me.
Regards
Rijo
Ah yes - it should be obvious that the total size of all your code cannot exceed the size of the Flash!
In exactly the same way that you can't install a 100MB program on a PC that only has an 80MB hard drive...!
"In exactly the same way that you can't install a 100MB program on a PC that only has an 80MB hard drive...!"
Lots of people did. Lots of people ended up with broken files when their Stacker disk-compression software malfunctioned ;)
Finally I got the solution. The onchip memory available is 8 k including flash. if flash is used code size should be small, coz it will take a minimum of 512 bytes.
could be language, could be a misunderstanding
the f35x chip have 8k flash plus 256 (I)DATA plus 512 XDATA
so you have (SILabs 'steals' the upper part of flash) 7.5k of flash, where does the "minimum of 512 bytes" come from.
my guess is that your 6.9 k really is 7.9k and you are writing to the "protected protect area" of the chip (1FE00 - 1FFF)
Erik
Maybe that's how much his "bootloader" uses up?