cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with creating external loader on STM32F411 and W25Q64

MSzła.1
Associate III

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 

BUSY_ERROR.png

Maybe someone has commpiled external loader for BlackPill Board with W25Q64 flash chip, or helps me to explan what is wrong?

 

1 ACCEPTED SOLUTION

Accepted Solutions
MSzła.1
Associate III

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 🙂

View solution in original post

4 REPLIES 4

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MSzła.1
Associate III

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 🙂

Hello, may you help me with mine external loader for a G0 anf for a G4?

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:

https://github.com/apaczenko1993/W25Q64_WEACTBLACK