Skip to main content
Associate II
July 28, 2024
Question

External memory loader on STM32H7R7I8T6

  • July 28, 2024
  • 3 replies
  • 1062 views

Hello,

I am working on a project that requires the code to be stored in the external QSPI flash but the problem is, I have no idea how the external memory loader generated by CubeMX works. I have tried following this article, but the external loader link is broken. Can someone please answer the questions below?

How do you program the external memory with the application project?

How can I configure the external memory manager to work with quadspi flash? I am guessing I need to write my own drivers for the external flash but where do I put this?

 

Regards

3 replies

Tesla DeLorean
Guru
July 28, 2024

The External Loader gets copied into RAM by STM32 Cube Programmer and acts like a DLL whose functions get called. The Init function brings up the pins, clocks and interface.

The loader needs to deal with your board and component choices.

The Boot loader in internal Flash needs to bring up interface also.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
KwameAuthor
Associate II
July 29, 2024

I was snooping around and I found out that I could configure the external memory manager to use user drivers. I have trouble deciding where to put the driver. Should I put it in the stm32_user_driver.c file under the Middlewares folder or under the ExtMem_loader subproject? 

Screenshot 2024-07-28 at 8.10.09 PM.png

Also is there any documentation for the external memory manager? I have seen this article (https://wiki.st.com/stm32mcu/wiki/Getting_started_with_External_memory_Manager_and_External_memory_loader#External_Memory_Manager)  but that seems to be the only thing I can find. 

Maposaagsky
Associate II
July 16, 2025

Hello Guys
some one of you can program the STM32H7R7I8T6 whit only use the internal flash? (like a normal microcontroler without the external memory) because i need to use this wreat uC whit only the internal flash, but i canot use this, i do know whay, i only have a mensaje and i canot concet to program or debug the STM32H7R7I8T6 whit the stm32cubeIDE and the st-Link/V2 (whit other microcontrolres work very well like the stm32f429, stm32H747bi, in my customiser PCBs, etc)
this is the mesnger that i get whit i tray to program or debug the STM32H7R7I8T6:

Maposaagsky_0-1752633266538.png

and this is the basic debug configuration i use

Maposaagsky_1-1752633349645.png