Project

General

Profile

CC32RS512JTAG » History » Version 3

laforge, 02/19/2016 10:49 PM

1 1 laforge
2 3 laforge
h1. CC32RS512 JTAG
3
4
5 1 laforge
If the CC32RS512 is packaged in a DIL package for use on a development board, its ARM-JTAG is exposed on pads
6
and available for hardware assisted debugging, flashing, etc.
7
8 3 laforge
The osmo-cos.git repository has an example [[OpenOCD]] configuration file, as well as a patch for adding
9 1 laforge
support for the CC32RS512 internal flash controller.
10 3 laforge
* http://cgit.osmocom.org/cgit/osmo-cos/tree/openocd/0001-Add-a-flash-driver-for-the-CC32RS512-internal-flash-.patch
11
* http://cgit.osmocom.org/cgit/osmo-cos/tree/openocd/cc32rs512.cfg
12 1 laforge
13
14 3 laforge
h2. flashing binary code from a file
15
16
17 1 laforge
You can use the following command to flash the contents of /my/local.file into flash starting at base address
18
0x40000.
19
20 3 laforge
<pre>
21 1 laforge
reset halt
22
flash write_image erase /my/local.file.bin 0x40000
23 3 laforge
</pre>
24 1 laforge
25
You can verify the result by looking at the memory at 0x40000:
26 3 laforge
<pre>
27 1 laforge
mdw 0x40000 10
28 3 laforge
</pre>
29 2 laforge
30
31 3 laforge
h2. erasing flash
32
33
34 2 laforge
You can use the following command to erase 512 bytes of flash:
35 3 laforge
<pre>
36 1 laforge
flash erase_address 0x40000 512
37 3 laforge
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)