diff --git a/Makefile b/Makefile index 1a6c15b..54be891 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/include/arm_math.h b/include/arm_math.h index 580cbbd..9b401ab 100644 --- a/include/arm_math.h +++ b/include/arm_math.h @@ -299,7 +299,7 @@ #define __CMSIS_GENERIC /* disable NVIC and Systick functions */ #if defined(ARM_MATH_CM7) - #include "core_cm7.h" + #include #elif defined (ARM_MATH_CM4) #include "core_cm4.h" #elif defined (ARM_MATH_CM3) diff --git a/main.c b/main.c index 06c6ac0..1261905 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,6 @@ #include + unsigned int i = 0x12345678; unsigned char c = 2; diff --git a/stm32f7-template.config b/stm32f7-template.config new file mode 100644 index 0000000..03db85f --- /dev/null +++ b/stm32f7-template.config @@ -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 + diff --git a/stm32f7-template.creator b/stm32f7-template.creator new file mode 100644 index 0000000..e94cbbd --- /dev/null +++ b/stm32f7-template.creator @@ -0,0 +1 @@ +[General] diff --git a/stm32f7-template.files b/stm32f7-template.files new file mode 100644 index 0000000..c63c2db --- /dev/null +++ b/stm32f7-template.files @@ -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 diff --git a/stm32f7-template.includes b/stm32f7-template.includes new file mode 100644 index 0000000..a1a869c --- /dev/null +++ b/stm32f7-template.includes @@ -0,0 +1 @@ +include