Can not erase chip after programming Flash Program example on ATSAME70Q21 chipset

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

I programmed a Flash Program example on ATSAME70Q21 chipset  using SAM-ICE tool .

 

After running the  example program ,  it set  a Security Bit on flash storage  . 

 

To run a Chip Erase , 

Trying to connect a chip  with a  SAM-ICE debugger , it can not detect device Signature  .

it displays a Error Message Popups  .  

 

So I can not execute  Chip Erase Command ..

 

Can you help me to run Chip Erase to ATSAME70Q21 using a SAM-ICE ?

 

Thanks

 


=========== Below is Log ====================

 

-- Flash Program Example --

-- SAME70-XPLD --
-- Compiled: Jul  7 2021 13:27:22 --
-I- Unlocking test page: 0x005ff800
-I- Writing test page with walking bit pattern
-- Flash Program Example --
-- SAME70-XPLD --
-- Compiled: Jul  7 2021 13:27:22 --
-I- Unlocking test page: 0x005ff800
-I- Writing test page with walking bit pattern
-I- Checking page contents ................................................................................................................................OK
-I- Locking test page
-I- Try to program the locked page ...
-I- The page to be programmed belongs to locked region. Error 4
-I- Please open Segger's JMem program
-I- Read memory at address 0x005ff800 to check contents
-I- Press any key to continue...
-I- Good job!
-I- Now set the security bit
-I- Press any key to continue to see what happened...
-I- Setting security bit
-I- All tests done

 

 


 

 

 

Attachment(s): 

Last Edited: Wed. Jul 7, 2021 - 07:18 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If the security bit has been set, then the only way to recover the device is to power it up while the ERASE pin is high (connect it to Vcc). Wait a few seconds, power-down, and disconnect the ERASE pin.

 

This will erase Flash and reset the security bit, so on the next power-up you will be able to access the device with the debugger.

 

Steve

 

Maverick Embedded Technologies Ltd. Home of Maven and wAVR.

Maven: WiFi ARM Cortex-M Debugger/Programmer

wAVR: WiFi AVR ISP/PDI/uPDI Programmer

https://www.maverick-embedded.co...