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_read (uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz) |
| Read a specified portion of data from SPI Flash. . | |
Function Documentation
Read a specified portion of data from SPI Flash.
.
- Parameters:
-
[out] pu8Buf Pointer to data buffer which will fill in with data in case of successful operation. [in] u32Addr Address (Offset) to read from at the SPI flash. [in] u32Sz Total size of data to be read in bytes
- Warning:
- Address (offset) plus size of data must not exceed flash size.
- No firmware is required for reading from 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
- Address (offset) plus size of data must not exceed flash size.
- Note:
- It is blocking function
- 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.
Generated on Wed Jul 13 2022 16:32:38 by
1.7.2