-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling under OSX #14
Comments
Turns out you can just drop Here's a working #This file is generated by VisualGDB.
#It contains GCC settings automatically derived from the board support package (BSP).
#DO NOT EDIT MANUALLY. THE FILE WILL BE OVERWRITTEN.
#Use VisualGDB Project Properties dialog or modify Makefile or per-configuration .mak files instead.
#VisualGDB provides BSP_ROOT and TOOLCHAIN_ROOT via environment when running Make. The line below will only be active if GNU Make is started manually.
BSP_ROOT ?= BSP
EFP_BASE ?= ../../../../Users/Aviv Greenberg/AppData/Local/VisualGDB/EmbeddedEFPs
TOOLCHAIN_ROOT ?= /Users/apowers/Projects/ctap-stm32/gcc-arm-none-eabi-5_4-2016q3/
#Embedded toolchain
CC := $(TOOLCHAIN_ROOT)/bin/arm-none-eabi-gcc
CXX := $(TOOLCHAIN_ROOT)/bin/arm-none-eabi-g++
LD := $(CXX)
AR := $(TOOLCHAIN_ROOT)/bin/arm-none-eabi-ar
OBJCOPY := $(TOOLCHAIN_ROOT)/bin/arm-none-eabi-objcopy
#Additional flags
PREPROCESSOR_MACROS += ARM_MATH_CM4 STM32F407VG USE_USB_FS stm32_flash_layout STM32F407xx
INCLUDE_DIRS += . $(BSP_ROOT)/STM32_USB_Device_Library/Core/Inc $(BSP_ROOT)/STM32_USB_Device_Library/Class/HID/Inc $(BSP_ROOT)/STM32F4xxxx/STM32F4xx_HAL_Driver/Inc $(BSP_ROOT)/STM32F4xxxx/STM32F4xx_HAL_Driver/Inc/Legacy $(BSP_ROOT)/STM32F4xxxx/CMSIS_HAL/Device/ST/STM32F4xx/Include $(BSP_ROOT)/STM32F4xxxx/CMSIS_HAL/Include $(BSP_ROOT)/STM32F4xxxx/CMSIS_HAL/RTOS/Template
LIBRARY_DIRS +=
#LIBRARY_NAMES += compactcpp
#-specs=nono.specs
ADDITIONAL_LINKER_INPUTS += -specs=nosys.specs --specs=rdimon.specs -lc -lrdimon
MACOS_FRAMEWORKS +=
LINUX_PACKAGES +=
CFLAGS += --specs=rdimon.specs -lc -lrdimon
CXXFLAGS +=
ASFLAGS += -mfpu=fpv4-sp-d16
LDFLAGS +=
COMMONFLAGS += -mcpu=cortex-m4 -mthumb -mfloat-abi=soft
LINKER_SCRIPT := $(BSP_ROOT)/STM32F407VG_flash.lds I'd submit a PR, but it looks like this file might be automatically generated / overwritten by VisualGDB. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to compile under OSX. After modifying
stm32.mak
(updateTOOLCHAIN_ROOT
, remove.exe
from tools, change tool names toarm-none-eabi-*
... I'll submit a PR once I get something working), the compile runs all the way to linking.Then I get this error:
All I see is that
stm32.mak
addscompactcpp
toLIBRARY_NAMES
... I'm not quite sure where to pick up this library so that I can link it in.Any hints would be appreciated.
The text was updated successfully, but these errors were encountered: