-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JLink as upload tool #1029
Comments
Could you try this workaround? http://docs.platformio.org/en/latest/plus/debugging.html#j-link-as-debugger-and-uploader If it works, we will think how to integrate J-Link to our development platforms where user will use something like that:
|
with this settings in platformio.ini
output is:
|
but when I push Debug button uploading finished fine |
my extra_script.py
|
So in my case I solved this issue with customizing extra_script.py
UPLOADCMD is not UPLOADHEXCMD like in example in Advanced Scripting |
@ju-mpe-r could you re-test with the latest upstream version? http://docs.platformio.org/en/latest/platforms/ststm32.html#stable-and-upstream-versions Please remove all extra scripts and lines. Just use
All should work out of the box. |
@wofei1314 please also re-test with http://docs.platformio.org/en/latest/platforms/ststm32.html#stable-and-upstream-versions |
@ivankravets |
@ju-mpe-r I've just fixed that and you don't need to modify openOCD scripts. Could you try the upstream version? |
[env:upstream] Cloning into 'C:\Users\Jourjine.platformio\platforms_tmp_installing-erzqj2-package'... mistake path - C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt |
@jourjine you have broken Git tool in a system. Try to reinstall it or use |
@ivankravets yes, it's working fine right now. Thank you. |
@ivankravets, I was wrong. Successful result was with my Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
Warn : Transport "swd" was already selected
swd
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
cortex_m reset_config sysresetreq
Error: Failed to claim interface: LIBUSB_ERROR_BUSY.
Error: Failed to open device: unspecified error.
Error: No J-Link device found.
Error: No Valid JTAG Interface Configured.
*** [upload] Error 255``` |
@ju-mpe-r could you close VSCode, disconnect J-Link and start again? |
@ivankravets working! Thank you!
|
I have sad this page
http://docs.platformio.org/en/latest/plus/debugging.html#custom
But I didn't add Jlink successful.
My platformio ide version is 0.7.2
I want to use PIO Debug my stm32 project with Jlink debug tool ...
I try to modify platformio.ini like this:
[env:jlink_debug_and_upload]
platform = ststm32
framework = stm32cube
board = nucleo_f411re
debug_tool = custom
debug_server =
JLinkGDBServerCL
-singlerun
-if
SWD
-select
USB
-port
2331
-device
STM32F411RE
And when I update firmware to mcu,
`[09/02/17 23:20:02] Processing jlink_debug_and_upload (platform: ststm32; debug_server: JLinkGDBServerCL, -singlerun, -if,
SWD, -select, USB, -port, 2331, -device, STM32F411RE; debug_tool: custom; board: nucleo_f411re; framework: stm32cube)
Verbose mode can be enabled via
-v, --verbose
optionCollected 0 compatible libraries
Looking for dependencies...
No dependencies
Uploading .pioenvs\jlink_debug_and_upload\firmware.bin
st-flash 1.3.12
017-09-02T23:20:04 WARN src\usb.c: Couldn't find any ST-Link/V2 devices
*** [upload] Error -1
`
PS:I had add the JlinkGDBServerCL.exe path to my system environment,I can use powershell run JlinkGDBServerCL.exe successful.
Configuration
Operating system:WIN10 64bit
PlatformIO Version (
platformio --version
):0.7.2The text was updated successfully, but these errors were encountered: