Open andrewboktor opened 1 year ago
GRBL is quite tight fit to atmega328p. You're using new version of avr-gcc, it may add new features and increase size of hex. Some suggest solution:
I can confirm this when compiling on MSYS2:
mingw-w64-ucrt-x86_64-avr-gcc-12.2.0-1
avr-size --format=berkeley build/main.elf
text data bss dec hex filename
36512 0 1633 38145 9501 build/main.elf
mingw-w64-ucrt-x86_64-avr-gcc-8.5.0-1-any.pkg.tar.zst
avr-size --format=berkeley build/main.elf
text data bss dec hex filename
29818 0 1633 31451 7adb build/main.elf
So 8.5.0 is fine, 12.2 not
The hex file I'm getting without modifying anything won't fit on atmega328p. I'm really stumped here. The released binary from 2019-08-25 do fit but I just need to swap some pins! Output of build and avr-gcc --version below