Friday, February 23rd 2018, 5:43am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

can.finner

Beginner

Date of registration: Jul 18th 2011

Posts: 12

1

Tuesday, November 29th 2011, 7:16am

[SOLVED]JLink Failed to erase sectors 0 @ address 0x00000000

Hi,
When I connect mk60n512 target board via JLinkGDBServer, the log says:
------------------
......
02-00-00015893-0037: JLINK_GoIntDis() (0002ms, 0192ms total)
02-00-00015897-0045: JLINK_IsHalted() returns TRUE (0004ms, 0194ms total)
02-00-00015897-004D: JLINK_ReadReg(R15) returns 0x1FFFC000 (0000ms, 0198ms total)
02-00-00015897-004C: JLINK_ReadReg(R0) returns 0xFFFFFFFE (0000ms, 0198ms total)
02-00-00015897-000E:
02-00-00015904-009B: ***** Error: Failed to erase sectors 0 @ address 0x00000000 (Algo135: Flash protection violation. Flash is write-protected.) -- End of flash programming
02-00-00015904-004A: JLINK_GetDeviceFamily() returns 14 (0000ms, 0198ms total)
03-00-00015904-0076: ERROR: Failed to erase sectors 0 @ address 0x00000000 (Algo135: Flash protection violation. Flash is write-protected.)
03-00-00015999-001F: Connection to debugger closed !
------------------
I am not sure how to fix this issue, so could anybody help me?

Thanks very much.

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

2

Tuesday, November 29th 2011, 8:35am

Hi,

is it possible that the flash got write-protected by accident?
If yes, please open the J-Link Commander and type
unlock Kinetis
in order to trigger a mass erase of the flash memory via the MDM-AP of the Kinetis device.
Is the GDBServer then able to program the MK60N512?

Which version of the GDBServer do you use (current one is V4.36k (release) / V4.39a (beta))?

Best regards
Alex

can.finner

Beginner

Date of registration: Jul 18th 2011

Posts: 12

3

Tuesday, November 29th 2011, 9:13am

I was using JLink 4.28c and J-Link seems not working right, it did not prompt me a command line and just hanged.
Don't know whether related to my cygwin or system environment.
Anyway I switched Jlink 4.36i on another pc and unlock command ran successfully.

Thank you for your quick support.

This post has been edited 1 times, last edit by "can.finner" (Nov 29th 2011, 9:22am)