This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash is not working when program size goes up.

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

Parents
  • 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

Reply
  • 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

Children