Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mikaël BRIDAY
itii-mac-tp-etu
Commits
e5637bd0
Commit
e5637bd0
authored
Oct 06, 2020
by
Mikaël BRIDAY
Browse files
start FPU. update optimisation flags
parent
95d27008
Changes
2
Hide whitespace changes
Inline
Side-by-side
sys/cmake/stm32f303.cmake
View file @
e5637bd0
# define CPU OPTIONS
# define CPU OPTIONS
#
set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F303x8 -DARMCM4)
set
(
CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F303x8 -DARMCM4
)
set
(
CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=soft -DSTM32F303x8 -DARMCM4
)
#
set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=soft -DSTM32F303x8 -DARMCM4)
set
(
CMAKE_C_FLAGS_DEBUG
"-O0
-g -Wall -fexceptions
-Wno-deprecated -DDEBUG"
)
set
(
CMAKE_C_FLAGS_DEBUG
"-O0 -Wno-deprecated
-Werror
-DDEBUG"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-O0
-g -Wall -fexceptions
-Wno-deprecated -DDEBUG"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-O0 -Wno-deprecated
-Werror
-DDEBUG"
)
set
(
CMAKE_C_FLAGS_RELEASE
"-O3
-funroll-loops -fomit-frame-pointer -fno-strict-aliasing -pipe -ffast-math -fexceptions -flto"
)
set
(
CMAKE_C_FLAGS_RELEASE
"-O3
"
)
#remove the -Werror => pb with Adafruit lib.
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3
-funroll-loops -fomit-frame-pointer -fno-strict-aliasing -pipe -ffast-math -fexceptions -flto
"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3"
)
#compiler options
#compiler options
add_compile_options
(
add_compile_options
(
...
@@ -22,7 +22,6 @@ add_compile_options(
...
@@ -22,7 +22,6 @@ add_compile_options(
$<$<COMPILE_LANGUAGE:CXX>:-fno-threadsafe-statics>
$<$<COMPILE_LANGUAGE:CXX>:-fno-threadsafe-statics>
-fstrict-volatile-bitfields
-fstrict-volatile-bitfields
-ffunction-sections
-ffunction-sections
-Werror
-Wall
-Wall
-Wextra
-Wextra
-Wcast-align
-Wcast-align
...
@@ -33,6 +32,8 @@ add_compile_options(
...
@@ -33,6 +32,8 @@ add_compile_options(
-Wsuggest-final-types
-Wsuggest-final-types
-Wsuggest-final-methods
-Wsuggest-final-methods
#-pedantic
#-pedantic
-fexceptions
-g
)
)
include_directories
(
include_directories
(
...
...
sys/startup_ARMCM4.c
View file @
e5637bd0
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
// #error device not specified!
// #error device not specified!
//#endif
//#endif
#include
<stdint.h>
#include
<stdint.h>
#include
"stm32f3xx.h"
#include
"core_cm4.h"
/*----------------------------------------------------------------------------
/*----------------------------------------------------------------------------
Linker generated Symbols
Linker generated Symbols
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment