openblt for SENT #116

This commit is contained in:
AlexRMach 2022-07-15 15:06:31 +03:00
parent 4c0ff00e63
commit 1ebfc5101d
5 changed files with 16 additions and 16 deletions

View File

@ -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 =

View File

@ -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

View File

@ -1,8 +1 @@
rd /s /q .dep
echo Starting compilation
rem the important piece
make -j12
call flash
bash.exe compile.sh

View File

@ -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

View File

@ -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