Skip to content

Commit 486e633

Browse files
committed
Example workspace/project to build under IAR
1 parent 6af52ad commit 486e633

19 files changed

Lines changed: 9122 additions & 3 deletions

IDE/IAR/keys/ecc256.der

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�w��J>ߑ`+.� l��]�)|���Z��6@i����D�IIUFG��4/�#+�g ?��U3d��*�����j�K�1Է޴[��8�/�r��}ѩ��

IDE/IAR/keys/ecc256_pub_key.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* This file has been generated and contains the public key which is
3+
* used by wolfBoot to verify the updates.
4+
*/
5+
#include <stdint.h>
6+
7+
#warning "USING PRE-GENERATED EXAMPLE ECC KEY -- BOOTLOADER IS NOT SECURE!"
8+
9+
10+
const uint8_t ecc256_pub_key[64] = {
11+
0xFA, 0x77, 0xAE, 0xC6, 0x4A, 0x3E, 0xDF, 0x91,
12+
0x60, 0x2B, 0x2E, 0x83, 0x12, 0x0C, 0x6C, 0x91,
13+
0x8C, 0x5D, 0xC2, 0x29, 0x7C, 0xB8, 0x91, 0xEA,
14+
0x5A, 0x12, 0xE0, 0x8E, 0x36, 0x40, 0x69, 0x8D,
15+
0xE1, 0xDC, 0xF6, 0x44, 0x7F, 0xD9, 0x16, 0x49,
16+
0x49, 0x55, 0x1F, 0x46, 0x47, 0xB7, 0x83, 0x34,
17+
0x04, 0x2F, 0x9B, 0x23, 0x2B, 0x84, 0x67, 0x09,
18+
0x3F, 0xFC, 0xCE, 0x55, 0x33, 0x64, 0xCB, 0xE8
19+
};
20+
const uint32_t ecc256_pub_key_len = 64;

IDE/IAR/settings/wolfBoot.wsdt

Lines changed: 533 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@REM This batch file has been generated by the IAR Embedded Workbench
2+
@REM C-SPY Debugger, as an aid to preparing a command line for running
3+
@REM the cspybat command line utility using the appropriate settings.
4+
@REM
5+
@REM Note that this file is generated every time a new debug session
6+
@REM is initialized, so you may want to move or rename the file before
7+
@REM making changes.
8+
@REM
9+
@REM You can launch cspybat by typing the name of this batch file followed
10+
@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
11+
@REM
12+
@REM Read about available command line parameters in the C-SPY Debugging
13+
@REM Guide. Hints about additional command line parameters that may be
14+
@REM useful in specific cases:
15+
@REM --download_only Downloads a code image without starting a debug
16+
@REM session afterwards.
17+
@REM --silent Omits the sign-on message.
18+
@REM --timeout Limits the maximum allowed execution time.
19+
@REM
20+
21+
22+
@echo off
23+
24+
if not "%~1" == "" goto debugFile
25+
26+
@echo on
27+
28+
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.general.xcl" --backend -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.driver.xcl"
29+
30+
@echo off
31+
goto end
32+
33+
:debugFile
34+
35+
@echo on
36+
37+
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.general.xcl" "--debug_file=%~1" --backend -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.driver.xcl"
38+
39+
@echo off
40+
:end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
param([String]$debugfile = "");
2+
3+
# This powershell file has been generated by the IAR Embedded Workbench
4+
# C - SPY Debugger, as an aid to preparing a command line for running
5+
# the cspybat command line utility using the appropriate settings.
6+
#
7+
# Note that this file is generated every time a new debug session
8+
# is initialized, so you may want to move or rename the file before
9+
# making changes.
10+
#
11+
# You can launch cspybat by typing Powershell.exe -File followed by the name of this batch file, followed
12+
# by the name of the debug file (usually an ELF / DWARF or UBROF file).
13+
#
14+
# Read about available command line parameters in the C - SPY Debugging
15+
# Guide. Hints about additional command line parameters that may be
16+
# useful in specific cases :
17+
# --download_only Downloads a code image without starting a debug
18+
# session afterwards.
19+
# --silent Omits the sign - on message.
20+
# --timeout Limits the maximum allowed execution time.
21+
#
22+
23+
24+
if ($debugfile -eq "")
25+
{
26+
& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.general.xcl" --backend -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.driver.xcl"
27+
}
28+
else
29+
{
30+
& "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.general.xcl" --debug_file=$debugfile --backend -f "C:\Users\dan\wolfboot\IDE\IAR\settings\wolfboot.Debug.driver.xcl"
31+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"--endian=little"
2+
3+
"--cpu=Cortex-M4"
4+
5+
"--fpu=None"
6+
7+
"-p"
8+
9+
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\CONFIG\debugger\ST\STM32F407VG.ddf"
10+
11+
"--semihosting=none"
12+
13+
"--device=STM32F407VG"
14+
15+
"--multicore_nr_of_cores=1"
16+
17+
18+
19+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armproc.dll"
2+
3+
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armsim2.dll"
4+
5+
"C:\Users\dan\wolfboot\IDE\IAR\Debug\Exe\wolfboot.out"
6+
7+
--plugin="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armbat.dll"
8+
9+
--device_macro="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\ST\STM32F4xx.dmac"
10+
11+
12+
13+

IDE/IAR/settings/wolfboot.crun

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<crun>
3+
<version>1</version>
4+
<filter_entries>
5+
<filter index="0" type="default">
6+
<type>*</type>
7+
<start_file>*</start_file>
8+
<end_file>*</end_file>
9+
<action_debugger>0</action_debugger>
10+
<action_log>1</action_log>
11+
</filter>
12+
</filter_entries>
13+
</crun>

IDE/IAR/settings/wolfboot.dbgdt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Project>
3+
<WindowStorage />
4+
</Project>

IDE/IAR/settings/wolfboot.dnx

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0"?>
2+
<settings>
3+
<Stack>
4+
<FillEnabled>0</FillEnabled>
5+
<OverflowWarningsEnabled>1</OverflowWarningsEnabled>
6+
<WarningThreshold>90</WarningThreshold>
7+
<SpWarningsEnabled>1</SpWarningsEnabled>
8+
<WarnLogOnly>1</WarnLogOnly>
9+
<UseTrigger>1</UseTrigger>
10+
<TriggerName>main</TriggerName>
11+
<LimitSize>0</LimitSize>
12+
<ByteLimit>50</ByteLimit>
13+
</Stack>
14+
<Trace1>
15+
<Enabled>0</Enabled>
16+
<ShowSource>1</ShowSource>
17+
</Trace1>
18+
<InterruptLog>
19+
<LogEnabled>0</LogEnabled>
20+
<GraphEnabled>0</GraphEnabled>
21+
<ShowTimeLog>1</ShowTimeLog>
22+
<SumEnabled>0</SumEnabled>
23+
<ShowTimeSum>1</ShowTimeSum>
24+
<SumSortOrder>0</SumSortOrder>
25+
</InterruptLog>
26+
<DataLog>
27+
<LogEnabled>0</LogEnabled>
28+
<GraphEnabled>0</GraphEnabled>
29+
<ShowTimeLog>1</ShowTimeLog>
30+
<SumEnabled>0</SumEnabled>
31+
<ShowTimeSum>1</ShowTimeSum>
32+
</DataLog>
33+
<DisassembleMode>
34+
<mode>0</mode>
35+
</DisassembleMode>
36+
<Breakpoints2>
37+
<Count>0</Count>
38+
</Breakpoints2>
39+
<Interrupts>
40+
<Enabled>1</Enabled>
41+
</Interrupts>
42+
<MemConfig>
43+
<Base>1</Base>
44+
<Manual>0</Manual>
45+
<Ddf>1</Ddf>
46+
<TypeViol>0</TypeViol>
47+
<Stop>1</Stop>
48+
</MemConfig>
49+
<Aliases>
50+
<Count>0</Count>
51+
<SuppressDialog>0</SuppressDialog>
52+
</Aliases>
53+
<Simulator>
54+
<Freq>10000000</Freq>
55+
<FreqHi>0</FreqHi>
56+
<MultiCoreRunAll>1</MultiCoreRunAll>
57+
</Simulator>
58+
</settings>

0 commit comments

Comments
 (0)