Flash Memory Control#

Definition and description of public flash manipulation routines.

Note

  • During an erase or a write the flash is not available, which means code will not be executable from flash. These routines still execute from flash, though, since the bus architecture can support doing so. Additonally, this also means all interrupts will be disabled.

Hardware documentation indicates 40us for a write and 21ms for an erase.

See flash.h for source code.

Functions#

bool

Tells the calling code if a Flash Erase operation is active.

Function Documentation#

halFlashEraseIsActive#

bool halFlashEraseIsActive (void )

Tells the calling code if a Flash Erase operation is active.

Parameters
N/A

This state is import to know because Flash Erasing is ATOMIC for 21ms and could disrupt interrupt latency. But if an ISR can know that it wasn't serviced immediately due to Flash Erasing, then the ISR has the opportunity to correct in whatever manner it needs to.

Returns

  • A bool flag: true if Flash Erase is active, false otherwise.


Definition at line 46 of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/platform/base/hal/micro/cortexm3/flash.h