2 years, 2 months ago.

SAVING DATA 50 KB OF DATA ON FLASH MEMORY FOR NUCLEO- F767ZI BOARD USING MBED OS

Hi guys,

I am using mbed OS on Nucleo-F767ZI. It has a 2MB flash. I need to store data on non-volatile store ( Data size is around 50 KB). Can anyone please tell me on how to store data which is not removed when the power is removed? How can I achieve this using mbed OS?

Please check FlashIAP: https://os.mbed.com/docs/latest/reference/flash-iap.html

posted by Osamu Koizumi 19 Jul 2018

3 Answers

2 years, 2 months ago.

The 2MB flash of Nucleo-F767ZI is only for program. You need extra hardware like EEPROM, FRAM or something else.

Visit https://os.mbed.com/components/cat/storage/

The flash is for the program but can the remaining flash not be used for this purpose?

posted by Zohaib Salahuddin 19 Jul 2018
2 years, 2 months ago.

You are free to use the remaining sectors of the internal flash memory as you wish. You need to follow the ST application notes for how to enable writes to the flash. Also think about write-leveling if you plan to do a significant number of writes to the flash.

Is there any way I can used mbed OS to write to the remaining sectors of the flash?

posted by Zohaib Salahuddin 19 Jul 2018

mbed allows you to call the low-level APIs as well the documentation is supplied by the vendor which is ST in this case. The ST forum probably will be able to show you how to do it faster than asking here. You can import that code to mbed and call it with some minor cleanup.

That forum is here: https://community.st.com/community/stm32-forum/content

posted by Bill Bellis 19 Jul 2018
2 years, 2 months ago.

Please check FlashIAP: https://os.mbed.com/docs/latest/reference/flash-iap.html

Great! I did not know that interface had been added to mbed thank you!

posted by Bill Bellis 19 Jul 2018