On Thu, Dec 2, 2021 at 5:22 PM Sébastien Gendre <seb@xxxxxx> wrote: > > And I'm sure I can run code on the microcontroller because if I don't > declare the pointers to the registers and I just declare an int variable > and set its values multiple times it work (I can run it, inspect > variables, place breakpoints, etc). For debug I use GDB. I would at least not use Thumb in the beginning. This is notoriously annoying to debug in gdb because you can never be sure that the CPU's and the debugger's opinion on the current operating mode agree.