I want to upload program on nucleo-l476rg using stlink-v2 programmer, Arduino framework and PlatformIO IDE. Program is not uploaded.
This is Platfromio.ini:
[env:nucleo_l476rg]
platform = ststm32
board = nucleo_l476rg
framework = arduino
lib_deps =
arduino-libraries/SD@^1.3.0
sstaub/Ticker@^4.4.0
STM32RTC
ArduCAM
upload_protocol = stlink
I get following error:
xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-15:04)
Licensed under GNU GPL v2
For bug reports, read http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Error: target voltage may be too low for reliable debugging
Error: timed out while waiting for target halted
embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure âprogramâ
in procedure âprogram_errorâ called at file âembedded:startup.tclâ, line 1553
at file âembedded:startup.tclâ, line 1516
*** [upload] Error 1
When posting code or logs, please use the pre-formatted text feature.
This increases the readability of your post and the likelihood that someone help you.
I want to upload program on nucleo-l476rg using stlink-v2 programmer, Arduino framework and PlatformIO IDE. Program is not uploaded.
This is Platfromio.ini:
xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-15:04)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
[stm32l4x.cpu] halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x08006158 msp: 0x20018000
Error: timed out while waiting for target halted
embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1553
at file "embedded:startup.tcl", line 1516
*** [upload] Error 1