Skip to content

Commit 63cf864

Browse files
committed
Pull request #44: Feature/MCU16GITHUB-913 bootloader prebuilt hex file
Merge in MCU16CE/dspic33-dsc-bootloader-code-examples from feature/MCU16GITHUB-913-bootloader-prebuilt-hex-file to develop * commit '4849ea15f11651d6085c8362a9c2bc2a53aae4aa': add documentation for MCU16GITHUB-942 adding .hex files to address MCU16GITHUB-941 and MCU16GITHUB-897
2 parents 4a1562b + 4849ea1 commit 63cf864

File tree

13 files changed

+4206
-0
lines changed

13 files changed

+4206
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<picture>
2+
<source media="(prefers-color-scheme: dark)" srcset="./images/microchip_logo_white_red.png">
3+
<source media="(prefers-color-scheme: light)" srcset="./images/microchip_logo_black_red.png">
4+
<img alt="Microchip Logo." src="../images/microchip_logo_black_red.png">
5+
</picture>
6+
7+
## Secure Boot and Secure Firmware Upgrade over CAN-FD for dsPIC33C DSCs Demo - Precompiled Hex Files
8+
9+
## Introduction
10+
This folder contains precompiled .hex files for the demo bootloader and application project associated with this project. This demo uses the TA100 and associated code library which require an NDA to get access to the complete source code. Those interested in testing the demo before going through the NDA process can use these hex files to run through the demo without needing access to the source files.
11+
12+
**NOTE** - Only the bootloader project has code that requires an NDA. The application .hex file can be compiled as is and is provided out of convenience.
13+
14+
## Programming the Bootloader from the Precompiled .hex File
15+
1. Connect the dsPIC33C Touch CAN LIN Curiosity Development Board to the PC via the USB micro-B port.
16+
2. Open the MPLAB X IPE program.
17+
3. Enter the dsPIC33CK1024MP710 in the "Device" selector.<br>
18+
![Select the correct device](./images/select_device.png)<br>
19+
4. Select the "Curiosity/Starter kits" option from the "Tools" dropdown.<br>
20+
![Select the curiosity board](./images/connect_tool.png)<br>
21+
5. From the menu, select "Settings -> Advanced Mode"<br>
22+
![Enable advanced mode](./images/advanced_mode.png)<br>
23+
6. Enter the IPE password. The default password is "microchip" if a new password has not been selected yet. <br>
24+
![Password to enable advanced mode](./images/password.png)<br>
25+
7. From the menu, select "Settings -> Release from Reset". This will allow the programmer to release the device from reset after a programming is complete and allow the device to run the new code.<br>
26+
![Release from reset](./images/release_reset.png)<br>
27+
8. From the menu, select "File -> Import -> Hex". Select the following file: `/secure_boot_and_secure_firmware_upgrade_over_canfd/hex_files/boot.X.production.hex`.<br>
28+
![Import hex file](./images/import_hex.png)<br>
29+
9. Click the "Connect" button.<br>
30+
![Connect the tool](./images/connect_tool.png)<br>
31+
10. Once the connection is complete, press the "Program".<br>
32+
![Program flash](./images/program.png)<br>
33+
11. When programming is complete, the bootloader should now be operational. You can continue to use the bootloader using the `README.md` documentation found in the boot.X folder that is one level higher in this directory structure.
34+
35+
## Loading and Running the Application
36+
Use the `README.md` file in the top-level folder of the demo for the full instructions of the how to load the application using the bootloader. When prompted to load a .hex file, you can choose to load the application file located here instead of compiling the application project and using the resulting .hex file.
Lines changed: 332 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,332 @@
1+
:10000000727D0400000000001C7A0000727900007C
2+
:10001000927900005C7A00003C7A0000867E000045
3+
:10002000B2790000867E0000867E0000867E000099
4+
:10003000867E0000867E0000867E0000867E0000B0
5+
:10004000867E0000867E0000867E0000867E0000A0
6+
:10005000867E0000867E0000867E0000867E000090
7+
:10006000867E0000867E0000867E0000867E000080
8+
:10007000867E0000867E0000867E0000867E000070
9+
:10008000867E0000867E0000867E0000867E000060
10+
:10009000867E0000867E0000867E0000867E000050
11+
:1000A000867E0000867E0000867E0000867E000040
12+
:1000B000867E0000867E0000867E0000867E000030
13+
:1000C000867E0000867E0000867E0000867E000020
14+
:1000D000867E0000867E0000867E0000EE7D0000A9
15+
:1000E000867E0000867E0000867E0000867E000000
16+
:1000F000867E0000867E0000867E0000867E0000F0
17+
:10010000867E0000867E0000867E0000867E0000DF
18+
:10011000867E0000867E0000867E0000867E0000CF
19+
:10012000867E0000867E0000867E0000867E0000BF
20+
:10013000867E0000867E0000867E0000867E0000AF
21+
:10014000867E0000867E0000867E0000867E00009F
22+
:10015000867E0000867E0000867E0000867E00008F
23+
:10016000867E0000867E0000867E0000867E00007F
24+
:10017000867E0000867E0000867E0000867E00006F
25+
:10018000867E0000867E0000867E0000867E00005F
26+
:10019000867E0000867E0000867E0000867E00004F
27+
:1001A000867E0000867E0000867E0000867E00003F
28+
:1001B000867E0000867E0000867E0000867E00002F
29+
:1001C000867E0000867E0000867E0000867E00001F
30+
:1001D000867E0000867E0000867E0000867E00000F
31+
:1001E000867E0000867E0000867E0000867E0000FF
32+
:1001F000867E0000867E0000867E0000867E0000EF
33+
:10020000867E0000867E0000867E0000867E0000DE
34+
:10021000867E0000867E0000867E0000867E0000CE
35+
:10022000867E0000867E0000867E0000867E0000BE
36+
:10023000867E0000867E0000867E0000867E0000AE
37+
:10024000867E0000867E0000867E0000867E00009E
38+
:10025000867E0000867E0000867E0000867E00008E
39+
:10026000867E0000867E0000867E0000867E00007E
40+
:10027000867E0000867E0000867E0000867E00006E
41+
:10028000867E0000867E0000867E0000867E00005E
42+
:10029000867E0000867E0000867E0000867E00004E
43+
:1002A000867E0000867E0000867E0000867E00003E
44+
:1002B000867E0000867E0000867E0000867E00002E
45+
:1002C000867E0000867E0000867E0000867E00001E
46+
:1002D000867E0000867E0000867E0000867E00000E
47+
:1002E000867E0000867E0000867E0000867E0000FE
48+
:1002F000867E0000867E0000867E0000867E0000EE
49+
:10030000867E0000867E0000867E0000867E0000DD
50+
:10031000867E0000867E0000867E0000867E0000CD
51+
:10032000867E0000867E0000867E0000867E0000BD
52+
:08033000867E0000867E0000BD
53+
:10E008001C7A000072790000927900005C7A0000A6
54+
:10E018003C7A0000867E0000B2790000867E00000F
55+
:10E02800867E0000867E0000867E0000867E0000D8
56+
:10E03800867E0000867E0000867E0000867E0000C8
57+
:10E04800867E0000867E0000867E0000867E0000B8
58+
:10E05800867E0000867E0000867E0000867E0000A8
59+
:10E06800867E0000867E0000867E0000867E000098
60+
:10E07800867E0000867E0000867E0000867E000088
61+
:10E08800867E0000867E0000867E0000867E000078
62+
:10E09800867E0000867E0000867E0000867E000068
63+
:10E0A800867E0000867E0000867E0000867E000058
64+
:10E0B800867E0000867E0000867E0000867E000048
65+
:10E0C800867E0000867E0000867E0000867E000038
66+
:10E0D800867E0000EE7D0000867E0000867E0000C1
67+
:10E0E800867E0000867E0000867E0000867E000018
68+
:10E0F800867E0000867E0000867E0000867E000008
69+
:10E10800867E0000867E0000867E0000867E0000F7
70+
:10E11800867E0000867E0000867E0000867E0000E7
71+
:10E12800867E0000867E0000867E0000867E0000D7
72+
:10E13800867E0000867E0000867E0000867E0000C7
73+
:10E14800867E0000867E0000867E0000867E0000B7
74+
:10E15800867E0000867E0000867E0000867E0000A7
75+
:10E16800867E0000867E0000867E0000867E000097
76+
:10E17800867E0000867E0000867E0000867E000087
77+
:10E18800867E0000867E0000867E0000867E000077
78+
:10E19800867E0000867E0000867E0000867E000067
79+
:10E1A800867E0000867E0000867E0000867E000057
80+
:10E1B800867E0000867E0000867E0000867E000047
81+
:10E1C800867E0000867E0000867E0000867E000037
82+
:10E1D800867E0000867E0000867E0000867E000027
83+
:10E1E800867E0000867E0000867E0000867E000017
84+
:10E1F800867E0000867E0000867E0000867E000007
85+
:10E20800867E0000867E0000867E0000867E0000F6
86+
:10E21800867E0000867E0000867E0000867E0000E6
87+
:10E22800867E0000867E0000867E0000867E0000D6
88+
:10E23800867E0000867E0000867E0000867E0000C6
89+
:10E24800867E0000867E0000867E0000867E0000B6
90+
:10E25800867E0000867E0000867E0000867E0000A6
91+
:10E26800867E0000867E0000867E0000867E000096
92+
:10E27800867E0000867E0000867E0000867E000086
93+
:10E28800867E0000867E0000867E0000867E000076
94+
:10E29800867E0000867E0000867E0000867E000066
95+
:10E2A800867E0000867E0000867E0000867E000056
96+
:10E2B800867E0000867E0000867E0000867E000046
97+
:10E2C800867E0000867E0000867E0000867E000036
98+
:10E2D800867E0000867E0000867E0000867E000026
99+
:10E2E800867E0000867E0000867E0000867E000016
100+
:10E2F800867E0000867E0000867E0000867E000006
101+
:10E30800867E0000867E0000867E0000867E0000F5
102+
:10E31800867E0000867E0000867E0000867E0000E5
103+
:10E32800867E0000867E0000867E0000867E0000D5
104+
:10F00000DA3F0000E4C20000F9860000F8DF0000EB
105+
:10F01000096E00003D410000ED86000091230000D4
106+
:10F02000B8D3000064C30000E45F0000BBCF000061
107+
:10F03000D6D6000058CB00004A360000769E00006D
108+
:10F04000D74B00000C230000D6950000AE670000EF
109+
:10F05000A99F0000D4BE000068F50000DE48000053
110+
:10F060003CDB0000C9BD000076BC00009FE700004B
111+
:10F07000AFD10000F41B0000EE56000074820000C7
112+
:10F080000070000000000000FEAF0000050000005E
113+
:10F09000727D04000000000000000000020000007B
114+
:10F0A0000000000002000000020000000400000058
115+
:10F0B0000000000000000000000000000400FA0052
116+
:10F0C000100798000040EB00004F78001E009000F1
117+
:10F0D0000000E00002003D0010C0B300004F7800C7
118+
:10F0E0001E4078000080FA00000006000400FA00CC
119+
:10F0F000100798000040EB00004F78009E00900041
120+
:10F1000000002400008060000000E00002003200E7
121+
:10F1100010C0B300004F78001E4078000080FA0055
122+
:10F12000000006000400FA00100798000040EB0001
123+
:10F13000004F78009E0090000020200000806000BA
124+
:10F140000000E0000200320010C0B300004F780061
125+
:10F150001E4078000080FA00000006000400FA005B
126+
:10F16000100798000040EB00004F78009E009000D0
127+
:10F1700000082000008060000000E0000200320073
128+
:10F1800010C0B300004F78001E4078000080FA00E5
129+
:10F19000000006000400FA00100798000040EB0091
130+
:10F1A000004F78009E009000000420000080600066
131+
:10F1B0000000E0000200320010C0B300004F7800F1
132+
:10F1C0001E4078000080FA00000006000400FA00EB
133+
:10F1D000100798000040EB00004F78001E009000E0
134+
:10F1E000700060000000E0000200320010C0B300B8
135+
:10F1F000004F78001E4078000080FA0000000600F2
136+
:10F200000200FA00000F78009E80EA00007C800077
137+
:10F2100000806000007C88000080FA00000006008A
138+
:10F220000000FA00007C80000080FA000000060068
139+
:10F230000200FA00FAFF0700000F78001E007800B5
140+
:10F240009EFF07000004E0000200320000002800DA
141+
:10F25000EBFF07001E007800A4FF07000004E00099
142+
:10F260000200320000002400E5FF07001E007800C5
143+
:10F27000ACFF07000004E000020032000020200084
144+
:10F28000DFFF07001E007800B4FF07000004E00065
145+
:10F290000200320000082000D9FF07001E0078009D
146+
:10F2A000BCFF07000004E000020032000004200060
147+
:10F2B000D3FF07001E007800C4FF07000004E00031
148+
:10F2C0000200320000012000CDFF07000080FA009C
149+
:10F2D000000006000000FA00802FEF000080FA0016
150+
:10F2E000000006003600F800809FBE00829FBE002E
151+
:10F2F000849FBE00869FBE000000FA00C068A9007F
152+
:10F3000020002000660207000080FA004F03BE00C4
153+
:10F310004F02BE004F01BE004F00BE003600F90094
154+
:10F32000004006003600F800809FBE00829FBE00AD
155+
:10F33000849FBE00869FBE000000FA00C608A90098
156+
:10F3400070002000560207000080FA004F03BE0044
157+
:10F350004F02BE004F01BE004F00BE003600F90054
158+
:10F36000004006003600F800809FBE00829FBE006D
159+
:10F37000849FBE00869FBE000000FA0020468000E9
160+
:10F38000700060000000E00003003200C488A900A3
161+
:10F39000A000200042020700214680000004200057
162+
:10F3A000008060000000E00003003200C4C8A90033
163+
:10F3B000E00020003A020700214680000002200001
164+
:10F3C000008060000000E00003003200C4A8A90033
165+
:10F3D000900020003202070021468000001020002B
166+
:10F3E000008060000000E00003003200C508A900B2
167+
:10F3F000C00020002A0207002146800000202000D3
168+
:10F40000008060000000E00003003200C528A90071
169+
:10F41000D00020002202070020468000610060002A
170+
:10F420000000E00003003200C408A900B000200082
171+
:10F430001B020700FFFF37003600F800809FBE0068
172+
:10F44000829FBE00849FBE00869FBE000000FA001F
173+
:10F45000C028A9000000EB00110207000080FA009C
174+
:10F460004F03BE004F02BE004F01BE004F00BE0062
175+
:10F470003600F900004006003600F800809FBE000C
176+
:10F48000829FBE00849FBE00869FBE000000FA00DF
177+
:10F49000C088A90030002000010207000080FA00A7
178+
:10F4A0004F03BE004F02BE004F01BE004F00BE0022
179+
:10F4B0003600F900004006003600F800809FBE00CC
180+
:10F4C000829FBE00849FBE00869FBE000000FA009F
181+
:10F4D000FA010700C048A90010002000F001070051
182+
:10F4E0000080FA004F03BE004F02BE004F01BE0075
183+
:10F4F0004F00BE003600F900004006000000FA0090
184+
:10F50000C3E8A80000000000000000000080FA002E
185+
:10F51000000006000000FA00C3E8A9000000000097
186+
:10F52000000000000080FA00000006000000FA0061
187+
:10F53000F8FF07009A010700F0FF070060B72700F7
188+
:10F540006100070025A8A8000080FA00000006005E
189+
:10F550000000FA0000002800E00288000080FA00A5
190+
:10F56000000006000000FA000000240000038800EC
191+
:10F5700010C0B30000F0B7000080FA0000000600E1
192+
:10F580000000FA000070EF0000000000400380005F
193+
:10F59000610060000000E000FCFF320080002000FD
194+
:10F5A000200388000080FA00000006000200FA0034
195+
:10F5B0000040EB00004F78004003800061006000D5
196+
:10F5C000004078000004E0000200320010C0B300E8
197+
:10F5D000004F78001E4078000080FA00000006000E
198+
:10F5E0000000FA0000D0BF000080FA000000060012
199+
:10F5F0000400FA006000B800008FBE00B003800075
200+
:10F600008000EB00C000DD0000002000008FBE0085
201+
:10F61000A00380008000EB003E017000AE8170000E
202+
:10F620000200BE000080FA00000006000400FA009C
203+
:10F630006000B800008FBE00D00380008000EB00A7
204+
:10F64000C000DD0000002000008FBE00C00380006D
205+
:10F650008000EB003E017000AE8170000200BE0031
206+
:10F660000080FA00000006000200FA000000EB0033
207+
:10F67000000F780041038000100E2000008F600012
208+
:10F680001E0078000080FA00000006000400FA0066
209+
:10F690006000B800008FBE00700380008000EB00A7
210+
:10F6A000C000DD0000002000008FBE00600380006D
211+
:10F6B0008000EB003E017000AE8170000200BE00D1
212+
:10F6C0000080FA00000006000200FA00000F780037
213+
:10F6D0001E0078000000E000020032009E0078006A
214+
:10F6E000318088000080FA00000006000000FA0067
215+
:10F6F0000080FA0000000600A10288008004780063
216+
:10F700000000EB001F003700E284440054A0B40066
217+
:10F710009905BA00E284440054A0B4009906BA00E6
218+
:10F72000E284440054A0B4000006EB00476FDE0002
219+
:10F73000FD07B200AE018800636CE10003003A00EF
220+
:10F740000AD801000000EB000E003700606CE100F9
221+
:10F7500008003A00004DEB000A05E80002003900FD
222+
:10F760003420EC000AF0A0008B05E900F9FF3E0010
223+
:10F77000040037006168E100010032000086EB0000
224+
:10F780000B00070019C7BA001905BA000E04E00003
225+
:10F7900003003A000A00E000DBFF3A000000060028
226+
:10F7A000FE07B200AE0288008A047800F5FF370039
227+
:10F7B0000CD0A300E20F4D001C003B008902780032
228+
:10F7C000354DBA000A05E800020039003420EC008B
229+
:10F7D0000AF0A0008B05E9000F003200254DBA00A9
230+
:10F7E0000A05E800020039003420EC000AF0A0000D
231+
:10F7F0008B05E900080032000C00E0000600320032
232+
:10F8000015CDBA000A05E800020039003420EC00EA
233+
:10F810000AF0A0008B05E9008984E80054A0B40038
234+
:10F820000B00E000E2FF3A00000006009902BA0077
235+
:10F83000055D78008B05E900F7FF3200C82ADE007D
236+
:10F84000055D78008B05E900F3FF32000C00E00055
237+
:10F85000F1FF320019DDBA00EEFF37000000FA00B8
238+
:10F8600010002300307C880020032000407C8800AA
239+
:10F870008C2FEF0010012000507C88001010200019
240+
:10F88000707C880060092000807C880010042000C3
241+
:10F89000907C880000502000D07C8800B82FEF00BA
242+
:10F8A000BA2FEF00BE2FEF00002DEF00A02FEF00CA
243+
:10F8B000A42FEF00A62FEF00A82FEF00AA2FEF0034
244+
:10F8C000AE2FEF00B02FEF00B22FEF00320020007C
245+
:10F8D00080072000A109200053F82000804978000B
246+
:10F8E00081497800824978001200200060042000DD
247+
:10F8F0007105200043F82000804978008149780094
248+
:10F900008249780000000000207C800061006000D7
249+
:10F910000000E000FCFF3A0000000000217C8000B5
250+
:10F9200000022000008060000000E000FBFF3200C9
251+
:10F930000080FA00000006000000FA00707C8000E1
252+
:10F94000EE800A00000000000080FB0000F0A7002D
253+
:10F950000000EA000000EA004F00DE0000407800EE
254+
:10F960000080FA00000006000000FA00062EEF00FA
255+
:10F97000222EEF003E2EEF005A2EEF00762EEF00E3
256+
:10F98000922EEF00F01F2000107088000080EB0026
257+
:10F99000F07088000080EB00D07188000080EB00E0
258+
:10F9A000B0728800F0DF2F00907388000080EB00B9
259+
:10F9B000707488000A2EEF00262EEF00422EEF0012
260+
:10F9C0005E2EEF007A2EEF00962EEF000C2EEF0049
261+
:10F9D000282EEF00442EEF00602EEF007C2EEF006B
262+
:10F9E000982EEF00082EEF00242EEF00402EEF009F
263+
:10F9F0005C2EEF00782EEF00942EEF00F001200037
264+
:10FA000000708800E0092000E0708800F00C200001
265+
:10FA1000C071880000C02200A0728800F0002000A1
266+
:10FA200080738800003C2000607488000080FA0029
267+
:10FA3000000006000400FA00889FBE006000B800C5
268+
:10FA4000008FBE008E00070001003700000000009C
269+
:10FA5000F0FF2F00710020001E01BE00020278009E
270+
:10FA600003017800800178008100780003006200C3
271+
:10FA70008100610081047800000478000800BE0065
272+
:10FA80000080700000F0A7000000EA000000E9001C
273+
:10FA90004F00DE000040780012002000030020002C
274+
:10FAA0001E0F41005E9749000004E000E7FF3200AE
275+
:10FAB000B073800099800A00000000000004A200DA
276+
:10FAC000614060000080FB00610060004900DD00D3
277+
:10FAD000B17380000190A10001007000B073880034
278+
:10FAE000DBFF3700AF0221000EFF2F000E01880060
279+
:10FAF00000000000000020000000E00002003200D2
280+
:10FB00000001200020028800140007008100070087
281+
:10FB10000000E00003003A00C0E6270001002000DA
282+
:10FB2000020037000000200001002000810F70005B
283+
:10FB300001003200F0FE0700000020000000E0009D
284+
:10FB40000200320000000200000000001A7D0200E6
285+
:10FB5000000000000040DA000000FE00200020004D
286+
:10FB60000000E00002003200100020009001880038
287+
:10FB7000000006000000FE00467B020000000000BE
288+
:10FB8000821F780012808000000011000200200017
289+
:10FB9000810019004F017800000006000000FE00FF
290+
:10FBA000801F7800811F7800821F7800600380002A
291+
:10FBB000801F7800467B0200000000004F017800A3
292+
:10FBC000020150000201E900128088004F01780014
293+
:10FBD000CF0078004F007800000006003600F800E3
294+
:10FBE000809FBE00829FBE00849FBE00869FBE0095
295+
:10FBF0000000FA00308080000000E00002003200C7
296+
:10FC0000308080000000010005A8A9000080FA00F3
297+
:10FC10004F03BE004F02BE004F01BE004F00BE00AA
298+
:10FC20003600F900004006000000FA00B1428000F2
299+
:10FC3000F0F82F00008060000040A000B042880073
300+
:10FC40000080FA00000006000000FA00B1428000C7
301+
:10FC5000F0F82F00008060000060A000B042880033
302+
:10FC60000080FA00000006000000FA00C3E8A800C7
303+
:10FC700000000000000000000080FA000000060004
304+
:10FC80000000FA00F5FE070037FF070027FE070017
305+
:10FC9000F5FF0700E4FF07000080FA0000000600FF
306+
:10FCA0000200FA00000F78009E0078004180880072
307+
:10FCB0000000FE000080FA00000006000000FA00CC
308+
:10FCC000A0002100800778002002210000018800A8
309+
:10FCD0000080FA000000060000100000080000008C
310+
:10FCE000800000000A1000002000000080000000DA
311+
:10FCF000081000000200000082000000FFFF00006A
312+
:10FD000000000000767B0400000000000040DA00E4
313+
:08FD10000000FE0000000500E8
314+
:020000040015E5
315+
:04FE0000F77FFF0089
316+
:04FE2000F0FFFF00F0
317+
:04FE300078FFFF0058
318+
:04FE380078FFFF0050
319+
:04FE4000F453FF0078
320+
:04FE4800FFFFFF00B9
321+
:04FE5000DFFFFF00D1
322+
:04FE58000000FF00A7
323+
:04FE60000000FF009F
324+
:04FE68000000FF0097
325+
:04FE70000000FF008F
326+
:04FE7800FFFFFF0089
327+
:04FE8000FFFCFF0084
328+
:04FE8800FFFFFF0079
329+
:04FFF800FFFFFF0008
330+
:020000040100F9
331+
:04300000FFFFFF00CF
332+
:00000001FF

0 commit comments

Comments
 (0)