Change in osmo-asf4-dfu[sysmoOCTSIM]: document flashing procedure for sysmoOCTSIM

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

tsaitgaist gerrit-no-reply at lists.osmocom.org
Tue Jan 14 13:15:02 UTC 2020


tsaitgaist has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/16865 )


Change subject: document flashing procedure for sysmoOCTSIM
......................................................................

document flashing procedure for sysmoOCTSIM

the sysmoOCTSIM board does not have an onboard EDBG adapter such as
the SAM E54 Xplained Pro board.
instead SWD is used directly.

Change-Id: I75766fc891dd835afc35ece9a1eee1c495c5ab20
---
M README.md
1 file changed, 8 insertions(+), 22 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-asf4-dfu refs/changes/65/16865/1

diff --git a/README.md b/README.md
index e63565e..5bf5e0a 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
 This is an implementation of the DFU mode of the [USB DFU Device Class Specification](https://usb.org/document-library/device-firmware-upgrade-11-new-version-31-aug-2004) for the Microchip SAM D5x/E5x micro-controller.
 It is meant to be used as bootloader to allow flashing the main application over USB.
 
-The code has been developed using a [SAM E54](https://www.microchip.com/wwwproducts/en/ATSAME54P20A) micro-controller.
-It should work on any chip of the SAM D5x/E5x device family by replacing the corresponding device-specific definitions (usually including the chip name in the file name).
+This branch is specific to the proprietary sysmocom sysmoOCTSIM hardware.
 
 The code uses the [Atmel START](https://start.atmel.com/) ASFv4 library.
 
@@ -51,6 +50,8 @@
 Flashing
 ========
 
+To flash the bootloader you can use OpenOCD with any SWJ adapter.
+
 The USB DFU bootloader should be flashed in a protected area of the flash memory to prevent for erasing it, as specified in data sheet section 25.6.2 Memory Organization.
 The bootloader size is configured in the NVM user configuration BOOTPROT field, as specified in data sheet section 25.6.9 NVM User Configuration.
 The bit position of the BOOTPROT field is documented in data sheet section 9.4 NVM User Page Mapping.
@@ -58,29 +59,14 @@
 This setting will also tell the bootloader where to flash the application firmware to (e.g. after the bootloader reserved space).
 The LED will blink once per second if this size is not set.
 
-EDBG
-----
+ST-LINK/V2
+----------
 
-To flash the bootloader using the [edbg tool](https://github.com/ataradov/edbg) over the EDBG interface of the SAM E54 Xplained Pro development board.
-
-To flash the USB DFU bootloader, perform the following actions:
-* remove reserved bootloader space so we can erase it: `edbg --target atmel_cm4v2 --fuse wv,29:26,15`
-* erase the whole flash: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --erase`
-* program the bootloader: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --program --verify --file bootloader-BOARD-XXXX.bin`
-* reserve bootloader space: `edbg --target atmel_cm4v2 --fuse wv,29:26,13`
-
-SWJ
----
-
-The bootloader can also be flashed over SWJ (e.g. JTAG or SWD).
-You need to perform the following actions:
-
+To flash the USB DFU bootloader, we will use OpenOCD (with the [SAM E54 patch](http://openocd.zylin.com/#/c/4272/) and a ST-LINK/V2 SWD adapter.
+The command will perform the following actions:
 * remove reserved bootloader space so we can erase it (and reset MCU for change to be effective)
 * erase the whole flash
 * program the bootloader
 * reserve bootloader space
 
-Using OpenOCD (with the [SAM E54 patch](http://openocd.zylin.com/#/c/4272/)) and a ST-LINK/V2 SWD adapter, run the following command:
-
-`openocd --file interface/stlink.cfg --command "transport select hla_swd" --command "set CHIPNAME same54" --command "set CPUTAPID 0x2ba01477" --file target/atsame5x.cfg --command "init" --command "reset halt" --command "atsame5 bootloader 0" --command "flash erase_sector 0 0 last" --command "reset halt" --command "program ./bootloader.bin" --command "atsame5 bootloader 16384"  --command "reset run" --command "shutdown"`
-
+`openocd --file interface/stlink.cfg --command "transport select hla_swd" --command "set CHIPNAME same54" --command "set CPUTAPID 0x2ba01477" --file target/atsame5x.cfg --command "init" --command "reset halt" --command "atsame5 bootloader 0" --command "flash erase_sector 0 0 last" --command "reset halt" --command "program ./AtmelStart.bin" --command "atsame5 bootloader 16384"  --command "reset run" --command "shutdown"`

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/16865
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-asf4-dfu
Gerrit-Branch: sysmoOCTSIM
Gerrit-Change-Id: I75766fc891dd835afc35ece9a1eee1c495c5ab20
Gerrit-Change-Number: 16865
Gerrit-PatchSet: 1
Gerrit-Owner: tsaitgaist <kredon at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200114/dfbdfc13/attachment.htm>


More information about the gerrit-log mailing list