maudeve-it / W25Qxxx_SPI_FLASH_STM32

A library for STM32 handling the W25Qxxx SPI flash family by Winbond. Library includes functions needed to develop an external loader for projects involving flash.
https://www.youtube.com/playlist?list=PL6Fwy7aR3zSm-eLMNa7xaSgQ4R-lO_r38
MIT License
18 stars 5 forks source link
spi-flash stm32 w25qxx winbond

Piu' sotto, al termine della lingua inglese trovi il testo in italiano.
Below the English text you'll find the Italian version
_


A W25QXXX SPI FLASH memory library for STM32:

including support functions for External Loaders developing

and for the flash memory integration on TouchGFX projects



In this GitHub page, you'll find a library for STM32 (HAL) handling Winbond SPI Flash memories (W25Qxxx).
Library includes functions you need to create External Loaders for STM32CubeProgrammer and STM32CubeIDE.
Inside library you'll find also functions, that TouchGFX needs to handle an external flash memory, reading font and images via a direct transfer flash->display (without needing a cache in RAM).
So, you can use this software for 4 distinct purposes:




GitHub Folders

This guide is divided in 4 chapters following the above list.




Current version of library handles SPI communication via:

See youtube videos to know advantages of this approach.


Helping videos

Here you can find video documentation about these topics:

Part one: "how to" use library, "how to" develop an EL, "how to" install an EL into CubeProgrammer https://youtu.be/KlG2doCkREM
Part two: "how to" use the SPI flash in TouchGFX projects, "how to" install an EL into CubeIDE https://youtu.be/PO_2ZE1NQF0
Part three: "how to" map an external SPI flash memory in a CubeIDE project



Sources

The sofware you find on this page, the page content and above videos, were developed upon this documentation:

Winbond W25Qxxx web page https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash
Jedec SFDP standard (requires registration) https://www.jedec.org/document_search/field_doc_type/148?search_api_views_fulltext=JESD216
STM Mooc - External QSPI loader how to https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/external_QSPI_loader.html
STM repository of external flash loaders https://github.com/STMicroelectronics/stm32-external-loader
STM32CubeProgrammer documentation https://www.st.com/resource/en/user_manual/um2237-stm32cubeprogrammer-software-description-stmicroelectronics.pdf
STM32 Graphics: external QSPI flash in TouchGFX https://youtu.be/RMgVo_uCTbw
TouchGFX: Using Serial Flash for images and fonts https://support.touchgfx.com/docs/development/scenarios/using-serial-flash


NOTES

The software, schemes and PCB designs in this set of repositories are provided just for illustrative purposes, sharing the personal experience on this project. The software and design artifacts are provided as-is without any mantainence and without warranty of any kind. There is no guarantee of fitness for any particular application, and no guarantee of completeness and correctness. By downloading and using these materials the user accepts all risks associated with the run of the software and construction and use of the circuits and devices described.






Una libreria sulle memorie SPI Flash W25QXXXX per STM32:

incluse le funzioni di supporto per creare External Loader,

e per integrare la memoria flash in progetti TouchGFX



In questa pagina GitHub trovi una libreria di funzioni per STM32 (HAL) per la gestione di memorie SPI Flash Winbond (W25Qxxxx).
La libreria include anche le funzioni richieste per generare External Loader per STM32CubeProgrammer o per STM32CubeIDE.
Nella libreria sono presenti anche le funzioni richeste per integrare una memoria Flash esterna in progetti TouchGFX per memorizzare font ed immagini con trasferimento diretto flash->display (non è richiesta cache in RAM).
Puoi utilizzare quindi questo software per 4 scopi distinti:




Folder GitHub

Questa guida è suddivisa in 4 capitoli seguendo lo schema sopra.




La versione attuale della libreria gestisce la comunicazione SPI via:

Vedi i video youtube sotto per conoscere i vantaggi di questo approccio.


Supporto video

Qui puoi trovare video relativi ai temi trattati in questa pagina

Prima parte: "how to" - come usare la libreria, come creare un EL, come installare un EL in Cubeprogrammer z
Seconda parte: "how to" - come usare la memoria FLash SPI in un progetto TouchGFX, come installare un EL in CubeIDE per programmare la memoria flash in un progetto TouchGFX https://youtu.be/PO_2ZE1NQF0
Terza parte: "how to" mappare una memoria flash SPI in un progetto CubeIDE



Referimenti

Il software, questa pagina ed i video sopra sono stati sviluppati sulla base di questa documentazione:

Winbond W25Qxxx web page https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash
Jedec SFDP standard (requires registration) https://www.jedec.org/document_search/field_doc_type/148?search_api_views_fulltext=JESD216
STM Mooc - External QSPI loader how to https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/external_QSPI_loader.html
STM repository of external flash loaders https://github.com/STMicroelectronics/stm32-external-loader
STM32CubeProgrammer documentation https://www.st.com/resource/en/user_manual/um2237-stm32cubeprogrammer-software-description-stmicroelectronics.pdf
STM32 Graphics: external QSPI flash in TouchGFX https://youtu.be/RMgVo_uCTbw
TouchGFX: Using Serial Flash for images and fonts https://support.touchgfx.com/docs/development/scenarios/using-serial-flash



Il software e gli schemi di progetto come i layout PCB in questa serie di repository sono messe a disposizione con puro intento illustrativo e di condivisione dell'esperienza fatta Il software and gli elementi del progetto sono messi a disposizione "allo stato in cui sono" senza impegno di manutenzione e senza garanzie di alcun tipo. Piu' esplicitamente, non c'e' garanzia di adeguatezza a soddisfare specifiche esigenze, ne di completezza o correttezza di alcuna parte. Scaricando ed utilizzando questo materiale l'utilizzatore accetta il rischio associato all'esecuzione del programma e alla realizzazione ed all'utilizzo del circuito e dei componenti descritti in questo archivio.