Brand new FRDM-K22F not working

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

Brand new FRDM-K22F not working

1,150 Views
errorek123
Contributor III

Hi,

I just bought new frdm-k22f board and when i plugged it to my pc, bootloader got corrupted, i read that i can recover from it using external debugger which i have but it's not that easy, when i try to flash bootloader i got :

" Error: Failed to erase sectors 0 @ address 0x00000000 (Algo35: Flash protection violation. Flash is write-protected.)"

I connected my debugger to J12 header and plugged usb into the OpenSDA USB.

unlock kinetis gives:

"Found SWD-DP with ID 0x2BA01477
Unlocking device...ERROR: Read from DP/AP register failed!"

connecting to core:

pastedImage_1.png

i can't do anything with this now, should i return this board?

0 Kudos
4 Replies

1,053 Views
BlackNight
NXP Employee
NXP Employee

Does the board show up in BOOTLOADER mode? It is not clear to me what is corrupted (the bootloader, the OpenSDA debug up or something different)?

From the screenshot you can connect to the K20, but it seems you have turned on flash protection and read-out protection. If this is really the case, I'm affraid your K20 is bricked and you cannot recover it. You would have to unsolder it and put a new device on the board.

But you still can use the K22 on your board, you just have to use your external debugger for it.

I hope this helps,

Erich

0 Kudos

1,053 Views
errorek123
Contributor III

No board doesn't communicate at all, only at first connection i had bootloader as MSD. I did not turned any flash protection, i don't even know how to do it.

0 Kudos

1,053 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Brian Smith,

   If your on board K20 can't used as the debugger and you also can't update the K20 chip code to the latest one.

   Two ways for you:

1. put a new K20 on the board.

2. use the external debugger to debug your on board K64 chip.

Wish it helps you!


Have a great day,
Kerry

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,053 Views
mjbcswitzerland
Specialist V

Hi

If possible, use a pre-Win 8.1 PC to program one of the following OpenSDA loaders (when in boot mode): OpenSDA Serial and Debug Adapter | NXP (using drag-and-drop onto the boot-loader disk that shows).

This will avoid needing to program the debugger chip.

Afterwards be careful to never power the board with the reset switch held low in order to avoid it being lost again (on post Win 8 PC)

Regards

Mark

Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K22:
- http://www.utasker.com/kinetis/FRDM-K22F.html
- http://www.utasker.com/kinetis/TWR-K22F120M.html
- http://www.utasker.com/kinetis/BLAZE_K22.html
- http://www.utasker.com/kinetis/tinyK22.html

0 Kudos