-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STM32F429I-Discovery demo, compiles but not tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6382 35acf78f-673a-0410-8e92-d51de3d6d3f4
- Loading branch information
gdisirio
committed
Oct 27, 2013
1 parent
04ef986
commit d2a64f6
Showing
11 changed files
with
2,222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?fileVersion 4.0.0?> | ||
|
||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
<storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
<cconfiguration id="0.114656749"> | ||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.114656749" moduleId="org.eclipse.cdt.core.settings" name="Default"> | ||
<externalSettings/> | ||
<extensions> | ||
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
</extensions> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<configuration artifactName="${ProjName}" buildProperties="" description="" id="0.114656749" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg"> | ||
<folderInfo id="0.114656749." name="/" resourcePath=""> | ||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1182750861" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain"> | ||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1182750861.169007201" name=""/> | ||
<builder autoBuildTarget="all" cleanBuildTarget="clean" enableAutoBuild="false" enableCleanBuild="true" enabledIncrementalBuild="true" id="org.eclipse.cdt.build.core.settings.default.builder.579570726" incrementalBuildTarget="all" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="org.eclipse.cdt.build.core.settings.default.builder"/> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.2143276802" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1873650595" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1337802279" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1707090075" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.338985256" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
</tool> | ||
<tool id="org.eclipse.cdt.build.core.settings.holder.1165165914" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder"> | ||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.714476670" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/> | ||
</tool> | ||
</toolChain> | ||
</folderInfo> | ||
</configuration> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
</cconfiguration> | ||
</storageModule> | ||
<storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
<project id="ARMCM4-STM32F407-DISCOVERY-ALT.null.1703860681" name="ARMCM4-STM32F407-DISCOVERY-ALT"/> | ||
</storageModule> | ||
<storageModule moduleId="scannerConfiguration"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> | ||
<scannerConfigBuildInfo instanceId="0.114656749"> | ||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | ||
</scannerConfigBuildInfo> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
<storageModule moduleId="refreshScope"/> | ||
</cproject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>ARMCM4-STM32F429-DISCOVERY</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
<dictionary> | ||
<key>?name?</key> | ||
<value></value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.append_environment</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
<value>all</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildArguments</key> | ||
<value>-j1</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.buildCommand</key> | ||
<value>make</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
<value>clean</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.contents</key> | ||
<value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
<value>false</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
<value>all</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.stopOnError</key> | ||
<value>true</value> | ||
</dictionary> | ||
<dictionary> | ||
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
<value>true</value> | ||
</dictionary> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
<triggers>full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.core.cnature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
</natures> | ||
<linkedResources> | ||
<link> | ||
<name>board</name> | ||
<type>2</type> | ||
<locationURI>CHIBIOS/boards/ST_STM32F429I_DISCOVERY</locationURI> | ||
</link> | ||
<link> | ||
<name>os</name> | ||
<type>2</type> | ||
<locationURI>CHIBIOS/os</locationURI> | ||
</link> | ||
<link> | ||
<name>test</name> | ||
<type>2</type> | ||
<locationURI>CHIBIOS/test</locationURI> | ||
</link> | ||
</linkedResources> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
############################################################################## | ||
# Build global options | ||
# NOTE: Can be overridden externally. | ||
# | ||
|
||
# Compiler options here. | ||
ifeq ($(USE_OPT),) | ||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 | ||
endif | ||
|
||
# C specific options here (added to USE_OPT). | ||
ifeq ($(USE_COPT),) | ||
USE_COPT = | ||
endif | ||
|
||
# C++ specific options here (added to USE_OPT). | ||
ifeq ($(USE_CPPOPT),) | ||
USE_CPPOPT = -fno-rtti | ||
endif | ||
|
||
# Enable this if you want the linker to remove unused code and data | ||
ifeq ($(USE_LINK_GC),) | ||
USE_LINK_GC = yes | ||
endif | ||
|
||
# If enabled, this option allows to compile the application in THUMB mode. | ||
ifeq ($(USE_THUMB),) | ||
USE_THUMB = yes | ||
endif | ||
|
||
# Enable this if you want to see the full log while compiling. | ||
ifeq ($(USE_VERBOSE_COMPILE),) | ||
USE_VERBOSE_COMPILE = no | ||
endif | ||
|
||
# | ||
# Build global options | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Architecture or project specific options | ||
# | ||
|
||
# Enables the use of FPU on Cortex-M4. | ||
# Enable this if you really want to use the STM FWLib. | ||
ifeq ($(USE_FPU),) | ||
USE_FPU = no | ||
endif | ||
|
||
# Enable this if you really want to use the STM FWLib. | ||
ifeq ($(USE_FWLIB),) | ||
USE_FWLIB = no | ||
endif | ||
|
||
# | ||
# Architecture or project specific options | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Project, sources and paths | ||
# | ||
|
||
# Define project name here | ||
PROJECT = ch | ||
|
||
# Imported source files and paths | ||
CHIBIOS = ../.. | ||
include $(CHIBIOS)/boards/ST_STM32F429I_DISCOVERY/board.mk | ||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk | ||
include $(CHIBIOS)/os/hal/hal.mk | ||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk | ||
include $(CHIBIOS)/os/kernel/kernel.mk | ||
include $(CHIBIOS)/test/test.mk | ||
|
||
# Define linker script file here | ||
LDSCRIPT= $(PORTLD)/STM32F429xI.ld | ||
|
||
# C sources that can be compiled in ARM or THUMB mode depending on the global | ||
# setting. | ||
CSRC = $(PORTSRC) \ | ||
$(KERNSRC) \ | ||
$(TESTSRC) \ | ||
$(HALSRC) \ | ||
$(PLATFORMSRC) \ | ||
$(BOARDSRC) \ | ||
$(CHIBIOS)/os/various/shell.c \ | ||
$(CHIBIOS)/os/various/chprintf.c \ | ||
usbcfg.c main.c | ||
|
||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global | ||
# setting. | ||
CPPSRC = | ||
|
||
# C sources to be compiled in ARM mode regardless of the global setting. | ||
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
# option that results in lower performance and larger code size. | ||
ACSRC = | ||
|
||
# C++ sources to be compiled in ARM mode regardless of the global setting. | ||
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
# option that results in lower performance and larger code size. | ||
ACPPSRC = | ||
|
||
# C sources to be compiled in THUMB mode regardless of the global setting. | ||
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
# option that results in lower performance and larger code size. | ||
TCSRC = | ||
|
||
# C sources to be compiled in THUMB mode regardless of the global setting. | ||
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler | ||
# option that results in lower performance and larger code size. | ||
TCPPSRC = | ||
|
||
# List ASM source files here | ||
ASMSRC = $(PORTASM) | ||
|
||
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \ | ||
$(HALINC) $(PLATFORMINC) $(BOARDINC) \ | ||
$(CHIBIOS)/os/various/devices_lib/accel \ | ||
$(CHIBIOS)/os/various | ||
|
||
# | ||
# Project, sources and paths | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Compiler settings | ||
# | ||
|
||
MCU = cortex-m4 | ||
|
||
#TRGT = arm-elf- | ||
TRGT = arm-none-eabi- | ||
CC = $(TRGT)gcc | ||
CPPC = $(TRGT)g++ | ||
# Enable loading with g++ only if you need C++ runtime support. | ||
# NOTE: You can use C++ even without C++ support if you are careful. C++ | ||
# runtime support makes code size explode. | ||
LD = $(TRGT)gcc | ||
#LD = $(TRGT)g++ | ||
CP = $(TRGT)objcopy | ||
AS = $(TRGT)gcc -x assembler-with-cpp | ||
OD = $(TRGT)objdump | ||
HEX = $(CP) -O ihex | ||
BIN = $(CP) -O binary | ||
|
||
# ARM-specific options here | ||
AOPT = | ||
|
||
# THUMB-specific options here | ||
TOPT = -mthumb -DTHUMB | ||
|
||
# Define C warning options here | ||
CWARN = -Wall -Wextra -Wstrict-prototypes | ||
|
||
# Define C++ warning options here | ||
CPPWARN = -Wall -Wextra | ||
|
||
# | ||
# Compiler settings | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Start of default section | ||
# | ||
|
||
# List all default C defines here, like -D_DEBUG=1 | ||
DDEFS = | ||
|
||
# List all default ASM defines here, like -D_DEBUG=1 | ||
DADEFS = | ||
|
||
# List all default directories to look for include files here | ||
DINCDIR = | ||
|
||
# List the default directory to look for the libraries here | ||
DLIBDIR = | ||
|
||
# List all default libraries here | ||
DLIBS = | ||
|
||
# | ||
# End of default section | ||
############################################################################## | ||
|
||
############################################################################## | ||
# Start of user section | ||
# | ||
|
||
# List all user C define here, like -D_DEBUG=1 | ||
UDEFS = | ||
|
||
# Define ASM defines here | ||
UADEFS = | ||
|
||
# List all user directories here | ||
UINCDIR = | ||
|
||
# List the user directory to look for the libraries here | ||
ULIBDIR = | ||
|
||
# List all user libraries here | ||
ULIBS = | ||
|
||
# | ||
# End of user defines | ||
############################################################################## | ||
|
||
ifeq ($(USE_FPU),yes) | ||
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant | ||
DDEFS += -DCORTEX_USE_FPU=TRUE | ||
else | ||
DDEFS += -DCORTEX_USE_FPU=FALSE | ||
endif | ||
|
||
ifeq ($(USE_FWLIB),yes) | ||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk | ||
CSRC += $(STM32SRC) | ||
INCDIR += $(STM32INC) | ||
USE_OPT += -DUSE_STDPERIPH_DRIVER | ||
endif | ||
|
||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/rules.mk |
Oops, something went wrong.