Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.08k stars 396 forks source link

Building optiboot on MacOS 14.3.1 with Arduino IDE 2.3.2 #378

Closed DrRob closed 3 months ago

DrRob commented 3 months ago

Hi,

I'm trying to built Optiboot for an Arduno Pro Mini clone with a lower baud rate to see if that'll enable it to work over an RS485 serial connection (I get "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0" – hints welcome if I'm barking up the wrong tree here...).

However, the instructions for "Building Optiboot in the Arduino IDE Install" don't work with the latest Arduino IDE 2.3.2 – the relative paths in omake are wrong, and I can't find any make under ~/Library/Arduino15, let alone the right one.

The instructions also say if you have the developer tools installed you can use the Apple-supplied version of make, but:

> /Applications/Xcode.app/Contents/Developer/usr/bin/make OS=macosx ENV=arduino atmega328 
make: Nothing to be done for `atmega328'.

Can someone give me some clues?

Thanks, Rob.

DrRob commented 3 months ago

Figured it out, at least enough to progress. I switched to using a checkout from github instead of the version that's included with the Arduino IDE, put /Users/rob/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin in my $PATH, and removed ENV=arduino from the command line.