hi.
I have a zephyr app that includes threads, 3 to be exact.
I'm compiling thread info using -D param passed on to the west command (well vs code does it for me, i'm just verifying it's there).
When i want to de bug the app i connect j-link to the target and do the following:
1. run JLinkGDBServer -if swd -device NRF52840_XXAA -speed 1000 -rtos /opt/SEGGER/JLink_V798g/GDBServer/RTOSPlugin_Zephyr.so -singlerun -nogui
2. worth mentioning that i tried with and without -singlerun and in both cases it's the same result...
3. the west command line to compile includes: -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y
4. the gdb command: arm-zephyr-eabi-gdb app/build/app/zephyr/zephyr.elf (ncs toolchain is on the path)
5. in gdb i use `target remote :2331`.
6. i set a breakpoints and use monitor reset and 'c' to continue. And the breakpoints is reached , however i cannot debug.
7. when using info threads i get just 1 thread and it's not true.
8. when trying 's' or 'n' it seems to stop the thread and restart it and not step in step out, i do not see the command executed and i do not get to the next command.
since you have disabled in VScode extension the debugger, can you please explain how i can debug a threaded app in GDB ?
my JLink version is: V7.98g, ncs version including toolchain is v2.7.0
I have tried advises from different places, but non actually helped, the only option currently is turn off the other threads...