Compiling on OSX for Adafruit STM32F405 Feather Express

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
ilium007
Posts: 37
Joined: Tue Feb 16, 2021 10:29 am

Compiling on OSX for Adafruit STM32F405 Feather Express

Post by ilium007 » Tue Oct 05, 2021 1:27 am

Hi - are there any recent guides on setting up a development environment on OSX so that I can compile for the Adafruit STM32F405 Feather Express board? I have done it about a year ago but can't find my build notes.

ilium007
Posts: 37
Joined: Tue Feb 16, 2021 10:29 am

Re: Compiling on OSX for Adafruit STM32F405 Feather Express

Post by ilium007 » Tue Oct 05, 2021 5:29 am

I was able to get part way through compiling:

Code: Select all

cd mpy-cross
make

cd ../ports/stm32
make BOARD=ADAFRUIT_F405_EXPRESS
Before it failed:

Code: Select all

CC ../../lib/oofatfs/ffunicode.c
CC build-ADAFRUIT_F405_EXPRESS/pins_ADAFRUIT_F405_EXPRESS.c
LINK build-ADAFRUIT_F405_EXPRESS/firmware.elf
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_utils.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sd.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_sdmmc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_mmc.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sdram.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dcmi.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2s.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2s_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/CMSIS/STM32F4xx/Source/Templates/gcc/startup_stm32f405xx.o: No such file or directory
arm-none-eabi-ld: cannot find build-ADAFRUIT_F405_EXPRESS/lib/stm32lib/CMSIS/STM32F4xx/Source/Templates/system_stm32f4xx.o: No such file or directory
make: *** [build-ADAFRUIT_F405_EXPRESS/firmware.elf] Error 1

ilium007
Posts: 37
Joined: Tue Feb 16, 2021 10:29 am

Re: Compiling on OSX for Adafruit STM32F405 Feather Express

Post by ilium007 » Tue Oct 05, 2021 5:36 am

I did a

Code: Select all

make BOARD=ADAFRUIT_F405_EXPRESS clean

and

make BOARD=ADAFRUIT_F405_EXPRESS deploy
and it worked

Post Reply