2019-06-13 06:21 AM
Hello,
I encounded an issue using TrueStudio in debug.
I work until 6 weeks on a card with an stm32l431 on it and it works fine.
I'm on windows 10.
But today, my collegue try something on this card and now it's impossible to load a file in debug.
My collegue is on Linux.
Are using an ST link prob. We already have the same settings on each compter (windows and linux).
But now, most of the time, that's impossible to load and debug a program using TrueStudio (on both computer). But sometime, we can load and debug for only one time.
But using CubeProgrammer it's works fine (every time).
The TrueStudio logs:
STMicroelectronics ST-LINK GDB server. Version 5.1.0
Copyright (c) 2018, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Waiting for debugger connection...
Debugger connected
-------------------------------------------------------------------
STM32CubeProgrammer v1.3.0
-------------------------------------------------------------------
Log output file: C:\Users\UTILIS~1\AppData\Local\Temp\STM32CubeProgrammer_a12208.log
ST-LINK SN : 004C00463137510239383538
ST-LINK FW : V3J3M2B3S1
Voltage : 0.00V
Error: ST-LINK error (DEV_CONNECT_ERR)
2nd connect tentative with a lower frequency (8MHz)
ST-LINK SN : 004C00463137510239383538
ST-LINK FW : V3J3M2B3S1
Voltage : 0.00V
Error: ST-LINK error (DEV_NO_DEVICE)
Encountered Error when opening C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.3.0\Servers\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...
Is I try to load the program using TrueStudio, when I have the failure just after I launch CubeProgrammer and I see that nothing was loaded on the board!
The Startup Script is:
# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers
# Uncomment next line, 2=32 bit, 1=16 bit and 0=8 bit parallelism mode
monitor flash set_parallelism_mode 2
# Reset to known state
monitor reset
# Set character encoding
set host-charset CP1252
set target-charset CP1252
# Load the program executable
load
# Reset the chip to get to a known state. Remove "monitor reset" command
# if the code is not located at default address and does not run by reset.
#monitor reset
# Enable Debug connection in low power modes (DBGMCU->CR)
set *0xE0042004 = (*0xE0042004) | 0x7
# Set a breakpoint at main().
tbreak main
# Run to the breakpoint.
continue
In attachment you can see a screenshot of the TrueStudio error message.
Is anybody can help us ?
Thanks in advance
Solved! Go to Solution.
2019-06-13 08:18 AM
Solved, it only was a cuted wire on st prob.
2019-06-13 06:57 AM
But if we comment the "load" in the Startup Script, its already works all the time.
But in that case we need to load ouor .elf file using CubeProgrammer and than debug using TrueStudio !
Not realy comfortable to work
2019-06-13 08:18 AM
Solved, it only was a cuted wire on st prob.