Bootloader and gdb
Posted: Wed Jun 01, 2016 8:21 pm
I can't see this has been asked/answered elsewhere although a couple of posts come close, so here goes.....
I currently use a black magic probe (bmp) to debug my ChibiOS creations and that is an excellent setup, however going forward I want to have my applications relocated to make room for a boot loader and run from there.
However what I can't figure out is how to debug an application who's reset vector is not 0 and whose VTOR vectors have been relocated. Loading the elf in gdb still ends up with gdb trying to run the boot loader and of course it has no symbols for that.
I'm sure this is just me being stupid and there's a simple answer, so could someone explain how to do this please?
I currently use a black magic probe (bmp) to debug my ChibiOS creations and that is an excellent setup, however going forward I want to have my applications relocated to make room for a boot loader and run from there.
However what I can't figure out is how to debug an application who's reset vector is not 0 and whose VTOR vectors have been relocated. Loading the elf in gdb still ends up with gdb trying to run the boot loader and of course it has no symbols for that.
I'm sure this is just me being stupid and there's a simple answer, so could someone explain how to do this please?