Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor II
1,401 Views

How to back to factory mode?

Jump to solution

I have some problem with current consumption in sleep mode and I wondering if is there any possibility to restore D2000 board to completely factory mode?


Accepted Solutions
Highlighted
15 Views

Hi

You can use the 'del_flash0' command in the OpenOCD console to delete the OTPD and FLASH.

The 'mass_erase' command can also be used. That will also delete the OTPC DATA protected region.

At that point the board should be back to it's origional mode..

--Michelle.

View solution in original post

7 Replies
Highlighted
Employee
15 Views

Hi,

To recover your board, the BSP-ROM can help - simply set IO0 pin to GND (Arduino RX or SoC pin13), power cycle your board, and flash again following steps of https://software.intel.com/en-us/node/604844 https://software.intel.com/en-us/node/604844 .

Let us know your results.

-Sergio

Highlighted
New Contributor II
15 Views

Hi Alvarado,

thank you for your fast respone. I did as you write. I flashed the board as it is in mentioned manual and I applied "flushregs" command but did not help. The board still takes 21mA / 16mA.

0 Kudos
Highlighted
Employee
15 Views

We'll perform some additional tests and post our results soon. Thank you for your patience.

-Sergio

0 Kudos
Highlighted
16 Views

Hi

You can use the 'del_flash0' command in the OpenOCD console to delete the OTPD and FLASH.

The 'mass_erase' command can also be used. That will also delete the OTPC DATA protected region.

At that point the board should be back to it's origional mode..

--Michelle.

View solution in original post

Highlighted
New Contributor II
15 Views

Hi Michelle,

thank you for your response and sorry for delay but I had couple urgent things to finish at my work. I tryed both commands I mean "del_flash0" and "mass_erase" but in both cases process wasn't successfully finished because there is some prblem with "mww" command. Below you can find logs.

/***********************************************************************************************************************************/

PS C:\IntelSWTools\ISSM_2016.0.027\tools\debugger\openocd> bin/openocd -f .\scripts\board\quark_d2000_onboard.cfg -c "del_flash0"

Open On-Chip Debugger 0.8.0-dev-g7845893 (2015-11-26-18:12)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

adapter speed: 1000 kHz

trst_only separate trst_push_pull

flash_rom

Runtime Error: .\scripts\board\quark_d2000_onboard.cfg:61: invalid command name "mww"

in procedure 'del_flash0'

at file ".\scripts\board\quark_d2000_onboard.cfg", line 61

/***********************************************************************************************************************************/

PS C:\IntelSWTools\ISSM_2016.0.027\tools\debugger\openocd> bin/openocd -f .\scripts\board\quark_d2000_onboard.cfg -c "set QUARK_D2000_OTPC_DATA_WRITE_ENABLED 1" -c "mass_erase"

Open On-Chip Debugger 0.8.0-dev-g7845893 (2015-11-26-18:12)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

adapter speed: 1000 kHz

trst_only separate trst_push_pull

flash_rom

1

Deleting OTPC, OTPD and FLASH regions

Runtime Error: .\scripts\board\quark_d2000_onboard.cfg:67: invalid command name "mww"

in procedure 'mass_erase'

at file ".\scripts\board\quark_d2000_onboard.cfg", line 67

/***********************************************************************************************************************************/

Highlighted
15 Views

Hi ,

Rather than use the '-c' you should connect the OpenOCD session to the board and then use telnet to connect to localhost port 4444 and issue the commands from the OpenOCD Console -- see below.

--Michelle.

0 Kudos
Highlighted
New Contributor II
15 Views

Hi Michelle,

I did as you write (via telnet all went great), thak you for your support.

0 Kudos