openblt for SENT #116
This commit is contained in:
parent
4c0ff00e63
commit
1ebfc5101d
|
@ -18,7 +18,7 @@ ifeq ($(USE_CPPOPT),)
|
|||
USE_CPPOPT = -fno-rtti -fno-exceptions -ffast-math -funsafe-math-optimizations -fno-threadsafe-statics -fno-use-cxa-atexit
|
||||
USE_CPPOPT += -std=c++2a
|
||||
endif
|
||||
|
||||
|
||||
# Enable this if you want the linker to remove unused code and data.
|
||||
ifeq ($(USE_LINK_GC),)
|
||||
USE_LINK_GC = yes
|
||||
|
@ -26,7 +26,7 @@ endif
|
|||
|
||||
# Linker extra options here.
|
||||
ifeq ($(USE_LDOPT),)
|
||||
USE_LDOPT =
|
||||
USE_LDOPT =
|
||||
endif
|
||||
|
||||
# Enable this if you want link time optimizations (LTO).
|
||||
|
@ -84,7 +84,7 @@ endif
|
|||
#
|
||||
|
||||
# Define project name here
|
||||
PROJECT = sent
|
||||
PROJECT = sent_box_blue_pill
|
||||
|
||||
# Target settings.
|
||||
MCU = cortex-m3
|
||||
|
@ -119,8 +119,11 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
|
|||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||
|
||||
# Define linker script file here
|
||||
ifeq ("$(USE_OPENBLT)","yes")
|
||||
LDSCRIPT= STM32F103xB_sent.ld
|
||||
else
|
||||
LDSCRIPT= $(STARTUPLD)/STM32F103xB.ld
|
||||
|
||||
endif
|
||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||
# setting.
|
||||
CSRC = $(ALLCSRC)
|
||||
|
@ -158,6 +161,8 @@ CPPWARN = -Wall -Wextra -Wundef
|
|||
# Start of user section
|
||||
#
|
||||
|
||||
SREC = $(CP) -O srec
|
||||
|
||||
# List all user C define here, like -D_DEBUG=1
|
||||
UDEFS =
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ rem make, gcc, Windows and Cygwin combined have some issue with spaces or colons
|
|||
rem that's more or less 'make clean'
|
||||
rd /s /q .dep
|
||||
rd /s /q build
|
||||
make clean
|
||||
|
||||
# that's 'make' with some extra utilities
|
||||
compile.bat
|
||||
rem that's 'make' with some extra utilities
|
||||
rem compile.bat
|
|
@ -1,8 +1 @@
|
|||
|
||||
rd /s /q .dep
|
||||
|
||||
echo Starting compilation
|
||||
rem the important piece
|
||||
make -j12
|
||||
|
||||
call flash
|
||||
bash.exe compile.sh
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "todo: finish me, should run on cygwin"
|
||||
BOARD=blue_pill USE_OPENBLT=yes \
|
||||
USE_OPT="-O0 -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant" \./common_make.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
st-link_cli -c SWD ur -P build\ch.hex -Rst -Run
|
||||
st-link_cli -c SWD ur -P build\sent_box_blue_pill.hex -Rst -Run
|
||||
|
|
Loading…
Reference in New Issue