Debian Codegraph @

debian/pyocd-flashtool.rst

raw
1 :Version: 0.12.0
2 :Copyright: 2006-2013 ARM Limited
3 :Title: pyocd-flashtool
4 :subtitle: ARM Cortex-M programming tool
5 :Manual section: "1"
6
7 Description
8 ============
9
10 ``pyocd-flashtool`` is an ARM Cortex-M programming tool
11
12 Summary
13 #######
14
15 pyOCD is an Open Source python based library for programming
16 and debugging ARM Cortex-M microcontrollers using CMSIS-DAP.
17
18 Includes support for flashing new binaries, resetting the device,
19 halt, step, resume read/write memory and set/remove breakpoints.
20
21 Support
22 #######
23
24 Firmware files included in the upstream source are NOT included in the
25 Debian package due to a lack of source code. Target files can be
26 downloaded separately from https://github.com/mbedmicro/pyOCD/tree/master/binaries
27
28 Available targets for use with --target option: lpc824, kinetis, w7500,
29 kv11z7, lpc4088qsb, kv10z7, k20d50m, ncs36510, kl28z, kl25z, k82f25615,
30 k28f15, maxwsnenv, max32600mbed, k22fa12, lpc4088, lpc4330, ke18f16, kl46z,
31 stm32f103rc, kl82z7, lpc54114, kl43z4, kl26z, lpc11xx_32, lpc800, rtl8195am,
32 kl05z, lpc1768, kw41z4, lpc4088dm, stm32f051, cortex_m, lpc11u24, kl02z,
33 kw01z4, k64f, k22f, ke15z7, nrf51, nrf52, kl27z4, kw40z4, k66f18
34
35 Usage
36 #####
37
38 usage: pyocd-flashtool [-h] [--version] [-b BOARD_ID] [-l] [-d LEVEL] [-t TARGET] [-f FREQUENCY] [-ce | -se] [-u]
39 [-a ADDRESS] [-n COUNT] [-s SKIP] [-hp] [-fp] [-da DAPARG [DAPARG ...]] [--mass-erase]
40 [file] [{bin,hex}]
41
42 Flash utility
43
44 positional arguments:
45 file File to program
46 {bin,hex} File format. Default is to use the file extension
47 (.bin or .hex)
48
49 optional arguments:
50 -h, --help show this help message and exit
51
52 --version show program's version number and exit
53
54 -b BOARD_ID, --board BOARD_ID
55 Connect to board by board id. Use -l to list all
56 connected boards.
57
58 -l, --list List all connected boards.
59
60 -d LEVEL, --debug LEVEL
61 Set the level of system logging output. Supported
62 choices are: debug, info, warning, critical, error
63
64 -t TARGET, --target TARGET
65 Override target to debug. Supported targets are:
66 lpc824, kinetis, w7500, kv11z7, lpc4088qsb, kv10z7,
67 k20d50m, ncs36510, kl28z, kl25z, k82f25615, k28f15,
68 maxwsnenv, max32600mbed, k22fa12, lpc4088, lpc4330,
69 ke18f16, kl46z, stm32f103rc, kl82z7, lpc54114, kl43z4,
70 kl26z, lpc11xx_32, lpc800, rtl8195am, kl05z, lpc1768,
71 kw41z4, lpc4088dm, stm32f051, lpc11u24, kl02z, kw01z4,
72 k64f, k22f, ke15z7, nrf51, nrf52, kl27z4, kw40z4,
73 k66f18
74
75 -f FREQUENCY, --frequency FREQUENCY
76 Set the SWD clock frequency in Hz.
77
78 -ce, --chip_erase Use chip erase when programming.
79
80 -se, --sector_erase Use sector erase when programming.
81
82 -u, --unlock Unlock the device.
83
84 -a ADDRESS, --address ADDRESS
85 Address. Used for the sector address with sector
86 erase, and for the address where to flash a binary.
87
88 -n COUNT, --count COUNT
89 Number of sectors to erase. Only applies to sector
90 erase. Default is 1.
91
92 -s SKIP, --skip SKIP Skip programming the first N bytes. This can only be
93 used with binary files
94
95 -hp, --hide_progress Don't display programming progress.
96
97 -fp, --fast_program Use only the CRC of each page to determine if it
98 already has the same data.
99
100 -da DAPARG [DAPARG ...], --daparg DAPARG [DAPARG ...]
101 Send setting to DAPAccess layer.
102
103 --mass-erase Mass erase the target device.
104
105 --chip_erase and --sector_erase can be used alone as individual commands, or
106 they can be used in conjunction with flashing a binary or hex file. For the
107 former, only the erase option will be performed. With a file, the erase
108 options specify whether to erase the entire chip before flashing the file, or
109 just to erase only those sectors occupied by the file. For a standalone sector
110 erase, the --address and --count options are used to specify the start address
111 of the sector to erase and the number of sectors to erase.