Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more
Functions | |
| sint8 | spi_flash_write (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Sz) |
| Write a specified portion of data to SPI Flash. . | |
Function Documentation
Write a specified portion of data to SPI Flash.
.
- Parameters:
-
[in] pu8Buf Pointer to data buffer which contains the required to be written. [in] u32Offset Address (Offset) to write at the SPI flash. [in] u32Sz Total number of size of data bytes
- Note:
- It is blocking function
- It is user's responsibility to verify that data has been written successfully by reading data again and compare it with the original.
- 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.
- Before writing to any section, it is required to erase it first.
- Address (offset) plus size of data must not exceed flash size.
- See also:
- m2m_wifi_download_mode, spi_flash_get_size, spi_flash_erase
- Returns:
- The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Generated on Wed Jul 13 2022 16:32:38 by
1.7.2