Project

General

Profile

CC32RS512JTAG » History » Version 2

laforge, 02/19/2016 10:49 PM

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