-
Notifications
You must be signed in to change notification settings - Fork 3
/
STM32F030F4P6-BB-template.cbp
111 lines (110 loc) · 3.9 KB
/
STM32F030F4P6-BB-template.cbp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="STM32F030F4P6-BB" />
<Option pch_mode="2" />
<Option compiler="arm-elf-gcc" />
<Option show_notes="1">
<notes>
<![CDATA[If you use this project template for the first time
===============================
- make sure then libopencm3 has been compiled as per their instructions
- correctly configure your compiler. The project looks for a compiler named "gcc-arm-none-eabi 4.9 2015q2". If you want to use a different one, change the project's top-level compiler to that.
- in the project's "Build Settings"->"Custom Variables": update the variable opencm3root to point at your libopencm3 root directory
- create a template: "File"->"Save Project as Template..."
If you want to reuse this project:
=====================
- Use your previously created template (see above): "File"->"New"->"From Template"]]>
</notes>
</Option>
<Build>
<Target title="Debug">
<Option output="bin/Debug/STM32F030F4P6-BB.elf" prefix_auto="1" extension_auto="0" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="arm-elf-gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/STM32F030F4P6-BB.elf" prefix_auto="1" extension_auto="0" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="arm-elf-gcc" />
<Option projectResourceIncludeDirsRelation="0" />
<Option projectLibDirsRelation="0" />
<Compiler>
<Add option="-Os" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<MakeCommands>
<Build command="" />
<CompileFile command="" />
<Clean command="" />
<DistClean command="" />
<AskRebuildNeeded command="" />
<SilentBuild command=" > $(CMD_NULL)" />
</MakeCommands>
</Target>
<Environment>
<Variable name="opencm3root" value="/media/bangkok/libopencm3/arm-none-eabi-4_9-2015q2" />
</Environment>
</Build>
<Compiler>
<Add option="-mthumb" />
<Add option="-msoft-float" />
<Add option="-mlittle-endian" />
<Add option="-Weffc++" />
<Add option="-pedantic" />
<Add option="-std=c++11" />
<Add option="-Wall" />
<Add option="-mcpu=cortex-m0" />
<Add option="-ffunction-sections" />
<Add option="-fdata-sections" />
<Add option="-fno-exceptions" />
<Add option="--specs=nano.specs" />
<Add option="--specs=nosys.specs" />
<Add option="--std=c11" />
<Add option="-DSTM32F0" />
<Add directory="$(opencm3root)/include" />
<Add directory="." />
</Compiler>
<Linker>
<Add option="-mcpu=cortex-m0" />
<Add option="-mthumb" />
<Add option="-Wl,--gc-sections" />
<Add option="--specs=nano.specs" />
<Add option="--specs=nosys.specs" />
<Add option="-Tstm32f030f4p6.ld" />
<Add option="-Wl,-Map=$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).map,--cref" />
<Add library="c_nano" />
<Add library="nosys" />
<Add library="opencm3_stm32f0" />
<Add directory="ld" />
<Add directory="$(opencm3root)/lib" />
</Linker>
<ExtraCommands>
<Add after="arm-none-eabi-size $(TARGET_OUTPUT_FILE)" />
<Add after="arm-none-eabi-objcopy -O binary $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).bin" />
<Add after="arm-none-eabi-objdump -d $(TARGET_OUTPUT_FILE) > $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).lst" />
</ExtraCommands>
<Unit filename="core/core.h" />
<Unit filename="core/elapsedmillis/elapsedmillis.h" />
<Unit filename="core/systick/systick.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="core/systick/systick.h" />
<Unit filename="ld/stm32f030f4p6.ld" />
<Unit filename="main.cpp" />
<Extensions>
<envvars />
<code_completion />
<lib_finder disable_auto="1" />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>