2025-09-11 12:53 AM - edited 2025-09-11 1:23 AM
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.
2025-09-11 1:16 AM
Hi,
>Problem is that I cannot connect to the memory in CubeProgrammer.
But you set it in ...mem.loader ? ->
2025-09-11 1:19 AM
Yes, sure.
2025-09-11 1:36 AM
...and using/setting : software.reset + normal or hot plug... same ?
2025-09-11 1:40 AM
I tried, but no effect. It is probably some different problem.
2025-09-11 1:55 AM
Hello,
As it's a custom board, it could be a hardware issue.
2025-09-11 2:28 AM
That is the reason I have attached schematics. So what problem might be there ?