Optiboot / optiboot

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

unable to build #370

Open quantrpeter opened 1 year ago

quantrpeter commented 1 year ago

hi build has error but still producing the hex file, after i burn it to arduino nano, not working. The build error is:

C:\Users\Peter\Desktop\optiboot\optiboot\bootloaders\optiboot\Makefile(682,1): error: recipe for target 'baudcheck' failed
        process_begin: CreateProcess(NULL, bash baudcheck.tmp.sh, ...) failed.
        make (e=2): The system cannot find the file specified.
        make[1]: [baudcheck] Error 2 (ignored)
        avr-gcc -g -Wall -Os -fno-split-wide-types -mrelax -mmcu=atmega328p -DF_CPU=16000000L  -DBAUD_RATE=57600 -DLED_START_FLASHES=3                 -c -o optiboot.o optiboot.c
        avr-gcc -g -Wall -Os -fno-split-wide-types -mrelax -mmcu=atmega328p -DF_CPU=16000000L  -DBAUD_RATE=57600 -DLED_START_FLASHES=3               -Wl,-Tlink_optiboot.ld -Wl,--relax -nostartfiles -o optiboot_atmega328.elf optiboot.o 
        avr-size optiboot_atmega328.elf
           text    data     bss     dec     hex filename
            474       0       0     474     1da optiboot_atmega328.elf
        avr-objcopy -j .text -j .data -j .version --set-section-flags .version=alloc,load -O ihex optiboot_atmega328.elf optiboot_atmega328.hex
        avr-objdump -h -S optiboot_atmega328.elf > optiboot_atmega328.lst
        rm optiboot.o

image

thanks

WestfW commented 1 year ago

The baudcheck step of make relies on some utilities that may or may not be present on windows systems. It's mostly pretty-printing of baud rate issues, and the build will work fine without it.

I'll try to do some checking on exactly which packages result in having the full util set.