docs: Update example openocd config in Bootloaders.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f07292084b
commit
b8a6160646
|
@ -193,9 +193,8 @@ interface. This is commonly done with a dedicated SWD hardware dongle.
|
||||||
Alternatively, one can use a
|
Alternatively, one can use a
|
||||||
[Raspberry Pi with OpenOCD](#running-openocd-on-the-raspberry-pi).
|
[Raspberry Pi with OpenOCD](#running-openocd-on-the-raspberry-pi).
|
||||||
|
|
||||||
To flash a bootloader with OpenOCD use a chip config similar to:
|
To flash a bootloader with OpenOCD use the following chip config:
|
||||||
```
|
```
|
||||||
set CHIPNAME at91samd21g18
|
|
||||||
source [find target/at91samdXX.cfg]
|
source [find target/at91samdXX.cfg]
|
||||||
```
|
```
|
||||||
Obtain a bootloader - for example:
|
Obtain a bootloader - for example:
|
||||||
|
@ -231,9 +230,8 @@ SAMD51 micro-controllers (Adafruit Metro-M4 and similar)
|
||||||
Like the SAMD21, the SAMD51 bootloader is flashed via the ARM Serial
|
Like the SAMD21, the SAMD51 bootloader is flashed via the ARM Serial
|
||||||
Wire Debug (SWD) interface. To flash a bootloader with
|
Wire Debug (SWD) interface. To flash a bootloader with
|
||||||
[OpenOCD on a Raspberry Pi](#running-openocd-on-the-raspberry-pi) use
|
[OpenOCD on a Raspberry Pi](#running-openocd-on-the-raspberry-pi) use
|
||||||
a chip config similar to:
|
the following chip config:
|
||||||
```
|
```
|
||||||
set CHIPNAME at91samd51g19
|
|
||||||
source [find target/atsame5x.cfg]
|
source [find target/atsame5x.cfg]
|
||||||
```
|
```
|
||||||
Obtain a bootloader - several bootloaders are available from
|
Obtain a bootloader - several bootloaders are available from
|
||||||
|
@ -361,15 +359,18 @@ bcm2835gpio_swd_nums 25 24
|
||||||
bcm2835gpio_srst_num 18
|
bcm2835gpio_srst_num 18
|
||||||
transport select swd
|
transport select swd
|
||||||
|
|
||||||
# Set the chip (at91samd51j19 in this example)
|
# Use hardware reset wire for chip resets
|
||||||
set CHIPNAME at91samd51j19
|
reset_config srst_only
|
||||||
|
adapter_nsrst_delay 100
|
||||||
|
adapter_nsrst_assert_width 100
|
||||||
|
|
||||||
|
# Specify the chip type
|
||||||
source [find target/atsame5x.cfg]
|
source [find target/atsame5x.cfg]
|
||||||
|
|
||||||
# Set the adapter speed
|
# Set the adapter speed
|
||||||
adapter_khz 40
|
adapter_khz 40
|
||||||
adapter_nsrst_delay 100
|
|
||||||
adapter_nsrst_assert_width 100
|
|
||||||
|
|
||||||
|
# Connect to chip
|
||||||
init
|
init
|
||||||
targets
|
targets
|
||||||
reset halt
|
reset halt
|
||||||
|
|
Loading…
Reference in New Issue