adafruit / tinyuf2

UF2 bootloader based on TinyUSB for embedded devices such as ESP32S2, STM32F4 and iMX RT10xx
MIT License
312 stars 170 forks source link

STM32F4 board: stm32f411ce_blackpill wont compile (SOLVED) #395

Closed Rulaman closed 1 month ago

Rulaman commented 1 month ago

Operating System

Linux

INFO_UF2.TXT

-none-

What happened ?

Cannot compile the board as in the tilte described

How to reproduce ?

.../tinyuf2$ python3 tools/get_deps.py stm32f4 .../tinyuf2$ python3 tools/get_deps.py --board stm32f411ce_blackpill .../tinyuf2/ports/stm32f4$ make BOARD=stm32f411ce_blackpill all

Debug Log

AS startup_stm32f411xe.o CC ghostfat.o CC images.o CC main.o .../tinyuf2/src/main.c:33:10: fatal error: tusb.h: No such file or directory 33 | #include "tusb.h" | ^~~~ compilation terminated. make: *** [../rules.mk:92: _build/stm32f411ce_blackpill/obj/src/main.o] Error 1

Screenshots

No response

Rulaman commented 1 month ago

In the compile description there is simply a line missing.

git submodule update --init --recursive

Execute this command from the directory, where the repo has been cloned.

hathach commented 1 month ago

no, you need to run, it is mentioned in the readme

python tools/get_deps.py stm32f4
Rulaman commented 1 month ago

Hi Ha,

i did run the command

python tools/get_deps.py stm32f4

but it did not fetch the necessary repositories like tinyusb and uf2.

It was not clear enough, that I have to clone the repo with submodules, which I didn`t.

That is the point that lacks in the docu.

Greetings Rulaman

18.07.2024 11:29:23 Ha Thach @.***>:

no, you need to run, it is mentioned in the readme

python tools/get_deps.py stm32f4 — Reply to this email directly, view it on GitHub[https://github.com/adafruit/tinyuf2/issues/395#issuecomment-2236049952], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALXED7RDPC242ZS4BHWW35DZM6DHFAVCNFSM6AAAAABK2IK75WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWGA2DSOJVGI]. You are receiving this because you authored the thread. [Verfolgungsbild][https://github.com/notifications/beacon/ALXED7UABL62TC54UM73QQ3ZM6DHFA5CNFSM6AAAAABK2IK75WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUFI5VCA.gif]

hathach commented 1 month ago

ah you are right, let me update the doc