Hello,
I have several issues with the new nRF Connect for VS Code SDK, I put them into one ticket, although, some of the issues could be related directly to nRF Connect SDK, not the VS Code plugin. I have latest nRF Connect SDK, latest VS Code and using nRF52840 SoC
- RTT is unreliable - in 80% cases of debugging, the RTT output is blank. And even if it works, the output is "damaged", like my printk and zephyr boot message is mangled together. Also, when something crash inside the kernel, or assert is called, nothing is shown on RTT console, and also debugger not break on problem. (NOTE: I had higher success by manually using RTT via JLink.exe than the one integrated in VS Code)
- It's uncertain what all the "Debug" action do. Does it build the firmware if there are any modifications? Does it flash firmware? About flashing firmware, yes, it flashes it, but it's nowhere clarified that Flash is being made, so it can be confusing for developer and he can instead execute Flash action and then Debug, which is adding additional time to debug.
- When creating launch.json, the first created configuration "Launch active build configuration" is not working, it throws error that "nRF Connect: Build active configuration" task doesn't exists.
The 1. issue is most critical one, because at the moment, it's very hard to find out why the app is crashing. Other ones are just bugs or some improvements.
Although, besides those things, VS Code extension is pretty good and it's way better experience than working with SES, thank you for your hard work.
This is my prj.conf:
# nothing here CONFIG_CONSOLE=y CONFIG_USE_SEGGER_RTT=y CONFIG_RTT_CONSOLE=y CONFIG_UART_CONSOLE=n CONFIG_NRFX_GPIOTE=y CONFIG_LOG=y CONFIG_MULTITHREADING=y CONFIG_GPIO=y CONFIG_ASSERT=y CONFIG_LOG_PRINTK=y CONFIG_LOG_BACKEND_RTT=y CONFIG_LOG2_MODE_DEFERRED=y CONFIG_DEBUG_OPTIMIZATIONS=y CONFIG_DEBUG_THREAD_INFO=y
Thanks,
with Regards,
Marek Kraus