FRDM-KL82Z no tty interface anymore

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

FRDM-KL82Z no tty interface anymore

Jump to solution
11,053 Views
michshell
Contributor II

Hello all,

I directly copied and pasted the bin file to the board at that time still can be recongnized as a tty interface.  However, after status led flashed quickly and I unplugged and plugged the cable again, the tty interface has gone.  Also if now I use the Xpresso IDE to flash some other axf to the board.  It would show probe cannot be found.

Anyone knows how to get the usb driver back?  Thanks a lot. 

Screen Shot 2020-10-11 at 2.11.27 AM.png

But it still appears as the bootloader driver,

Screen Shot 2020-10-11 at 2.16.02 AM.png

 

 

0 Kudos
1 Solution
10,898 Views
nxf56274
NXP Employee
NXP Employee
0 Kudos
23 Replies
10,640 Views
michshell
Contributor II

Do you have some station that would accept mailing these hardwares to you for further analysis?  I'm just curious about it and don't want it to turn to be a brick so soon...  I don't think there's any serious hardware damage on any of the device.

0 Kudos
10,679 Views
michshell
Contributor II

Besides, I got a STM32F042K6 at hand but I don't think it exposes pins to allow jlink connection directly.  I will try to configure the pins with the STM32Cube, but the process would be slow as I'm at kindergarten level on jlink.

0 Kudos
10,748 Views
michshell
Contributor II

Thank you so much for the guide.  I will try out and feedback.

0 Kudos
10,770 Views
nxf56274
NXP Employee
NXP Employee

Hi,

It looks like you firmware wasn't updated. Because the mcu uses old bootloader, but you put the new firmware for him and we do not have the old firmware. So you have to update the bootloader. The attachment is a guide to teach you how to update the bootloader.  You need a jlink to connect to J9.

Have a great day,
TIC

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

- We are following threads for 7 days 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
10,765 Views
michshell
Contributor II

Thanks admin.  One quick question on step 5 the Jlink connection basically means to connect the SDA USB port to the PC, am I right?

I was trying step 5 like first connecting the SDA USB port with the PC, after that, I got another cable to connect the other usb port to the PC.

Screen Shot 2020-10-12 at 11.11.34 PM.png

At the moment I got stuck in step 5/6, as Jlink cannot get connected via USB.  I will keep trying different ways.

0 Kudos
10,761 Views
nxf56274
NXP Employee
NXP Employee

Hi,

The device you choose should look for the schematic. MK20dn32 is used for k64, not your Board.

You should find 'MK20DX128VFM5'.

Have a great day,
TIC

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

- We are following threads for 7 days 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
10,756 Views
michshell
Contributor II

Thanks, admin.

I understand.  The screenshot is from the pdf you sent to me.  In my case, I still cannot find any device for step 6.  I'm wondering whether I connected those cables correctly in step 5 thus I tried to make sure with you.

0 Kudos
10,751 Views
nxf56274
NXP Employee
NXP Employee

Hi,

You need another jlink to connect to the board. Not usb. Something like this. This is lpc-link. I use it to connect to the board pin 'J9'.

b.jpg

 

Have a great day,
TIC

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

- We are following threads for 7 days 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
10,705 Views
michshell
Contributor II

Dear Admin,

 

I purchased a jlink and did according to the instruction but it still could not work out.  My first time to use a jlink so there might be some issue I was unaware of.  Attached are relevant pictures for this time.

0 Kudos
10,698 Views
nxf56274
NXP Employee
NXP Employee

Do you choose the right mcu? MK20DX128VFM5. Do you connect to the j9?

0 Kudos
10,692 Views
michshell
Contributor II
Spoiler
 

Dear Admin,

 

I think FRDM-KL82Z is with cortex-m0+, anyway, I tried both MK20DX128xxx5 and MKL82Z128xxx7.  Similar error output as previously attached.  Thanks.

0 Kudos
10,685 Views
nxf56274
NXP Employee
NXP Employee

Do you insert the jlink correctly? Please notice the direction. Do you use your jlink to communicate with other device? Does it work? You can also connect to j19 to communicate with your kl82 mcu. 

0 Kudos
10,681 Views
michshell
Contributor II

I switch to J19 and got some new error this time.

 

SEGGER J-Link Commander V6.80d (Compiled Jun 26 2020 17:17:21)
DLL version V6.80d, compiled Jun 26 2020 17:17:01

Connecting to J-Link via USB...O.K.
Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
Hardware version: V9.70
S/N: 59768859
License(s): RDI, GDB, FlashDL, FlashBP, JFlash
VTref=3.161V


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


Connecting to target via JTAG
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget()
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.
Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000

****** Error: InitTarget(): PCode returned with error code -1
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget()
Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
Connect Under Reset
Connect Under Reset

****** Error: InitTarget(): PCode returned with error code -1

Cannot connect to target.

 

 

It says "J-Link cannot unprotect the device.".  I found another topic about this issue but it seems a different chip.  I haven't tried it yet.

 

Hope this means I'm getting close.  Many thanks for your help!

 

0 Kudos
10,673 Views
nxf56274
NXP Employee
NXP Employee

In jlink commander, try to enter 'unlock kinetis'. It will erase the chip protection.

0 Kudos
10,668 Views
michshell
Contributor II

Hello Admin,

New error message,

Cannot connect to target.
J-Link>unlock Kinetis
Unlocking device...ERROR: Read from DP/AP register failed!

 

I searched a while and it seems the problem is quite fundamental.  

0 Kudos
10,663 Views
nxf56274
NXP Employee
NXP Employee

Do you unlcok the kl82? 

0 Kudos
10,658 Views
michshell
Contributor II

Dear Admin,

What do you mean by unlocking kl82?  I thought 'unlock kinetis' and 'unlock kl82' are the same process.

If not, can you guide a bit on how to unlock kl82?  Thanks a lot.

0 Kudos
10,652 Views
nxf56274
NXP Employee
NXP Employee

connect to j19 to unlock? Do you?

0 Kudos
10,649 Views
michshell
Contributor II

This is what I just tried.  The process started from connecting to the device and unlock it.  After it failed at 'unlock Kinetis', I don't have a clue for further steps. 

Yes it's J19. 

I added another picture here.  The green light on the board is actually blinking.  The rest of the lights just stay bright. 

 

Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "MKL82Z128XXX7" selected.


Connecting to target via JTAG
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget()
Connect Under Reset
Connect Under Reset

****** Error: InitTarget(): PCode returned with error code -1

InitTarget()
Connect Under Reset
Readout protection is set and mass erase is disabled. J-Link cannot unprotect the device.
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget()
Connect Under Reset
Connect Under Reset

****** Error: InitTarget(): PCode returned with error code -1

Cannot connect to target.
J-Link>unlock Kinetis
Unlocking device...ERROR: Read from DP/AP register failed!
J-Link>

 

updated_jlink_pic.jpeg

 

0 Kudos
10,899 Views
nxf56274
NXP Employee
NXP Employee

Do you try swd?

2.PNG

0 Kudos