PIO Unified Debugger


#101

I am receiving the following error when trying to use the Platform IO debugger. This previously worked a few months ago.

I am using the Sodaq Explorer board with Arduino framework.

Reading symbols from e:\Users\Brendan\My Documents\GitHub\FallDetection_V2.pioenvs\sodaq_one\firmware.elf…
done.
PlatformIO Unified Debugger > http://bit.ly/pio-debug
PlatformIO: Initializing remote target…
GNU MCU Eclipse 32-bits Open On-Chip Debugger 0.10.0+dev-00392-gbe9ef0b0 (2018-01-12-10:20)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
little
Info : auto-selecting first available session transport “swd”. To override use 'transport select '.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : tcl server disabled

Any Ideas how I can fix this? I would really appreciate some help.


#102

I have tried on both linux and windows PCs with fresh installs of visual studio code and Platformio.
the launch.json file is below:

// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY

// PIO Unified Debugger
//
// Documentation: http://docs.platformio.org/page/plus/debugging.html
// Configuration: http://docs.platformio.org/page/projectconf/section_env_debug.html

    {
    "version": "0.2.0",
    "configurations": [
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PlatformIO Debugger",
            "executable": "e:/Users/Brendan/My Documents/GitHub/FallDetection_V2/.pioenvs/sodaq_one/firmware.elf",
            "toolchainBinDir": "C:/Users/Brendan/AppData/Roaming/SPB_Data/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin",
            "svdPath": "C:/Users/Brendan/AppData/Roaming/SPB_Data/.platformio/platforms/atmelsam/misc/svd/ATSAMD21G18A.svd",
            "preLaunchTask": "PlatformIO: Pre-Debug",
            "internalConsoleOptions": "openOnSessionStart"
        },
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PlatformIO Debugger (Skip Pre-Debug)",
            "executable": "e:/Users/Brendan/My Documents/GitHub/FallDetection_V2/.pioenvs/sodaq_one/firmware.elf",
            "toolchainBinDir": "C:/Users/Brendan/AppData/Roaming/SPB_Data/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin",
            "svdPath": "C:/Users/Brendan/AppData/Roaming/SPB_Data/.platformio/platforms/atmelsam/misc/svd/ATSAMD21G18A.svd",
            "internalConsoleOptions": "openOnSessionStart"
        }
    ]
}

#103

Which debugger probe do you use?


#104

i was using a JTAG EDU, but now I am using a Atmel SAM ICE. Neither are working.

The error message from the SAM ICE is:

For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
little
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : tcl server disabled
Info : telnet server disabled
Error: unable to open CMSIS-DAP device 0x3eb:0x2141
.pioinit:12: Error in sourced command file:
Remote communication error.  Target disconnected.: No error.

I am using a Sodaq ONE board.


#105

What is your OS? Do you see debug probe in the list of USB devices?


#106

Is it possible to add selection of display method for watched expressions?
It’s really nearly useless to see a decimal value of an MCU register. I’d love to be able to see it in hex without using an external calculator/converter. Being able to divide any watched value into binary groups would be even greater. But at least please add hex!


#107

This is a problem os VSCode. We don’t have API for this functionality :frowning: See

Nevertheless, could you try

you can use postfixes in Watch window to show numbers in hex format, for example:
Variable,h - show value of Variable in hex
Variable,o - show value as base 8 number

Does it work for you?