Cannot use or modify custom debug cfg file in STM32CubeIDE
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-01 9:13 AM
Hello,
I need to manually edit the debugging configuration script (CFG) file in STM32CubeIDE. But I can't seem to make CubeIDE run with a user-generated file or make any modifications to the auto-generated file.
- I provided CubeIUE with a path to a user-generated CFG file.
- For the purposes of the test, I used one that is identical to the auto-generated file except for a marker comment at line 12.
- When I attempt to launch debugging, CubeIDE overwrites the user CFG with a new auto-generated CFG.
- It will then try to debug with the new auto-generated CFG. This fails because my debugger needs custom settings.
- When I reopen the debugger configuration settings, CubeIDE shows two errors:
- Provided file doesn't exist!
- Not able to interpret provided file!
- This is ridiculous because the user CFG:
- Exists right in the project directory, in the IDENTICAL LOCATION to where auto-generated CFGs are placed. I have also tried other locations.
- Is IDENTICAL to the auto-generated CFG except for a marking comment.
- A Java error is also produced, but no details are provided.
Is there any way to actually use custom debugger CFG files, or is this option just not functional in CubeIDE?
# This is an genericBoard board with a single STM32F415VGTx chip
#
# Generated by STM32CubeIDE
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s)
source [find interface/stlink.cfg]
set WORKAREASIZE 0x8000
transport select "hla_swd"
# TEST COMMENT
set CHIPNAME STM32F415VGTx
set BOARDNAME genericBoard
# Enable debug when in low power modes
set ENABLE_LOW_POWER 1
# Stop Watchdog counters when halt
set STOP_WATCHDOG 1
# STlink Debug clock frequency
set CLOCK_FREQ 8000
# use hardware reset, connect under reset
# connect_assert_srst needed if low power mode application running (WFI...)
reset_config srst_only srst_nogate connect_assert_srst
set CONNECT_UNDER_RESET 1
# BCTM CPU variables
source [find target/stm32f4x.cfg]
Labels:
- Labels:
-
STM32CubeIDE
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
