
Info : Listening on port 50002 for telnet connections Info : Listening on port 50001 for tcl connections The results might differ compared to plain JTAG/SWD Info : The selected transport took over low-level target control. Info : auto-selecting first available session transport "hla_swd". home/luca/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/luca/Arduino/Blink -f /home/luca/Programmi/arduino-ide_2.0.3_Linux_64bit/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl -f "/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/variants/STM32F1xx/F103C4T_F103C6(T-U)/openocd_scripts/stm32F103.cfg"

You can switch to "DEBUG CONSOLE" to see GDB interactions. SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. This evening I tied again and I have an error (STM32F013C8T6 and STLink V2.1 chinese clone running Blink.ino example): With this configuration I can debug the code. Target remote | openocd -c "interface cmsis-dap" -c "set CHIPNAME at91samd21g18" -f target/stm32f1x.cfg -c "gdb_port pipe log_output openocd.log"Īnd under openocd_script I added the file stm32F103.cfg # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Arduino ide debugger software#
# License along with this library if not, write to the Free Software # You should have received a copy of the GNU Lesser General Public # See the GNU Lesser General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # but WITHOUT ANY WARRANTY without even the implied warranty of # This library is distributed in the hope that it will be useful, # version 2.1 of the License, or (at your option) any later version. # License as published by the Free Software Foundation either # modify it under the terms of the GNU Lesser General Public

# This library is free software you can redistribute it and/or In debug_scripts I added the file variant.gdb

Then I added two folder under /.arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/variants/STM32F1xx/F103C4T_F103C6(T-U)/ĭebug_scripts and openocd_scripts (I don't know why Bluepill variants point to F103C4T_F103C6(T_U) directory). # - this is alpha and may be subject to change without noticeĭebug.executable= # Debugger configuration (general options) In platform platform.txt I added the following lines: Then I modified platform.txt and boards.txt as follow: I'm on Linux and I used a STlink chinese clone as programmer/debugger.įirst of all, I installed Arduino SAMD board package (ver 1.8.13) in order to have openocd installed. In this days, I made some tests in order to make the debugger work with Arduino IDE 2.
