Skip to main content
Associate II
September 11, 2025
Question

STM32H563ZIT6 - External memory not working

  • September 11, 2025
  • 4 replies
  • 597 views

Hello,

I have custom PCB based on STM32H563ZIT6 with external memory MX25L51245G(W25N01xx in schem.) and Riverdi display. I use ExternalLoader from https://github.com/cturvey/stm32extldr/tree/4dcb141b9cf6da2ee3fddf154d073bb6218a52e5/h5_mx25l51245g. Problem is that I cannot connect to the memory in CubeProgrammer. My aim is to completely program all code, images, texts and everything from TouchGFXDesigner I plan to use for pretty complex GUI so ex. mem. is necessary for me. I have attached my code and schematics to pcb. 

 

Things that seem to be right and working:

- OCTOSPI1 configuration in CubeMX ( same as mentioned ex. loader need it )

one HW problem is that CS pin is attached to PA15 pin which is not intented for OCTOSPI1 settings, so I put wire around 8cm from PA15(reset state) to PG6(same pin as display uses for CS, is it ok? display is disconnected at the moment) through 2k2 pull up resistor. Also tried to increase clock prescaler to 4-8 to stabilize connection. May this wire be the main problem ?

- Default W25Qxx lib replace for MX25xx 

https://github.com/STMicroelectronics/stm32-mx25lm51245g )

- code is buildable and programmable through TouchGFX

- not very sure what to do and what not in MX_OCTOSPI1_Init() which is located in main.c starting at line 522...

??EnableMemoryMappedModeSTR - yes or not ?

- always using Connect Under Reset in CubeProgrammer ( NRST pin is attached to stlink connector )

Thank you for help.

4 replies

AScha.3
Super User
September 11, 2025

Hi,

>Problem is that I cannot connect to the memory in CubeProgrammer.

But you set it in ...mem.loader ? ->

 

AScha3_0-1757578538474.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
September 11, 2025

Yes, sure.programmer.PNG

AScha.3
Super User
September 11, 2025

...and using/setting : software.reset + normal or hot plug...  same ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
September 11, 2025

I tried, but no effect. It is probably some different problem. 

mƎALLEm
Technical Moderator
September 11, 2025

Hello,

As it's a custom board, it could be a hardware issue.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate II
September 11, 2025

That is the reason I have attached schematics. So what problem might be there ?

Tajwar.Chandel
Associate III
December 1, 2025

Hello @MartinGinter ,

Is your query is solved. ?