2024-07-03 10:01 PM - edited 2024-07-03 10:02 PM
Hi!!!
I am want to implement Emulation of EEPROM for STM32F401CCU6 Controller which is having 256kb of flash memory. but not sure of how exactly that i have to use it. I have downloaded X-CUBE-EEPROM software but in that there is no any project related to STMF4 series for reference.
Can anyone provide me an example code for STM32F401 series controller.
Thank you,
regards,
ANIL.
Solved! Go to Solution.
2024-07-05 05:01 AM - edited 2024-07-05 05:05 AM
The so-called "Virtual Addresses" are just arbitrary tags to identify the data items:
The data items are a fixed size.
EDIT:
In the AN3969 code, the data items are 16-bit:
So, if you want to store 32-bit data, you will have to split it across 2 "variables" in the emulated EEPROM - each with its own "Virtual Address".
Or re-write the code.
2024-07-04 01:41 AM - edited 2024-07-04 01:42 AM
Hello,
For F401 case, you can refer to that example:
or
2024-07-04 03:51 AM - edited 2024-07-05 04:59 AM
@Anil3 wrote:I have downloaded X-CUBE-EEPROM software but in that there is no any project related to STMF4 series for
X-CUBE-EEPROM doesn't support the F4 Series (nor F1, F2, F3 nor WB):
There are separate Application Notes & Firmware Packs for those series - for F4, you require AN3969.
2024-07-05 04:51 AM - edited 2024-07-05 04:58 AM
Hi @SofLit and @Andrew Neil
In the application note i have observed that they have assigned 3 virtual address for 3 variable, could you explain me that how these virtual address are to be assigned? and is it like if i am tring to write 32 bit variable then i need to assign 32bit address??
Thank you!!
regards,
ANIL.
2024-07-05 05:01 AM - edited 2024-07-05 05:05 AM
The so-called "Virtual Addresses" are just arbitrary tags to identify the data items:
The data items are a fixed size.
EDIT:
In the AN3969 code, the data items are 16-bit:
So, if you want to store 32-bit data, you will have to split it across 2 "variables" in the emulated EEPROM - each with its own "Virtual Address".
Or re-write the code.