coseyfannitutti/discipline

bootloader error

Opened this issue · 1 comments

Hi.
Discipline is a great keyboard, I tried to make my own, but I encountered a little problem when flashing the boot loader, when I try to use qmk msys to make the hex file of the boot loader, an error will be reported, resulting in I can't flash in, it's been bugging me for days,

This is the information of the terminal,
please help me to see it, if you can give me a little help, I will be very grateful to you,
{I use usbasp}, if you can give me hex directly, it should be also solved my problem, thanks a lot

[CHK@DESKTOP-3QEGFU6 32a]$ cd /m/Desktop/USBaspLoader-atmega32a
[CHK@DESKTOP-3QEGFU6 USBaspLoader-atmega32a]$ make
.
.
======>BUILDING BOOTLOADER FIRMWARE
.
make[1]: 进入目录“/m/Desktop/USBaspLoader-atmega32a/firmware”
main.c: In function 'main':
: warning: function declared 'noreturn' has a 'return' statement
.
.
.
!!!ATTANTION!!!
(data+text) MUST fit into your MCUs bootloader section
.
text data bss dec hex filename
2136 6 55 2197 895 main.elf
.
.
.
make[1]: 离开目录“/m/Desktop/USBaspLoader-atmega32a/firmware”
.
.
======>BUILDING BOOTLOADER UPDATER (EXPERIMENTAL)
.
make[1]: 进入目录“/m/Desktop/USBaspLoader-atmega32a/updater”
In file included from updater.c:8:
usbasploader.h:20:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
extern const const uint16_t usbasploader[SIZEOF_new_firmware>>1] PROGMEM;
^~~~~
updater.c:53:4: warning: #warning I do not know where new "bootloader__do_spm" is located - assuming "NEW_BOOTLOADER_ADDRESS+(funcaddr___bootloader__do_spm % SPM_PAGESIZE)" [-Wcpp]
#warning I do not know where new "bootloader__do_spm" is located - assuming "NEW_BOOTLOADER_ADDRESS+(funcaddr___bootloader__do_spm % SPM_PAGESIZE)"
^~~~~~~
updater.c:61:4: warning: #warning "TEMP_SPM_PAGEADR" is not defined explicitly - will choose END OF FLASH ! [-Wcpp]
#warning "TEMP_SPM_PAGEADR" is not defined explicitly - will choose END OF FLASH !
^~~~~~~
.
.
text data bss dec hex filename
3102 2 0 3104 c20 updater.elf
.
make[1]: 离开目录“/m/Desktop/USBaspLoader-atmega32a/updater”
[CHK@DESKTOP-3QEGFU6 USBaspLoader-atmega32a]$