Optiboot / optiboot

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

Microchip Studio and Atmega328pb #338

Closed SandeepKel closed 2 years ago

SandeepKel commented 2 years ago

Trying to build the project for Atmega328pb with custom bootloader.

The build works correctly with built-in makefile, the moment i redirect to custom make file, it fails to build attached error and make file for your reference build_error Makefile.txt .

WestfW commented 2 years ago

I think you want CFLAGS added to your link command as well; it might need stuff that is part of the "pack." (although normally the bootloader build goes to avoid linking in the standard startup code via -nostartfiles, so this might not be your only problem.)

SandeepKel commented 2 years ago

Hey WestFW, thank you for your comments, the build is successful after adding the CFLAGS while linking.