I'm having some problem with Virtual EEPROM API with STM32F MCU
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-02-01 2:30 AM
Posted on February 01, 2013 at 11:30
When the virtual eeprom api function is erasing a page, it interrupts systick interrupt.
I toggled a led on every 100us to check systick interrupt in alive, but when the api function start to erase a page(for example 0x08030000), there are no interrupt untill it finishes(it was take around 30ms) It is normal or there are someting else that interrupts the systick interrupt? #stm32f #eeprom
Labels:
- Labels:
-
EEPROM devices
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-02-01 3:25 AM
Posted on February 01, 2013 at 12:25
This seems to be normal, check the Programming Manual of the STM32F2:
''During a write/erase operation to the Flash memory, any attempt to read the Flash memory will caused the bus to stall. Read operations are processed correctly once the program operation has completed. This means that code or data fetches cannot be performed while a write/erase operation is ongoing.'' No code fetching, no program execution. Also read AN3390, 3.5 ''Real-time consideration'' for improving this behaviour.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-02-01 4:17 AM
Posted on February 01, 2013 at 13:17
If you run/read from FLASH while writing or erasing it the processor will stall. Running from RAM will resolve this conflict and resultant stalling.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-02-03 3:23 PM
Posted on February 04, 2013 at 00:23
thanks alot, i should have checked the programming manual carfully.
