did things

This commit is contained in:
Mario Hüttel 2017-07-06 10:32:04 +02:00
parent 9f8a51da6a
commit 96864a4b7c
7 changed files with 24 additions and 5 deletions

View File

@ -10,7 +10,7 @@ INCLUDEPATH = -Iinclude
target = project
LIBRARYPATH = -Lstartup -Ldsp
LIBRARIES = -larm_cortexM7lfsp_math
LIBRARIES = -larm_cortexM7lfsp_math -lm
DEFINES = -DSTM32F746xx -DSTM32F7XX -DARM_MATH_CM7
mapfile = memmap
@ -40,15 +40,13 @@ ASOBJ = $(ASFILES:%.S=%.S.o)
default: $(target).elf
binary: $(target).bin $(target).hex
%.bin: %.elf
$(OBJCOPY) -O binary $^ $@
%.hex: %.elf
$(OBJCOPY) -O ihex $^ $@
#Linking
$(target).elf: $(OBJ) $(ASOBJ)
$(CC) $(LFLAGS) $(LIBRARYPATH) -o $@ $^ $(LIBRARIES)

View File

@ -299,7 +299,7 @@
#define __CMSIS_GENERIC /* disable NVIC and Systick functions */
#if defined(ARM_MATH_CM7)
#include "core_cm7.h"
#include <cmsis/core_cm7.h>
#elif defined (ARM_MATH_CM4)
#include "core_cm4.h"
#elif defined (ARM_MATH_CM3)

1
main.c
View File

@ -1,5 +1,6 @@
#include <stm32f7xx.h>
unsigned int i = 0x12345678;
unsigned char c = 2;

6
stm32f7-template.config Normal file
View File

@ -0,0 +1,6 @@
// Add predefined macros for your project here. For example:
// #define THE_ANSWER 42
#define STM32F746xx
#define STM32F7XX
#define ARM_MATH_CM7

1
stm32f7-template.creator Normal file
View File

@ -0,0 +1 @@
[General]

12
stm32f7-template.files Normal file
View File

@ -0,0 +1,12 @@
include/arm_math.h
include/cmsis/cmsis_gcc.h
include/cmsis/core_cm7.h
include/cmsis/core_cmFunc.h
include/cmsis/core_cmInstr.h
include/cmsis/core_cmSimd.h
include/stm32f746xx.h
include/stm32f7xx.h
main.c
setup/system_init.c
startup/startup_stm32f746.c
syscalls/syscalls.c

View File

@ -0,0 +1 @@
include