program flash on the FRDM-K22F board,

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

program flash on the FRDM-K22F board,

Jump to solution
1,083 Views
Ed_McM
Contributor I

I am trying to program flash on the FRDM-K22F board, using a Segger Jlink and Segger JFlash. 

I have identified the target as MK22FN512xxx12. I've tried using both JTAG and SWD interface.  I varied speed from 100 to 4k.  I am able to connect to the processor.   When I try to erase device, I get the following errors.

Failed to download RAMCode

Failed to prepare for programming

Failed to erase sectors.

Am I missing something obvious?

Thanks for any help.

Ed

I have removed jumpers J10 and J13.

--------------------

error log

------------

Erasing MK22FN512XXX12 via JTAG-Interface@1000kHz
Erase Thread started.
Device "MK22FN512XXX12" selected.
InitTarget()
TotalIRLen = 4, IRPrint = 0x01
JTAG chain detection found 1 devices:
 #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
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]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
Debugger initialized successfully.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
AfterResetTarget()
Failed to read back RAMCode for verification.
Failed to prepare for programming.
Failed to download RAMCode!
Erase Thread exited
Erase failed.

0 Kudos
1 Solution
582 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Sorry for the late reply!

You don't need to removed jumpers J10 and J13.

With the latest Segger firmware loaded, the onboard OpenSDA can be act as Segger J-Link.

I have attached the latest firmware application of FRDM-K22F '01_OpenSDA_FRDM-K22F.bin' here.

You can refer the method descripted in 'Freedom Board with Segger OpenSDA Debug Firmware'.

Best Regards,

Robin

 

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

View solution in original post

0 Kudos
1 Reply
583 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Sorry for the late reply!

You don't need to removed jumpers J10 and J13.

With the latest Segger firmware loaded, the onboard OpenSDA can be act as Segger J-Link.

I have attached the latest firmware application of FRDM-K22F '01_OpenSDA_FRDM-K22F.bin' here.

You can refer the method descripted in 'Freedom Board with Segger OpenSDA Debug Firmware'.

Best Regards,

Robin

 

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

0 Kudos