-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cortex-M3-F103.cbp
executable file
·357 lines (357 loc) · 16.5 KB
/
Cortex-M3-F103.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Cortex-M3" />
<Option pch_mode="2" />
<Option compiler="yaourt_gnu_arm_gcc_compiler" />
<Option virtualFolders="Notas/;" />
<Build>
<Target title="Release">
<Option output="bin/Release/CM3" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Release/" />
<Option type="5" />
<Option compiler="yaourt_gnu_arm_gcc_compiler" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-Os" />
<Add option="-DMODULO_ST" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<ExtraCommands>
<Add after="arm-none-eabi-objcopy -O ihex bin/Release/CM3 bin/Release/CM3.hex" />
<Add after="arm-none-eabi-objcopy -O srec bin/Release/CM3 bin/Release/CM3.s19" />
<Add after="arm-none-eabi-objcopy -O binary bin/Release/CM3 bin/Release/CM3.bin" />
<Add after="arm-none-eabi-size bin/Release/CM3" />
<Add after="pwd" />
<Add after="st-flash erase" />
<Add after="st-flash --reset write bin/Release/CM3.bin 0x08000000" />
<Add after="arm-none-eabi-objdump -d -M intel -S bin/Debug/CM3 > CM3.lst" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="Debug">
<Option output="bin/Debug/CM3" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Debug/" />
<Option type="5" />
<Option compiler="yaourt_gnu_arm_gcc_compiler" />
<Compiler>
<Add option="-g" />
<Add option="-gdwarf-2" />
<Add option="-DMODULO_ST" />
</Compiler>
<ExtraCommands>
<Add after="arm-none-eabi-objcopy -O ihex bin/Debug/CM3 bin/Debug/CM3.hex" />
<Add after="arm-none-eabi-objcopy -O binary bin/Debug/CM3 bin/Debug/CM3.bin" />
<Add after="arm-none-eabi-size bin/Debug/CM3" />
<Add after="arm-none-eabi-objdump -d -M intel -S bin/Debug/CM3 > CM3.lst" />
<Mode after="always" />
</ExtraCommands>
<MakeCommands>
<Build command="" />
<CompileFile command="" />
<Clean command="" />
<DistClean command="" />
<AskRebuildNeeded command="" />
<SilentBuild command=" > $(CMD_NULL)" />
</MakeCommands>
</Target>
<Target title="Unlock STM32">
<Option output="IN030" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option type="5" />
<Option compiler="yaourt_gnu_arm_gcc_compiler" />
<ExtraCommands>
<Add after='openocd -f board/stm32f0discovery.cfg -c "init" -c "halt" -c "stm32f0x unlock 0" -c "reset init" -c "flash info 0" -c "shutdown"' />
<Mode after="always" />
</ExtraCommands>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-mcpu=cortex-m3 -mthumb -mlittle-endian -fomit-frame-pointer -Wall -fdata-sections -ffunction-sections -Wstrict-prototypes -fverbose-asm -nostdlib" />
<Add option="-DSTM32F103xB" />
<Add directory="Inc" />
<Add directory="ThirdParty/FreeRTOS/include" />
<Add directory="ThirdParty/STM32F1xx_HAL_Driver/Inc" />
<Add directory="ThirdParty/CMSIS/Include" />
<Add directory="ThirdParty/CMSIS/Device/ST/STM32F1xx/Include" />
</Compiler>
<Linker>
<Add option="-mthumb -mcpu=cortex-m3 -TSTM32F103VB_FLASH.ld -Wl,-Map=project.map,--cref,--no-warn-mismatch -nostartfiles -specs=nano.specs" />
<Add library="../../../../../usr/arm-none-eabi/lib/thumb/libm.a" />
<Add library="../../../../../usr/arm-none-eabi/lib/thumb/libc_nano.a" />
</Linker>
<Unit filename="CM3.lst" />
<Unit filename="Inc/FreeRTOSConfig.h" />
<Unit filename="Inc/gpio.h" />
<Unit filename="Inc/main.h" />
<Unit filename="Inc/stm32f1xx_hal_conf.h" />
<Unit filename="Inc/stm32f1xx_it.h" />
<Unit filename="STM32F103VB_FLASH.ld" />
<Unit filename="Src/gpio.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Src/main.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Src/startup_stm32f103xb.s" />
<Unit filename="Src/stm32f1xx_it.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Src/system_stm32f1xx.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h" />
<Unit filename="thirdparty/FreeRTOS/CMSIS_RTOS/cmsis_os.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/CMSIS_RTOS/cmsis_os.h" />
<Unit filename="thirdparty/FreeRTOS/croutine.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/event_groups.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/heap_2.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/include/FreeRTOS.h" />
<Unit filename="thirdparty/FreeRTOS/include/StackMacros.h" />
<Unit filename="thirdparty/FreeRTOS/include/croutine.h" />
<Unit filename="thirdparty/FreeRTOS/include/deprecated_definitions.h" />
<Unit filename="thirdparty/FreeRTOS/include/event_groups.h" />
<Unit filename="thirdparty/FreeRTOS/include/list.h" />
<Unit filename="thirdparty/FreeRTOS/include/mpu_prototypes.h" />
<Unit filename="thirdparty/FreeRTOS/include/mpu_wrappers.h" />
<Unit filename="thirdparty/FreeRTOS/include/portable.h" />
<Unit filename="thirdparty/FreeRTOS/include/portmacro.h" />
<Unit filename="thirdparty/FreeRTOS/include/projdefs.h" />
<Unit filename="thirdparty/FreeRTOS/include/queue.h" />
<Unit filename="thirdparty/FreeRTOS/include/semphr.h" />
<Unit filename="thirdparty/FreeRTOS/include/task.h" />
<Unit filename="thirdparty/FreeRTOS/include/timers.h" />
<Unit filename="thirdparty/FreeRTOS/list.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/port.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/portable/readme.txt" />
<Unit filename="thirdparty/FreeRTOS/queue.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/readme.txt" />
<Unit filename="thirdparty/FreeRTOS/tasks.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/FreeRTOS/timers.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cec.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_conf_template.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_crc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dac.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dac_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_eth.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_hcd.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2s.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_irda.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_iwdg.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_nand.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_nor.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pccard.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pcd.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pcd_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rtc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rtc_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sd.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_smartcard.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_usart.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_wwdg.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_sdmmc.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_usb.h" />
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cec.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_crc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_eth.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_hcd.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2s.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_irda.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_iwdg.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_msp_template.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_nand.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_nor.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pccard.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rtc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rtc_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sd.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_smartcard.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_usart.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_wwdg.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_sdmmc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="thirdparty/freertos/portable/readme.txt" />
<Unit filename="thirdparty/freertos/readme.txt" />
<Extensions>
<envvars />
<code_completion />
<debugger>
<remote_debugging>
<options conn_type="0" serial_baud="115200" ip_address="localhost" ip_port="3333" additional_cmds='set remote hardware-breakpoint-limit 4
set remote hardware-watchpoint-limit 2
set mem inaccessible-by-default off
monitor reset init
monitor halt
monitor arm semihosting enable
symbol-file "./bin/Debug/CM3"
load "./bin/Debug/CM3"
tbreak main
monitor reset halt
monitor halt
continue' extended_remote="1" additional_shell_cmds_before="lxterminal -e st-util -p 3333&" />
</remote_debugging>
<remote_debugging target="Debug">
<options conn_type="0" serial_baud="115200" ip_address="127.0.0.1" ip_port="3333" extended_remote="1" />
</remote_debugging>
</debugger>
<lib_finder disable_auto="1" />
<AutoVersioning>
<Scheme minor_max="10" build_max="0" rev_max="0" rev_rand_max="10" build_times_to_increment_minor="100" />
<Settings autoincrement="1" date_declarations="1" use_define="1" update_manifest="1" do_auto_increment="0" ask_to_increment="0" language="C" svn="0" svn_directory="" header_path="version.h" />
<Changes_Log show_changes_editor="0" app_title="released version %M.%m.%b of %p" changeslog_path="ChangesLog.txt" />
<Code header_guard="VERSION_H" namespace="AutoVersion" prefix="" />
</AutoVersioning>
</Extensions>
</Project>
</CodeBlocks_project_file>