TWR-K60N512 not more programmable

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-K60N512 not more programmable

2,252 Views
Mirko
Contributor I

Hi,

 

i'm using CodeWarrior 10.1 for TWR-K60N512 programming.

 

After the last program CodeWarrior say:

 

"Failed to resume target process., ARM GDI Protocol Adapter : Can't connect. The Debugger can not connect to the P&E device"

 

Power, status and TPWR leds are on, in j8 the voltage is correct (3.3V)  but i can't programming another time.

The actual uC current consumption is 100uA.

 

The last code that i have adding is the following:

 

 

         

if((PMC_REGSC & 0x08) == 0x08){GPIOA_PDOR = 0x00000C00;}else{GPIOA_PDOR = 0x30000000;}MC_PMPROT = (uint8_t) 0x01U;MC_PMCTRL = (uint8_t) 0x07U; // set LPLLSM = 0b11SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;asm("WFI");

 

What could be the problem and how i can resolve it?

0 Kudos
7 Replies

1,003 Views
lukas
Contributor III

it is some problem with wake up from low power mode.

You must disconnect jumper J8 - MCU power for a while.

0 Kudos

1,003 Views
Mirko
Contributor I

Thanks for the answer but I tried this way and i am not been able to solve this problem...

...someone else has some other ideas?

 

it's so urgent and important!

0 Kudos

1,003 Views
lukas
Contributor III

try to use another programmer - like J-link lite

0 Kudos

1,003 Views
Mirko
Contributor I

I tried with j-link programmer but when i erased the flash it tell me:

"Error:  Blank Check failed.
Error: command failed"

When i tried to programm the main project an error allarm tell me

"Download Task Failure
Error:"

 

and it doesn't programm.

0 Kudos

1,003 Views
lukas
Contributor III

try to send service request

0 Kudos

1,003 Views
Mirko
Contributor I

Hi,

Freescale Support, has replied:

"There is a method to erase the chip and make it work, since you have jlink on hand , you can use the jlink commander and run "unlock Kinetis" , this commander can unsecure the chip by issuing a mass erase command, after that, you can download code into intflash again."

I tried this procedure but J-link Commander view this error message:

"Could not reset error in Ctrl/Stat register. Unlocking device... ERROR: Read from DP/AP register failed"

Whenever i try a reset command "r" it reply  with the error message:
"CPU core not found"

Have you any answer at this problem?

0 Kudos

1,003 Views
lukas
Contributor III

Try to use the kinetis board without tower and check all jumpers - espacially J8 (it must be instaled)

0 Kudos