Connect FRDM-KEAZ128 to J-Link

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

Connect FRDM-KEAZ128 to J-Link

1,481 Views
laonia
Contributor I

Hi,

I just received an FRDM-KEAZ128 board and am trying to connect via J-Link. The connection of different devices is attached. When I typed `connect` on the J-Link Commander, I received the following printout:

SEGGER J-Link Commander V7.62c (Compiled Mar 23 2022 16:45:48)
DLL version V7.62c, compiled Mar 23 2022 16:44:32

Connecting to J-Link via USB...O.K.
Firmware: J-Link V11 compiled Mar 3 2022 10:16:14
Hardware version: V11.00
S/N: 51022156
License(s): GDB
USB speed mode: Full speed (12 MBit/s)
VTref=1.844V


Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: S9KEAZ128XXXX (ALLOW SECURITY)
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "S9KEAZ128XXXX (ALLOW SECURITY)" selected.


Connecting to target via JTAG
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Timeout while unsecuring device. Erase never starts.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Timeout while unsecuring device. Erase never starts.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Timeout while unsecuring device. Erase never starts.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Timeout while unsecuring device. Erase never starts.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Cannot connect to target.

I shorted jumper wires 2 and 3, which is supposed to be the config "Reset signal direct to the MCU when OpenSDA is not powered". When I plugged in the power supply, I found green LED on D3 and red LED near SW1, and the LED D11 is not blinking. (This LED blinked when I shorted jumpers 1 and 2, so I think my board is functioning). However, when I checked voltage between GND (pin J3-13) and 5V (pin J3-09), I found the output to be 2.5V. Is this normal? Another thing that I found suspicious was that Vref to J-Link was 1.844V, but I suppose J-Link Vref is often 3.3V. Is this why my connection failed?

 

Thanks. 

0 Kudos
Reply
3 Replies

1,474 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi laonia,

Since you power the board through J16 with external 12V, then the J107 should connect 1-2(SBC power P5V0). If still not able to connect the KEA with external Segger JLink, then please refer: Communication error while accessing MDM-AP.

Best Regards,
Robin
-------------------------------------------------------------------------------
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
Reply

1,471 Views
laonia
Contributor I

Hi Robin,

If I connect J107 1 and 2, then Vref at SDA/JTAG is 0V. Is this normal? Because of this low voltage, I got an error saying Target voltage too low. 

I also had a warning saying RESET (pin 15) high, but should be low. Please check target hardware while pressing down the reset button and powering up the board. Is this the correct way to set RESET to low? 

Thanks! 

0 Kudos
Reply

1,443 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry for the delay.
Please measure the voltage of Pin 1 and 3 without connect jumper of J107. Check if the voltage source is correct. If the voltage is correct before connect the jumper of J107, then you may need to check the circuit behind.(2v and 0v are all incorrect. J10 can select 3.3v or 5V, but it's default to 5V)

J107 FRDM-KEA128 J16.png

What's the SCH version of your FRDM-KEAZ128? There should be a sticker on the bottom of the board that says SCH version.

If OpenSDA is not powered(J7 not plug), then connect 2-3 of J104, press SW1 will hold low the RESET.
If OpenSDA is powered, then connect 1-2 of J104, the OpenSDA will output low to RESET.

 

0 Kudos
Reply