Skip to main content
Associate II
February 18, 2025
Question

External Loader for STM32H533RE with W25Q32

  • February 18, 2025
  • 2 replies
  • 819 views

Hi,

I try build loaders for STM32H533RE using its nucleo board but it fails to read any thing using the cube programmer. i tried with nucleo H753 and it worked. i see that u already did loader for the H5 so would u please explain how or maybe update your tutorial to include the H5 instead leaving us here in the dark!

How to add spi flash loader 

Regards

M.Salem

2 replies

KDJEM.1
ST Technical Moderator
February 24, 2025

Hello @msalem88,

 

How to add your SPI flash into the STM32CubeProgrammer’s external loader Part 1 has been tested with NUCLEO-G070RB and External SPI memory (W25Q64).

In your example you used W25Q32. For that, I advise you to check the memory parameter settings in Dev_Inf.c file.

 

Thank you.

Kaouthar

 

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
msalem88Author
Associate II
February 24, 2025

@KDJEM.1  i used W25Q32 with Nucleo H753 and it worked, I could read and write through cube programmer

Now I wanted to use it with Nucleo H533 but its not working. I have no idea why you want me to check memory parameters since it worked fine for H753. I changed the address in the linker to 0x20000004 as you mentioned in the tutorial.

Better share your linker for any H5 together with the other files. Check your repository for the external loaders. You have nothing for any H5!!!!!!

https://github.com/STMicroelectronics/stm32-external-loader

msalem88Author
Associate II
February 25, 2025

@Tesla DeLorean can u help here since i see you have experience in external loaders

Tesla DeLorean
Guru
February 25, 2025

This is what I use for mine, I'm using GNU/GCC w/MAKE, and not using CubeMX nor Interrupts, etc.

The H5's use a basis of 0x20003004, so not 0x24000004 of H7, or 0x20000004 of others.

https://github.com/cturvey/stm32extldr/blob/main/ExternalLoader_H5.ld

If you give me your H53x pin designations I'll compile a W25Q32 build

Will live here :  https://github.com/cturvey/stm32extldr/tree/main/h5_w25q32

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
msalem88Author
Associate II
February 25, 2025

STM32H533RETX.

SPI3_MISO -> PB0

SPI3_SCK -> PB1

SPI3_MOSI-> PC12

FLASH_CS -> PA0

Thanks