Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

spi_flash_erase

spi_flash_erase
[Function]

Functions

sint8 spi_flash_erase (uint32 u32Offset, uint32 u32Sz)
 Erase a specified portion of SPI Flash.
.

Function Documentation

sint8 spi_flash_erase ( uint32  u32Offset,
uint32  u32Sz 
)

Erase a specified portion of SPI Flash.
.

Parameters:
[in]u32OffsetAddress (Offset) to erase from the SPI flash.
[in]u32SzSize of SPI flash required to be erased.
Note:
It is blocking function
Warning:
  • Address (offset) plus size of data must not exceed flash size.
  • No firmware is required for writing to SPI flash.
  • In case of there is a running firmware, it is required to pause your firmware first before any trial to access SPI flash to avoid any racing between host and running firmware on bus using m2m_wifi_download_mode
  • It is blocking function
See also:
m2m_wifi_download_mode, spi_flash_get_size
Returns:
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.