This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48 write to F021

Other Parts Discussed in Thread: RM48L952

Hello, 

I've been reading that it is possible to write to the flash module, in privileged mode. My question is: How many times can I write to the flash? How much space do I have available to write on? Does it depend on the footprint of my application?

  • Hello Pablo,

    Yes, it is possible to erase and reprogram the flash banks on the RM48x MCUs. This procedure requires the use of the TI F021 flash API that you can download from here.

    The number of times that you can erase and reprogram a flash bank is specified in the RM48x MCU datasheets. For example, the RM48L952 datasheet indicates that the main 3MB flash array can be cycled up to 1000 times, while the smaller 64KB flash array can be cycled up to 100,000 times. Both these specifications are valid for a 15-year retention period requirement.

    Regards, Sunil

  • So it depends on the code size to write on the 3MB flash and I can only write to it 1000 times.

    I want to make a PLC. Would you recommend using the internal flash to store the ladder(or any other language) code? I think that it's probably best to use an external non volatile memory for that. What do you think?

  • Hi Pablo,

    That really depends on how many times you need to change the program code. If the application does not require the program code or constants to be changed frequently, then using the internal flash is the best option. If you add an external non-volatile memory, then code execution out of this memory directly will not be very efficient.

    There is also an internal 64KB flash bank dedicated for data storage, as I indicated. This bank cannot be used for code execution though.

    Regards, Sunil