Compare commits
3 Commits
3861b82515
...
8e25f5ddb1
Author | SHA1 | Date | |
---|---|---|---|
8e25f5ddb1 | |||
f5a297a384 | |||
96864a4b7c |
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ project.elf
|
||||
*.map
|
||||
*.bin
|
||||
*.hex
|
||||
*.lss
|
||||
*.user
|
||||
*.user*
|
||||
*.user.*
|
||||
|
6
Makefile
6
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)
|
||||
|
@ -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
1
main.c
@ -1,5 +1,6 @@
|
||||
#include <stm32f7xx.h>
|
||||
|
||||
|
||||
unsigned int i = 0x12345678;
|
||||
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