how Debug firmware

Dear all,

I installed qtcreator for openmv, and i managed to run the IDE, and debug bootloader through the stlink (F10: step by step works).
But i dont success to debug the firmware, because due to memory position i supposed.

I am a bit lost about what change between memory parameters to debug the firmware.

I tried to change the line in stm32fxxx.ld.s :

  • FLASH_TEXT (rx) : ORIGIN = OMV_TEXT_ORIGIN, LENGTH = OMV_TEXT_LENGTH
    by
  • FLASH_TEXT (rx) : ORIGIN = OMV_BOOT_ORIGIN, LENGTH = OMV_TEXT_LENGTH

What are your points to do this ?

Thanks,

You don’t need to change the linker script, just use the main firmware image with gdb and break on main() and it will work. For example:

arm-none-eabi-gdb -ex "tar ext:4242" ../firmware/OPENMV3/firmware.elf
(gdb) break main

Thanks for your answer which is what i do but i was in the disassembled memory.

The solution i found was to increase the processor ressource of ubuntu virtualbox…
Apparently, QTCreator limits its debugging in function of its ressource because it worked with the bootloader.

I hope it could help someone else. Thanks to your great team !