Skip to main content
Visitor 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

    This topic has been closed for replies.

    2 replies

    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

     

     

    msalem88Author
    Visitor 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
    Visitor II
    February 25, 2025

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

    Graduate II
    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

    msalem88Author
    Visitor II
    February 25, 2025

    STM32H533RETX.

    SPI3_MISO -> PB0

    SPI3_SCK -> PB1

    SPI3_MOSI-> PC12

    FLASH_CS -> PA0

    Thanks