Hello Everyone,
I'm trying to debug a bare-metal Cortex A5, an Atmel SAMA5D27 to be precise, with a J-Link Pro. The program code, built with ARM Clang, is running from DDR and debugs (from DDR) just fine.
The problem that I have relates a small portion of Position Independent Code that is on-demand relocated from the DDR to IRAM1. The relocated code tests the DDR so cannot run from it.
The linking, sections, L2 Cache disable, stack relocation, code relocation is working and I can jump into the Position Independent code in the IRAM.
The problems that I have is that Ozone doesn't know where the source code is and I don't know how to inform it about the relocation.
Currently I'm debugging via assembler, which is not so efficient!
Regards,
Mark.
I'm trying to debug a bare-metal Cortex A5, an Atmel SAMA5D27 to be precise, with a J-Link Pro. The program code, built with ARM Clang, is running from DDR and debugs (from DDR) just fine.
The problem that I have relates a small portion of Position Independent Code that is on-demand relocated from the DDR to IRAM1. The relocated code tests the DDR so cannot run from it.
The linking, sections, L2 Cache disable, stack relocation, code relocation is working and I can jump into the Position Independent code in the IRAM.
The problems that I have is that Ozone doesn't know where the source code is and I don't know how to inform it about the relocation.
Currently I'm debugging via assembler, which is not so efficient!
Regards,
Mark.