DA16600 FreeRTOS Getting Started with EVK
© 2021 Dialog Semiconductor
NOTE
TTL command references:
send : Sends data.
Format : send <data1> <data2>....
sendln : Sends data with new-line.
Format : sendln <data1> <data2>....
waitln : Waits a line that contains string.
Format : waitln <string1> [<string2> ...]
mpause : Pauses.
Format : mpause <time>, milliseconds
getdir : Gets the current working directory for MACRO.
Format : getdir <strvar>
strconcat : Appends a string.
Format : strconcat <strvar> <string>
ymodemsend : Sends a file from the host with the YMODEM protocol.
Format : ymodemsend <filename>
8.6 Serial Flash Recovery
When the serial flash is replaced, the flash memory map is changed, or if you think that the flash
memory is corrupted, then follow the steps to re-initialize or recover sflash and check the process:
1. Boot DA16600.
2. At the [/DA16600] # prompt, run reset command.
3. At [MROM] prompt, run sflash info command to read serial flash information.
For example, SFLASH: 1f421615.
This is the flash product ID of AT25SL321. See also the IDs below.
4. Run ymodem sfdp command.
5. In the build\SBOOT\SFDP folder, find Flash SFDP file that corresponds to Flash ID as
AT25SL321.bin.
6. Run sflash erase 0 400000 command [MROM] to erase the entire flash for recovery.
Know that this command can take a long time to complete. Wait until the [MROM] prompt appears
again.
7. Re-load all images in the specified order for serial flash recovery.
a. [MROM] loady boot.
b. [MROM] loady 23000.
c. [MROM] loady 3ad000.
8. Run command boot to boot DA16600.
The image version is printed.
9. Initialize NVRAM for Serial Flash Recovery with following commands:
[/DA16600] # nvram
[/DA16600/NVRAM] # nvedit erase sflash
[/DA16600/NVRAM] # nvedit clear
[/DA16600/NVRAM] # nvcfg update sflash