Skip to content

compile error #2

Description

@brentpicasso

Hello,

I am trying to compile on Linux- I have downloaded the btstack and stm32f4-discovery firmware, updated the Makefile to point to these sub directories, and copied in what I believe was an appropriate flash linker script.

I am seeing the following make error. I'm thinking perhaps you used a older version of the STM32F4-discovery firmware? I have also noticed the patch you supplied failed to apply for me, I will be looking into manually patching as well.

I have also uploaded a copy of the uubt code in the current state I'm testing, so you can reproduce, here: http://dropcanvas.com/1zw07

Thank you so much for creating this code, it will help immensely with our open source project.


[brent@ubuntu src]$ make
arm-none-eabi-gcc -g -O0 -mlittle-endian -mthumb -mcpu=cortex-m4 -ffreestanding -nostdlib -DUSE_STDPERIPH_DRIVER=1 -DSTM32F4XX=1 -DUSE_USB_OTG_FS=1 -Wl,-T,./clones/stm32_flash.ld -I. -I./conf -I./clones -I./dummy -Ibtstack/include -Ibtstack/src -ISTM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Include -ISTM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/Include -ISTM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver/inc -ISTM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_HOST_Library/Core/inc -ISTM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_OTG_Driver/inc -ISTM32F4-Discovery_FW_V1.1.0/Utilities/STM32F4-Discovery btstack/src/btstack_memory.c btstack/src/linked_list.c btstack/src/memory_pool.c btstack/src/run_loop.c btstack/src/run_loop_embedded.c btstack/src/hci.c btstack/src/hci_cmds.c btstack/src/hci_dump.c btstack/src/l2cap.c btstack/src/l2cap_signaling.c btstack/src/remote_device_db_memory.c btstack/src/rfcomm.c btstack/src/sdp.c btstack/src/sdp_util.c btstack/src/utils.c STM32F4-Discovery_FW_V1.1.0/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/gcc_ride7/startup_stm32f4xx.s STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_core.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_hcd.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_OTG_Driver/src/usb_hcd_int.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_HOST_Library/Core/src/usbh_stdreq.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_HOST_Library/Core/src/usbh_core.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_HOST_Library/Core/src/usbh_hcs.c STM32F4-Discovery_FW_V1.1.0/Libraries/STM32_USB_HOST_Library/Core/src/usbh_ioreq.c STM32F4-Discovery_FW_V1.1.0/Utilities/STM32F4-Discovery/stm32f4_discovery.c main.c usbh_bt_core.c hci_transport_uubt.c os/none/hal_bt_os.c os/none/stm32f4xx_it.c clones/system_stm32f4xx.c clones/usb_bsp.c clones/newlib_stubs.c dummy/usbh_usr.c -o uubt-noos.elf -lc -lgcc
-LSTM32F4-Discovery_FW_V1.1.0/Libraries/STM32F4xx_StdPeriph_Driver -lSTM32F4xx_StdPeriph_Driver
usbh_bt_core.c: In function 'usb_bt_evt_process':
usbh_bt_core.c:260:6: warning: large integer implicitly truncated to unsigned type
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld: cannot find -lSTM32F4xx_StdPeriph_Driver
collect2: ld returned 1 exit status
make: *** [uubt-noos.elf] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions