stm32duino / Arduino_Core_STM32

STM32 core support for Arduino

Home Page:https://github.com/stm32duino/Arduino_Core_STM32/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use debug function in Arduino IDE 2.3.0

China-Mr-Hou opened this issue · comments

Describe the bug
Recently I'm using Arduino IDE version 2.2.1, its debug function worked well on my H743VIT6, however after I upgrade to 2.3.0, it says I should select a programmer and doesn't show any more info. The “Tool" menu above doesn't have a programmer selection either. I tried copying the programmer.txt file included from Arduino GIGA R1 package from Arduino Official since GIGA board also uses STM32H7 as the core chip and it didn't change anything.

To Reproduce

Steps to reproduce the behavior:

  1. Install Arduino IDE 2.3.0
  2. Click on the Debug Tab one the left side
  3. See error: No programmer selected for XXX

Desktop (please complete the following information):

  • OS: Windows 11 build 22621
  • Arduino IDE version: 2.3.0
  • STM32 core version: 2.7.1
  • Tools menu settings if not the default: Nothing changed.
  • Upload method: SWD

Board (please complete the following information):

  • Name: Generic H743VITx
  • Hardware Revision: None
  • Extra hardware used if any: None

Additional context
I have standalone OpenOCD and JLink software installed.

Hi @China-Mr-Hou
I saw this issue. It comes from changes from arduino-cli.
I've already started to work on this but need more time to properly handle that and I think I found some issues with the Arduino IDE 2.
More info here: arduino/arduino-ide#2368

I wrote this comment after I have upgraded my IDE to 2.3.1 and found Arduino Team didn't fix this problem (since issue#2354 is intended). In my opinion, they may be thinking choosing a programmer instead of writing debug configuration json file is simpler. Since simply copying programmers.txt file from Arduino GIGA R1 is not possible, the problem might be in platform.txt, boards.txt or other hardware definition files (which I truly don't understand, sorry :[ ) Anyway, I still appreciate the Arduino developing platform itself and every third party contributions for making hardware coding easy for everyone.

Hi @China-Mr-Hou
the issue will be solved within next Arduino IDE released (refers to the arduino/arduino-ide#2368).
Anyway, I will reviewed all the debug configuration to enhance user experience.