7 Replies Latest reply on Jul 7, 2016 6:01 AM by mark_kram

    How to back to factory mode?

    mark_kram

      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?

        • 1. Re: How to back to factory mode?
          Intel_Alvarado

          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 .

           

          Let us know your results.

           

          -Sergio

          • 2. Re: How to back to factory mode?
            mark_kram

            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.

            • 3. Re: How to back to factory mode?
              Intel_Alvarado

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

               

              -Sergio

              • 4. Re: How to back to factory mode?
                MichelleC_Intel

                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.

                • 5. Re: How to back to factory mode?
                  mark_kram

                  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

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

                  1 of 1 people found this helpful
                  • 6. Re: How to back to factory mode?
                    MichelleC_Intel

                    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.

                    1 of 1 people found this helpful
                    • 7. Re: How to back to factory mode?
                      mark_kram

                      Hi Michelle,

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