2023-11-26 09:40 AM
Hello
I wanted to create a external loader for STM32F411CEU6 (WeAct Blackpill board) and W25Q64 flash memory chip. I did it based on the tutorial from youtube link: https://www.youtube.com/watch?v=KlG2doCkREM&t=1792s
I the tutorial i found link to W25QXX libray. And after testing in a simple project writing and reading,i know the libray works, but when i compile the external loader and test it in debug mode, the SPI transmit return HAL_Busy status, only when i debug the external loader project.
I tried to lower SPI speed but without success. Why the libray works in a simple project but in a external loader project no.
I see no reason why the SPI_Transmit status is BUSY.
Here is link to repo (external loader project): https://github.com/apaczenko1993/W25Q64_BLACKPILL-F411
Maybe someone has commpiled external loader for BlackPill Board with W25Q64 flash chip, or helps me to explan what is wrong?
Solved! Go to Solution.
2023-12-02 07:52 AM
I checked another examples also from ST, and finally i'm created working external loader. If someone hobbyst like me want to have working external loader for WeAct Blackpill with W25Q60, let me know :)
2023-11-26 11:28 AM
None of the code in main or startup gets called in this model, so statics in BSS won't get initialized to zero, watch expectations.
Not sure on the dependency on interrupts and vectors here, external loaders don't need them, and it's not using SysTick to mark time. There's a lot of clutter that could be removed, ST could do a lot to simplify their examples.
For debug/diagnostics you can use a UART
2023-12-02 07:52 AM
I checked another examples also from ST, and finally i'm created working external loader. If someone hobbyst like me want to have working external loader for WeAct Blackpill with W25Q60, let me know :)
2024-01-28 04:43 AM
Hello, may you help me with mine external loader for a G0 anf for a G4?
2024-02-03 11:13 AM - edited 2024-02-03 11:14 AM
Hi, I don't have an STM32 from the G0 and G4 series, but I will upload a mo project that worked for the Blackpill board, so you can see what it looks like. If there are any ambiguities, feel free to write.
GitHub repo: