Debugging application from external flash
Hi All,
I have interfaced Winbond W25Q128 external flash and IS42S32400F-7TL external RAM to STM32H750IBK micro on my custom board. I have found an external loader file (stldr) for my pin configuration from a community member.
I can program, read and erase my external flash memory with the stldr file using STMCube Programmer.
I have also prepared a bootloader application that initializes the clock at 64 MHz, initializes the QSPI and brings it into memory mapped mode and then jumps to the application in the external memory. This also works fine, I can successfully jump to external app after re powering my board and I can see that the application on the external memory is running.
However I could not find a way to debug my external application either alone or starting from the bootloader app in STMCube IDE. It gives me "Break at address "0x8000550" with no debug information available, or outside of program code."
And when I use OPEN OCD for debugging I get Error: 'stldr' driver rejected flash bank at 0x00000000; usage: (null) error.
I added
add-symbol-file ./Debug/externalapp1.elf 0x900002D0
delete mem 2
mem 0x90000000 0x900FFFFF ro
into the debug configuration but with or without adding it still same error occurs.
Please let me know these;
1-Can I debug only my external application without having a bootloader application loaded in the internal flash. I assume that the external loader can facilitate such a debugging (without having a bootloader in the internal flash) am I wrong.
2-If I need to also flash the internal flash memory with the bootloader and start debugging from here and then jump to external application shall I make some adjustments on the debugging options in STMCUBE IDE.
Notes:
1-I am resetting the vector table at 0x90000000 on the system file of the external app.
2-When I flash the internal bootloader application I do not re adjust the clock and re enable the QSPI in the external app as this is already done in the bootloader application and my external application runs as expected.
3-I am almost sure that my memory mapping is correct in the LD files but I can share them incase you demand.
Briefly can you give me some information on how to debug my external application with or without the internal flash memory already loaded with the bootloader.
Thanks,
