GrumpyOldPizza/ArduinoCore-stm32l0

Debugging?

DanielArnett opened this issue · 0 comments

@GrumpyOldPizza you mentioned in other issues that you've used the Arduino debugger with these boards. Is there anything special you do to set that up?

I'm a fan of arduino-cli, but when I run

arduino-cli debug --fqbn TleraCorp:stm32l0:Grasshopper-L082CZ

I get

Error during Debug: Debugging not supported for board TleraCorp:stm32l0:Grasshopper-L082CZ

I try setting it up in the Arduino IDE, but I think I was having some UI issues, it kept saying I didn't have a configuration. Do you have any suggestions for debugging these boards?

In case anyone wants to use arduino-cli here are some commands:

# Install
arduino-cli config add board_manager.additional_urls https://grumpyoldpizza.github.io/ArduinoCore-stm32l0/package_stm32l0_boards_index.json
arduino-cli core update-index

# Build
arduino-cli compile  --export-binaries --fqbn TleraCorp:stm32l0:Grasshopper-L082CZ ./path/to/file.ino

# Upload, where $PORT is something like "/dev/ttyACM0" for Ubuntu or "COM5" for Windows.
arduino-cli upload --port $PORT --fqbn TleraCorp:stm32l0:Grasshopper-L082CZ ./path/to/file.ino