I think that I somehow set the flash protection bits. Is there a way to recover, or is my board now a paperweight?
Running Jflash when I connect I get a dialog "Protection bytes in flash at addr 0x400-0x40F indicate that the readout protection is set"
However when I tell it to go ahead and mass erase it doesn't clear the issue.
Running J-Link's "unlock Kinetis" command results in "Unlocking device...Timeout while unlocking device."
When I attempted to connect to my device I got the following output:
Connecting to target via JTAG
InitTarget() start
InitTarget()
Device will be unsecured now.
Timeout while unsecuring device. Erase never stops.
InitTarget() end
TotalIRLen = 4, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x1993D01D, IRLen: 04, JTAG-DP
DPv0 detected
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x001C0000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
AP[1]: Skipped. Not an AHB-AP
DPv0 detected
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x001C0000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
AP[1]: Skipped. Not an AHB-AP
InitTarget() start
InitTarget()
Running Jflash when I connect I get a dialog "Protection bytes in flash at addr 0x400-0x40F indicate that the readout protection is set"
However when I tell it to go ahead and mass erase it doesn't clear the issue.
Running J-Link's "unlock Kinetis" command results in "Unlocking device...Timeout while unlocking device."
When I attempted to connect to my device I got the following output:
Connecting to target via JTAG
InitTarget() start
InitTarget()
Device will be unsecured now.
Timeout while unsecuring device. Erase never stops.
InitTarget() end
TotalIRLen = 4, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x1993D01D, IRLen: 04, JTAG-DP
DPv0 detected
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x001C0000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
AP[1]: Skipped. Not an AHB-AP
DPv0 detected
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x001C0000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
AP[1]: Skipped. Not an AHB-AP
InitTarget() start
InitTarget()