-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from sukidog/doc_changes
Doc improvements and additions
- Loading branch information
Showing
5 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Enable Automation Features | ||
1. Update the interface software to a version at or above 0241 | ||
2. Create an empty text file called "auto_on.cfg" on the drive while the reset button is held | ||
3. Release the reset button after the drive remounts and confirm "Automation Allowed" is set to 1 in details.txt | ||
4. Update the bootloader software to a version at or above 0241 | ||
5. Confirm that "start_bl.act" causes the device to enter bootloader mode and "start_if.act" causes the device to enter interface mode | ||
1. Copy an empty text file called "auto_on.cfg" to the DAPLink MSD drive while the reset button is held. | ||
1. Release the reset button when the drive unmounts. When it remounts, confirm "Automation Allowed" is set to 1 in details.txt | ||
1. Update the bootloader software to a version at or above 0241 | ||
1. Confirm that the "start_bl.act" MSD command causes the device to enter bootloader mode, and that the "start_if.act" command causes the device to enter interface mode. See [MSD Commands](MSD_COMMANDS.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# MSD Commands | ||
|
||
DAPLink allows you to give it some simple commands via its MSD interface. By | ||
copying a file with a certain name to the root of the DAPLink MSD drive, you | ||
can get DAPLink to either perform an action or configure a flash-persisted | ||
option. The contents of the file are ignored; you can pass it an empty file. | ||
|
||
These MSD commands work only if you are either holding down the RESET button | ||
when you add the file to the MSD drive, or if you've turned on DAPLink's | ||
automation-allowed mode. Of course, the way you turn on automation-allowed | ||
mode is via an MSD command (see below). So, you'll either hold the RESET | ||
button each time you invoke an MSD command or you do so only once to turn | ||
on automation-allowed mode. This mode is saved in flash and so it persists | ||
across board reboots. | ||
|
||
By convention, files that end with ".act" trigger an action; files that end | ||
with ".cfg" trigger an option change. The mechanism is case-insensitive. | ||
|
||
Every command completes by remounting the DAPLink MSD drive. Every command | ||
is supported in both interface and bootload mode. | ||
|
||
`start_bl.act` This file will force DAPLink to remount in bootloader mode. | ||
It is equivalent to unplugging the USB cable, and plugging it back in while | ||
holding the RESET button. This command has no effect if DAPLink is already | ||
in interface mode. | ||
|
||
`start_if.act` This file will force DAPLink to remount in interface mode. It | ||
is equivalent to unplugging the USB cable and plugging it back in, when | ||
DAPLink is currently in bootloader mode. This command has no effect if DAPLink | ||
is already in bootloader mode. | ||
|
||
`auto_rst.cfg` This file will turn on Auto Reset mode. In this mode, the RESET | ||
pin is automatically asserted after programming an application image to the | ||
target processor flash via the DAPLink MSD drive (in interface mode). Note | ||
that this mode does not affect when happens when you update the Hardware | ||
Interface Circuit firmware (DAPLink) via the DAPLink MSD drive in bootloader | ||
mode. | ||
|
||
`hard_rst.cfg` This file turns off Auto Reset mode. | ||
|
||
`assert.act` This file can be used to test DAPLink's assert utility. When you | ||
copy this file to the DAPLink MSD drive, DAPLink generates a call to the | ||
util_assert() method. An assert call causes the DAPLink MSD drive to remount | ||
with an additional file, ASSERT.TXT, appearing at the root of the drive. This file | ||
details where the assertion failure occurred (source file, line number). An | ||
assert call is a no-op if there is already an outstanding assert failure (there | ||
can only be one). The outstanding assertion failure can be cleared by deleting | ||
ASSERT.TXT. The deletion causes a remount of the DAPLink MSD drive. In actuality, | ||
any file operation (addition, deletion, content change) could be used to trigger | ||
a DAPLink command. Deleting ASSERT.TXT is actually a DAPLink MSD command in its | ||
own right. | ||
|
||
|
||
`refresh.act` This file forces a remount of the DAPLink MSD drive | ||
|
||
`auto_on.cfg` This file turns on automation-allowed mode. In this mode, DAPLink | ||
MSD commands can be triggered without needing to hold down the RESET button | ||
while copying the command file to the DAPLink MSD drive. Also, bootloader updates | ||
are allowed only in automation-allowed mode. | ||
|
||
`auto_off.cfg` This file turns off automation-allowed mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters