This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugging with a bootloader

I have written a bootloader for a cortex-M1 processor that starts at 0x0. It correctly loads the code I have stored in a serial flash chip to RAM starting at 0x60000000. I can successfully go through the debugger with this project and then when I jump to my other projects reset vector I can correctly go through the assembly.

However, I do not want to go through the assembly of my main application I want to debug it like a normal project. What is the best way to do this?

Right now I have two separate projects with each having their own main.c files. If I have to combine the projects, what is the best way to do that?

Parents
  • Hi,

    You could use and debug INI file to setup your system like the bootloader does and directly debug from the Main project.

    For example have the main project download your code to RAM or wherever it is executed from and set you PC and SP registers accordingly.

Reply
  • Hi,

    You could use and debug INI file to setup your system like the bootloader does and directly debug from the Main project.

    For example have the main project download your code to RAM or wherever it is executed from and set you PC and SP registers accordingly.

Children