cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563ZIT6 - External memory not working

MartinGinter
Associate II

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.

6 REPLIES 6
AScha.3
Super User

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".
MartinGinter
Associate II

Yes, sure.programmer.PNG

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

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

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

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.

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