STM32F401CCU6 EEPROM Emulation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-05 5:01 AM - edited ‎2024-07-05 5: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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-04 1:41 AM - edited ‎2024-07-04 1:42 AM
Hello,
For F401 case, you can refer to that example:
or
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-04 3:51 AM - edited ‎2024-07-05 4: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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-05 4:51 AM - edited ‎2024-07-05 4:58 AM
Hi @mÆŽALLEm 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-05 5:01 AM - edited ‎2024-07-05 5: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.
A complex system designed from scratch never works and cannot be patched up to make it work.
