did things
This commit is contained in:
parent
9f8a51da6a
commit
96864a4b7c
6
Makefile
6
Makefile
@ -10,7 +10,7 @@ INCLUDEPATH = -Iinclude
|
|||||||
|
|
||||||
target = project
|
target = project
|
||||||
LIBRARYPATH = -Lstartup -Ldsp
|
LIBRARYPATH = -Lstartup -Ldsp
|
||||||
LIBRARIES = -larm_cortexM7lfsp_math
|
LIBRARIES = -larm_cortexM7lfsp_math -lm
|
||||||
|
|
||||||
DEFINES = -DSTM32F746xx -DSTM32F7XX -DARM_MATH_CM7
|
DEFINES = -DSTM32F746xx -DSTM32F7XX -DARM_MATH_CM7
|
||||||
mapfile = memmap
|
mapfile = memmap
|
||||||
@ -40,15 +40,13 @@ ASOBJ = $(ASFILES:%.S=%.S.o)
|
|||||||
|
|
||||||
default: $(target).elf
|
default: $(target).elf
|
||||||
|
|
||||||
|
binary: $(target).bin $(target).hex
|
||||||
|
|
||||||
|
|
||||||
%.bin: %.elf
|
%.bin: %.elf
|
||||||
$(OBJCOPY) -O binary $^ $@
|
$(OBJCOPY) -O binary $^ $@
|
||||||
%.hex: %.elf
|
%.hex: %.elf
|
||||||
$(OBJCOPY) -O ihex $^ $@
|
$(OBJCOPY) -O ihex $^ $@
|
||||||
|
|
||||||
|
|
||||||
#Linking
|
#Linking
|
||||||
$(target).elf: $(OBJ) $(ASOBJ)
|
$(target).elf: $(OBJ) $(ASOBJ)
|
||||||
$(CC) $(LFLAGS) $(LIBRARYPATH) -o $@ $^ $(LIBRARIES)
|
$(CC) $(LFLAGS) $(LIBRARYPATH) -o $@ $^ $(LIBRARIES)
|
||||||
|
@ -299,7 +299,7 @@
|
|||||||
#define __CMSIS_GENERIC /* disable NVIC and Systick functions */
|
#define __CMSIS_GENERIC /* disable NVIC and Systick functions */
|
||||||
|
|
||||||
#if defined(ARM_MATH_CM7)
|
#if defined(ARM_MATH_CM7)
|
||||||
#include "core_cm7.h"
|
#include <cmsis/core_cm7.h>
|
||||||
#elif defined (ARM_MATH_CM4)
|
#elif defined (ARM_MATH_CM4)
|
||||||
#include "core_cm4.h"
|
#include "core_cm4.h"
|
||||||
#elif defined (ARM_MATH_CM3)
|
#elif defined (ARM_MATH_CM3)
|
||||||
|
1
main.c
1
main.c
@ -1,5 +1,6 @@
|
|||||||
#include <stm32f7xx.h>
|
#include <stm32f7xx.h>
|
||||||
|
|
||||||
|
|
||||||
unsigned int i = 0x12345678;
|
unsigned int i = 0x12345678;
|
||||||
unsigned char c = 2;
|
unsigned char c = 2;
|
||||||
|
|
||||||
|
6
stm32f7-template.config
Normal file
6
stm32f7-template.config
Normal 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
1
stm32f7-template.creator
Normal file
@ -0,0 +1 @@
|
|||||||
|
[General]
|
12
stm32f7-template.files
Normal file
12
stm32f7-template.files
Normal 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
|
1
stm32f7-template.includes
Normal file
1
stm32f7-template.includes
Normal file
@ -0,0 +1 @@
|
|||||||
|
include
|
Loading…
Reference in New Issue
Block a user