Skip to content

Commit

Permalink
doc: D5035-01: fix build / flash / upload instructions
Browse files Browse the repository at this point in the history
- fix board name from d5035-01 to d5035_01
- add missing BOARD=d5035_01 to instructions now that we support
	multiple boards officially
  • Loading branch information
jgressmann committed Oct 29, 2021
1 parent 029a639 commit 209b160
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/README.D5035-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ If you have a debugger probe such as SEGGER's J-Link you can choose any option.
#### J-Link
```
$ cd Boards/examples/device/supercan
$ make -j V=1 HWREV=3 flash-jlink
$ make -j V=1 BOARD=d5035_01 HWREV=3 flash-jlink
```

#### Atmel ICE
```
$ cd Boards/examples/device/supercan
$ make -j V=1 HWREV=3 flash-edbg
$ make -j V=1 BOARD=d5035_01 HWREV=3 flash-edbg
```


Expand All @@ -92,14 +92,14 @@ This option installs the SuperDFU bootloader on the device. SuperDFU implements

```
$ cd Boards/examples/device/atsame51_dfu
$ make -j V=1 BOARD=d5035-01 HWREV=3 BOOTLOADER=1 VID=0x1d50 PID=0x5036 PRODUCT_NAME="D5035-01 SuperCAN DFU" INTERFACE_NAME="D5035-01 SuperCAN DFU" flash-jlink
$ make -j V=1 BOARD=d5035_01 HWREV=3 BOOTLOADER=1 VID=0x1d50 PID=0x5036 PRODUCT_NAME="D5035-01 SuperCAN DFU" INTERFACE_NAME="D5035-01 SuperCAN DFU" flash-jlink
```

##### Atmel ICE

```
$ cd Boards/examples/device/atsame51_dfu
$ make -j V=1 BOARD=d5035-01 HWREV=3 BOOTLOADER=1 VID=0x1d50 PID=0x5036 PRODUCT_NAME="D5035-01 SuperCAN DFU" INTERFACE_NAME="D5035-01 SuperCAN DFU" flash-edbg
$ make -j V=1 BOARD=d5035_01 HWREV=3 BOOTLOADER=1 VID=0x1d50 PID=0x5036 PRODUCT_NAME="D5035-01 SuperCAN DFU" INTERFACE_NAME="D5035-01 SuperCAN DFU" flash-edbg
```

This creates and flashes the bootloader. Make sure to replace _HWREV=3_ with the revision of the board you are using.
Expand All @@ -110,15 +110,15 @@ Next, flash SuperCAN using these steps

```
$ cd Boards/examples/device/supercan
$ make -j V=1 HWREV=3 APP=1 flash-dfu
$ make -j V=1 BOARD=d5035_01 HWREV=3 APP=1 flash-dfu
```


##### Atmel ICE

```
$ cd Boards/examples/device/supercan
$ make -j V=1 HWREV=3 APP=1 OFFSET=0x4000 edbg-dfu
$ make -j V=1 BOARD=d5035_01 HWREV=3 APP=1 OFFSET=0x4000 edbg-dfu
```
### 3. Build and upload SuperCAN through SuperDFU

Expand All @@ -132,7 +132,7 @@ Build the SuperCAN DFU file

```
$ cd Boards/examples/device/supercan
$ make -j V=1 HWREV=3 APP=1 dfu
$ make -j V=1 BOARD=d5035_01 HWREV=3 APP=1 dfu
```

Ensure _HWREV_ matches the board you are using.
Expand Down

0 comments on commit 209b160

Please sign in to comment.