Posts

Showing posts from June, 2021

Programming an Arduino UNO with the Atmel ICE from macOS command line (or S4A IDE)

Hardware always makes it into the Swift for Arduino IDE by going through a trial on the macOS command line first. I have various test rigs that I use to get hardware and systems working there first. I found it pretty hard to find documentation on how to program using macOS / open source software (not using the AVR Studio IDE or MPLab). I've just bought a shiny, new ATATMEL-ICE programmer/debugger with cables for $100 and I'm itching to get it working. First task, make a simple blink program and upload it. Lots of obstacles! I'm putting some of the things I've found in here, if for no other reason than to save people several hours of googling. First, which program do we run to connect to the Atmel-ICE? It seems like for AVR, good old avrdude is OK. As is often the case, the cool community at Platform.IO have some discussion on it... https://community.platformio.org/t/upload-and-debug-for-atmega328p-with-atmel-ice/18796/2 Next problem, which cable?? OK, this page from Atm