Avrdude hints and tips

To programm avr microcontrollers require to have avrdude programm. It can update chip firmware using different programmators. To obtain avrdude sources visit github. To compile libusb will be also required. Libusb can be compiled in standard way, using configure script. OS architecture should be detected automatically, arm64 in my way. Avrdude use cmake scripts, to define OS architecture use follow command line: cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -D CMAKE_C_FLAGS='-I/usr/local/include -I/usr/local/include/libusb-1.0' -D CMAKE_BUILD_TYPE=RelWithDebInfo -B build_darwin To flash firmware to microcontroller (atmega 323) use:...

September 2, 2024