patrickdowling / superparasites

47 stars 11 forks source link

Bootloader? #2

Open epijdemie opened 4 years ago

epijdemie commented 4 years ago

Pardon my Noobness, but i just managed to compile the supercell.hex within the Mutable Vagrant (with the arm toolchain installed you listed) but i fail to compile the bootloader.

i used " make -f supercell/bootloader/makefile hex" (like with clouds) but it outputs a lot of such errors: : fatal error: opening dependency file build/supercell_bootloader/startup_stm32f4xx.d: No such file or directory

and "make -f supercell/makefile VARIANT=SUPERCELL upload" wants a bootloader to be able to make the combo.bin: **make: * No rule to make target build/supercell_bootloader/supercell_bootloader.hex, needed by build/supercell/supercell_bootloader_combo.bin. Stop.

do i just copy the "build/clouds_bootloader" content into "build/supercell_bootloader" or how does this work?

patrickdowling commented 4 years ago

IIRC the .d messages are annoying but not actually fatal, there's some quirk in the dependency generation when run the first time. Just using make -f supercell/bootloader/makefile (without hex) seems to work fine.

You don't generally want to mix & match the stmlibs (if that's what I gleaned out of the other thread) because these versions use a custom linker script for the different MCU that doesn't get picked up with the regular one.

epijdemie commented 4 years ago

You were right, it compiled AFTER paging tons of these errors. I always exited the process after seeing lots of those FATAL ERRORs because the first time i tried it (with hex at the end) led to no results