Added raw QSPI functionality for the Arduino Giga #224
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Device Tree Configuration (
variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay
):pf10
pg6
pd11
,pd12
,pe2
,pf6
qspi_flash
device node with:st,stm32-qspi-nor
Board Configuration (
variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf
):CONFIG_FLASH=y
CONFIG_FLASH_STM32_QSPI=y
(corrected from invalidCONFIG_SPI_STM32_QSPI
)CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
Library (
libraries/QSPI
)bool begin()
- Initialize QSPI flashbool read(uint32_t address, void* data, size_t size)
- Read databool write(uint32_t address, const void* data, size_t size)
- Write databool erase(uint32_t address, size_t size)
- Erase sector/blocksize_t getFlashSize()
- Get total flash sizesize_t getSectorSize()
- Get erase sector sizesize_t getPageSize()
- Get write page sizebool isReady()
- Check if flash is readybool isValidAddress(uint32_t address, size_t size)
- Validate address rangevoid end()
- Deinitialize** Example Sketch**('libraries/QSPI/examples')
Initialises flash storage, erases sectors, reads and writes in a loop.