I have inserted a line into my .arduino15/packages/arduino/hardware/avr/1.8.3/boards.txt file
nano.menu.cpu.atmega328old.build.mcu=atmega328p , I inserted
(Similar lines can be used for other differentiation). So now I can use
#ifdef NANO_OLD_BOOTLOADER #define BAUDRATE 38400 // old boot loader? works ok #else #define BAUDRATE 115200 // ESP8266 default of 74880 not supported on Linux #endif
I have two types of Nano clones, some with the old bootloader and some with the new.
I would like to compile different code depending on which bootloader is involved.
The specific problem I have is that the 'new' ones are happy communicating at 115200 to Serial Monitor, but the 'old' ones drop characters at 115200 & 57600; they only seem reliable at 38400 or below.
So anyway, I would like to select a lower baud rate for my 'old' ones
- I realise that it may not be the actual bootloader, but some other hardware quirk/shortcut, so perhaps 'just update the bootloader' may not fix things.