You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • Yes so i need to debug the initialization of all the hardware. But whats interesting is that it seems to fail just because its in GDB. without hitting any breakpoints and restarting?

    For example. i startup GDB and hit continue and it breaks? But if i just flash the software normally it works fine?

    A lot more hurtles then i was expecting to step through the software :/

    I think i'm just going to try and comment that line out and see it will work just without bluetooth. Just so i can make some forward progress. Then i'll try and figuring out the above link you sent me. Right now thats slightly more in the weeds then i want to be at.

  • For example. i startup GDB and hit continue and it breaks? But if i just flash the software normally it works fine?

    There should be no difference until you hit first breakpoint.

    I think I never used gdb to actually flash firmware to the device. I just do it the normal way first, then run gdb and attach elf file with 'file' command and use run command (?), I forgot exact way, I need to check. I use openocd for gdb server so I can cheat a bit by having both gdb attached to port 3333 and also normal console to port 4444, there I can reset device to start again without gdb knowing.

About

Avatar for fanoush @fanoush started