Skip to content

Commit fea8de9

Browse files
committed
Merge pull request #982 from ohagendorf/arch_max_coide
Tools - ARCH_MAX - exporter for CoIDE
2 parents f9560ea + bece72c commit fea8de9

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

workspace_tools/export/coide.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class CoIDE(Exporter):
2727
'KL05Z',
2828
'LPC1768',
2929
'ARCH_PRO',
30+
'ARCH_MAX',
3031
'UBLOX_C027',
3132
'NUCLEO_L053R8',
3233
'NUCLEO_L152RE',
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<Project version="2G - 1.7.5" name="{{name}}">
3+
<Target name="{{name}}" isCurrent="1">
4+
<Device manufacturerId="9" manufacturerName="ST" chipId="344" chipName="STM32F407VG" boardId="" boardName=""/>
5+
<BuildOption>
6+
<Compile>
7+
<Option name="OptimizationLevel" value="4"/>
8+
<Option name="UseFPU" value="0"/>
9+
<Option name="UserEditCompiler" value="-fno-common; -fmessage-length=0; -Wall; -fno-strict-aliasing; -fno-rtti; -fno-exceptions; -ffunction-sections; -fdata-sections; -std=gnu++98"/>
10+
<Option name="FPU" value="1"/>
11+
<Option name="SupportCPlusplus" value="1"/>
12+
<Includepaths>
13+
{% for path in include_paths %} <Includepath path="{{path}}"/> {% endfor %}
14+
</Includepaths>
15+
<DefinedSymbols>
16+
{% for s in symbols %} <Define name="{{s}}"/> {% endfor %}
17+
</DefinedSymbols>
18+
</Compile>
19+
<Link useDefault="0">
20+
<Option name="DiscardUnusedSection" value="1"/>
21+
<Option name="UserEditLinkder" value=""/>
22+
<Option name="UseMemoryLayout" value="0"/>
23+
<Option name="LTO" value="0"/>
24+
<Option name="IsNewStartupCode" value="1"/>
25+
<Option name="Library" value="Not use C Library"/>
26+
<Option name="nostartfiles" value="0"/>
27+
<Option name="UserEditLinker" value="-Wl,--wrap,main; --specs=nano.specs; -u_printf_float; -u_scanf_float; {% for file in object_files %}
28+
${project.path}/{{file}}; {% endfor %} {% for p in library_paths %}-L${project.path}/{{p}}; {% endfor %}"/>
29+
<LinkedLibraries>
30+
{% for lib in libraries %}
31+
<Libset dir="" libs="{{lib}}"/>
32+
{% endfor %}
33+
<Libset dir="" libs="stdc++"/>
34+
<Libset dir="" libs="supc++"/>
35+
<Libset dir="" libs="m"/>
36+
<Libset dir="" libs="gcc"/>
37+
<Libset dir="" libs="c"/>
38+
<Libset dir="" libs="nosys"/>
39+
</LinkedLibraries>
40+
<MemoryAreas debugInFlashNotRAM="1">
41+
<Memory name="IROM1" type="ReadOnly" size="0x00100000" startValue="0x08000000"/>
42+
<Memory name="IRAM1" type="ReadWrite" size="0x0001FE78" startValue="0x20000188"/>
43+
<Memory name="IROM2" type="ReadOnly" size="" startValue=""/>
44+
<Memory name="IRAM2" type="ReadWrite" size="0x00010000" startValue="0x10000000"/>
45+
</MemoryAreas>
46+
<LocateLinkFile path="{{scatter_file}}" type="0"/>
47+
</Link>
48+
<Output>
49+
<Option name="OutputFileType" value="0"/>
50+
<Option name="Path" value="./"/>
51+
<Option name="Name" value="{{name}}"/>
52+
<Option name="HEX" value="1"/>
53+
<Option name="BIN" value="1"/>
54+
</Output>
55+
<User>
56+
<UserRun name="Run#1" type="Before" checked="0" value=""/>
57+
<UserRun name="Run#1" type="After" checked="0" value=""/>
58+
</User>
59+
</BuildOption>
60+
<DebugOption>
61+
<Option name="org.coocox.codebugger.gdbjtag.core.adapter" value="CMSIS-DAP"/>
62+
<Option name="org.coocox.codebugger.gdbjtag.core.debugMode" value="SWD"/>
63+
<Option name="org.coocox.codebugger.gdbjtag.core.clockDiv" value="1M"/>
64+
<Option name="org.coocox.codebugger.gdbjtag.corerunToMain" value="1"/>
65+
<Option name="org.coocox.codebugger.gdbjtag.core.jlinkgdbserver" value=""/>
66+
<Option name="org.coocox.codebugger.gdbjtag.core.userDefineGDBScript" value=""/>
67+
<Option name="org.coocox.codebugger.gdbjtag.core.targetEndianess" value="0"/>
68+
<Option name="org.coocox.codebugger.gdbjtag.core.jlinkResetMode" value="Type 0: Normal"/>
69+
<Option name="org.coocox.codebugger.gdbjtag.core.resetMode" value="SYSRESETREQ"/>
70+
<Option name="org.coocox.codebugger.gdbjtag.core.ifSemihost" value="0"/>
71+
<Option name="org.coocox.codebugger.gdbjtag.core.ifCacheRom" value="1"/>
72+
<Option name="org.coocox.codebugger.gdbjtag.core.ipAddress" value="127.0.0.1"/>
73+
<Option name="org.coocox.codebugger.gdbjtag.core.portNumber" value="2009"/>
74+
<Option name="org.coocox.codebugger.gdbjtag.core.autoDownload" value="1"/>
75+
<Option name="org.coocox.codebugger.gdbjtag.core.verify" value="1"/>
76+
<Option name="org.coocox.codebugger.gdbjtag.core.downloadFuction" value="Erase Effected"/>
77+
<Option name="org.coocox.codebugger.gdbjtag.core.defaultAlgorithm" value="stm32f4xx_1024.elf"/>
78+
</DebugOption>
79+
<ExcludeFile/>
80+
</Target>
81+
<Components path="./"/>
82+
<Files>
83+
{% for file in source_files %}
84+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
85+
{% endfor %}
86+
{% for file in header_files %}
87+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
88+
{% endfor %}
89+
</Files>
90+
</Project>

0 commit comments

Comments
 (0)