External Memory Loader
- August 20, 2022
- 2 replies
- 2815 views
Hello,
I want to learn how to write my own octospi external memory loader in STM32CubeIDE. I found example on https://github.com/STMicroelectronics/stm32-external-loader/tree/main/STM32H7x_boards/MX25LM51245G_STM32H735G-DK but project is built with EWARM or MDK-ARM IDE.
I generated new project and configured octospi interface in CubeIDE. Then I added files from this repository to communicate with the memory. Then I copied linker file from this repository: https://github.com/STMicroelectronics/stm32-external-loader/tree/contrib/Loader_Files/H7%20device
I generated .stldr file according to this video: https://www.youtube.com/watch?v=XqCq0xtQmbI&t=2s&ab_channel=STMicroelectronics, but when I added this file to STM32CubeProgrammer it shows error: Data read failed.
I know that octospi interface is configured well because I can write bytes to memory and then read it by default external loader. I can also read mem ID which is C2 85 3A
Whether these problems are caused by the linker file or should I change anything else in the project?
Is there any way to convert IAR project to STM32CubeIde project?
Best Regards
