Re:PSA: If you're a fan of ATmega, try AVR Dx
by lloydatkinson on Thursday June 06, 2024 @08:19AM
(#40596542)
How’s debugging and breakpoints for these?
Re:PSA: If you're a fan of ATmega, try AVR Dx
by _benj on Thursday June 06, 2024 @09:35AM
(#40597247)
I don’t remember having used a debugger with these, so I couldn’t tell you how was that experience
Re:PSA: If you're a fan of ATmega, try AVR Dx
by violet13 on Thursday June 06, 2024 @09:48AM
(#40597350)
UPDI has robust on-chip debugging capabilities.
Re:PSA: If you're a fan of ATmega, try AVR Dx
by Mister_Snuggles on Thursday June 06, 2024 @10:28AM
(#40597830)
> life improvements like, in order to clear some registers all one need to do is write 1 instead of the whole =& ~(REG | 0x8) (or something like that, it’s been a while since I write embedded C)
This is a really interesting feature since it addresses a shortcoming of the C language (inability to easily express bit set/clear) by introducing a new hardware feature.
Re:PSA: If you're a fan of ATmega, try AVR Dx
by garaetjjte on Friday June 07, 2024 @07:34AM
(#40607595)
SBI/CBI only allowed changing one bit, new registers allow for multiple bits and also toggling them.
I didn’t used ATmega a lot, but comparing the experience to MSP430 and EFM8 the AVR chip has a bunch of niceties, superb documentation and life improvements like, in order to clear some registers all one need to do is write 1 instead of the whole =& ~(REG | 0x8) (or something like that, it’s been a while since I write embedded C)
The other thing that I loved is that one can download headers for the chip directly from the manufacturer!
Way too many chip manufacturers keep locking headers/libraries behind their proprietary IDEs, but Microchip, even though they have an IDE let’s you download the headers so one can use whatever tooling one is comfortable with! Props to Microchip for that!!