What is the recommended development setup (with debugging) #399
Replies: 2 comments 3 replies
-
To be perfectly honest, I don't use a hardware debugger at all. I use "printf debugging" via serial most of the time. There are multiple reasons:
The only problems where I would really dig in with a debugger were compiler bugs in the past. For those I just ran sample programs in That said, I'm sure others have differing opinions, would love to hear what everyone else is doing! |
Beta Was this translation helpful? Give feedback.
-
One of the biggest problems (from what I've just researched) is that many AVR boards use the partially reverse engineered debugWire protocol with other partial attempts sketched by different authors from protocol to electrical level. So unfortunately I've not seen any solid source debugging solution for VSCode that'd give the hardware debug development experience you expect in 2024... unless you want to deal with vintage boards like the AVR Dragon or the like :-S Even modern boards like the Glasgow Interface Explorer does not (nor plans to) have support for debugWire at the time of writing. The
Not to mention that real sensor inputs (i.e I2C) would probably require generating some captures in Please do share that custom EDIT: Turns out there's JTAG in the AtMega2560 but it's a bit involved to enable, seemingly requires an Atmel-ICE dongle and only works on Atmel Studio 7 (Windows). /cc @jubeormk1 |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I want to set up a good development environment that works with the Atmel-ICE and the ATmega128A (JTAG). Right now, I am using Linux with VSCodium. On
cargo run
, AVRDUDE programs my MCU with an Atmel-ICE.I am trying to use the internal debugging tools from Rust-analyser and CodeLLDB, but I can't get anything to work. I also tried MPLAB X IDE with the ELF file from my Rust project, but I don't think the breakpoints I added in VSCodium are in it?
How are you guys programming and debugging AVR microcontrollers with Rust? A Windows setup is also possible for me. Most examples online are for ARM MCU's...
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions