Closed Navis-Raven closed 6 years ago
To select the debug task, you can do also this (see below) and selecting one of the two options, and it will give exactly the same result:
I've just tried the same with an Adafruit HUZZAH32 (ESP-32) card with Arduino, and it gave the same result.
UPDATE However this cardboard necessites an excternal debug probe, and I've tested it without probe. Then without probe it's the same result.
Today I've tried with nRF52-DK with Arduino. Same problem
Did you install ST-Link USB driver? See http://docs.platformio.org/en/latest/plus/debug-tools/stlink.html
The link you gave me is dead
Sorry, see updated link above.
Thanks, No I didn't installed the ST-LINK driver yet, I just followed the tutorials here: http://docs.platformio.org/en/latest/tutorials/index.html#id1
and I applied the tutorial for each of my STM32 Discovery and my nRF-52-DK cardboard. As you can see here there is no driver required in the tutorial
Same thing with the nRF52-DK for which I had the same issue.
When I saw that no driver is required in the tutorial I thought that platformio
Ok After installing ST-LINK driver (for STM32 Discovery IoT node), now it works with "PIO Debug (Skip Pre-Debug)" but not with "PIO Debug". The're is still one issue with one of the two modes
As previously said there is no indication in the initial tutorial to install any driver for nRF52-DK: http://docs.platformio.org/en/latest/tutorials/nordicnrf52/arduino_debugging_unit_testing.html
When trying to debug without pre-debug ("PIO Debug (Skip Pre-Debug)"), it tries to run CMSIS-DAP debug tool by default. I've tried to install it, but there is one issue with it's installer here: https://github.com/ARMmbed/mbed-cli/issues/733
So I modified platformio.ini in order to work as j-link debugger by adding debug_tool = jlink
. This is platformio.ini content :
[env:nrf52_dk]
platform = nordicnrf52
board = nrf52_dk
framework = arduino
debug_tool = jlink
After this I started debugging "PIO Debug (Skip Pre-Debug)" and it worked. I didn't even have to do these steps (described here at: https://docs.platformio.org/en/latest/plus/debug-tools/jlink.html#drivers)
So since it works well without running InstDrivers.exe, for what InstDrivers.exe is used for ? Is it necessary ?
I think that the tutorial documentation should includes that the these drivers are prerequisites or at least it should says how to modify platformio.ini in order to have j-link debugger selected directly.
Now when I select "PIO Debug" (with pre-debug) this is the same problem as declared for Discovery IoT Node: this window is displayed:
Thanks for your answers
Now when I select "PIO Debug" (with pre-debug) this is the same problem as declared for Discovery IoT Node: this window is displayed:
Fixed in https://github.com/platformio/platformio-core/commit/78c383eb683b05a16a82fc33957d1f52da525372
Please open IDE Terminal and type pio upgrade --dev
.
Good news ! I saw also that the documentation has been upgraded !
Can you answer the question about the driver ? (see my previous comment)
So since it works well without running InstDrivers.exe, for what InstDrivers.exe is used for ? Is it necessary ?
InstDrivers.exe is attended for J-Link debug probe. if you installed these drives before, you don't need to install again.
@ivankravets , hummm strange I don't think I've installed them before in this PC and it is working anyway, except if InstDrivers installs something in the Nordic dev board
and why we can start debug session, if the drivers are not installed. this is strange.
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Windows 8.1
PlatformIO Version (
platformio --version
): PlatformIO, version 3.6.0HW/SW Configuration: [env:disco_l475vg_iot01a] platform = ststm32 board = disco_l475vg_iot01a framework = stm32cube
Description of problem
The debug tool does not work at all for STM32CUBEL4+disco_l475vg_iot01a,
Steps to Reproduce
Click on debug button
Select PIO Debug
Actual Results
An error message is displayed, saying that PlatformIO Pre-Debug is unfindable
Expected Results
The debugger should work
Additional info:
I've tried also the without pre-debug option, and it does not work. Here are the steps to reproduce this tentative:
Click on debug button (like before)
Now select "PIO Debug (Skip Pre-Debug)" task:
Actual Results
It gave me this message error this time
And these console error message:
The content of
platformio.ini
:Source files to reproduce issue: main.h:
main.c: