AnsweredAssumed Answered

FRDM-K64F Won't flash: Cannot access device, device is secured

Question asked by unknowncoder on Jan 22, 2018
Latest reply on Feb 12, 2018 by unknowncoder

Hello, 

 

We just bought the FRDM-K64F to start development on a new project. The first thing we try to do is use KDS design studio to flash the board but we are getting the error below. We have nave never flashed the board before. We are using the latest KDS. 

We tried using MCUXpresso but there was not option to flash the board using OpenOCD.

 

Open On-Chip Debugger 0.8.0-dev (2015-01-09-16:23)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis kinetis.flash
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : CMSIS-DAP: FW Version = 1.10
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : IDCODE 0x2ba01477
Error: Cannot access device, device is secured
Info : Mass erasing a device will unsecure it until the next reset. To permanently unsecure, mass erase then flash a program containing an appropriate flash configuration field.

OpenSDAv2 detail file

 

# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 0240000041114e45000c3007bcf900149e51000097969900
HIC ID: 97969900
Auto Reset: 0
Automation allowed: 0
Overflow detection: 0
Daplink Mode: Interface
Interface Version: 0244
Git SHA: 5f9092d41cfd6601fef7b3b467fe8f8767b01f84
Local Mods: 1
USB Interfaces: MSD, CDC, HID
Interface CRC: 0x0676bc5d
Remount count: 0

Outcomes