MK20DX128VFM5 chip usage consultation

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

MK20DX128VFM5 chip usage consultation

Jump to solution
9,060 Views
zhaofan123
Contributor I

I am a newbie and have a lot of doubts, and I would very much like to get the help of your seniors.

I am using the MK20DX128VFM5 chip, and when I connect the computer directly through USB, the computer does not recognize any device, and when I press the reset button to enter, there is no phenomenon.

So I started measuring the REST-B pin of the chip, and I had applied it high, but the chip would force the signal low. When I change a chip that someone else has used, press and hold the reset button to enter, a high level signal appears on the REST-B pin, and the computer can recognize the device and display 'BOOTLOADER'.But when I drag the firmware, the device still doesn't respond.

What do I need to do to make my computer recognize the correct device and be able to refresh the program? I'm not sure if I overlooked some important steps during the operation.

Anyone who can provide answers or documentation would be appreciated.

0 Kudos
Reply
1 Solution
9,046 Views
ErichStyger
Specialist I

Hi @zhaofan123 ,

your device does not have a USB bootloader on it in the ROM. You need to program it first with an application running the USB stack.

I hope this helps,

Erich

View solution in original post

0 Kudos
Reply
38 Replies
9,047 Views
ErichStyger
Specialist I

Hi @zhaofan123 ,

your device does not have a USB bootloader on it in the ROM. You need to program it first with an application running the USB stack.

I hope this helps,

Erich

0 Kudos
Reply
5,516 Views
zhaofan123
Contributor I
There is one more thing I would like to confirm with you. Is the USB bootloader for MK20DX128VFM5 chip the default? Or do I need to create different USB bootloaders based on different functional requirements?
0 Kudos
Reply
5,483 Views
ErichStyger
Specialist I

The K20 has no ROM bootloader. You need to implement one for your needs.

0 Kudos
Reply
5,472 Views
zhaofan123
Contributor I
Do you have any K20 programs available for KDS here? I would like to make some references and modifications.
0 Kudos
Reply
5,385 Views
zhaofan123
Contributor I
0 Kudos
Reply
5,446 Views
zhaofan123
Contributor I
I have one more question I would like to get your confirmation. When I load the bootloader for the K20, can I load it directly with USB? Or do I need to use the SWD interface to burn the program?
0 Kudos
Reply
5,443 Views
ErichStyger
Specialist I
0 Kudos
Reply
5,433 Views
zhaofan123
Contributor I
Where can I buy a debug probe with SWD? Can I trouble you to provide a link to this?
0 Kudos
Reply
5,432 Views
ErichStyger
Specialist I
0 Kudos
Reply
5,141 Views
zhaofan123
Contributor I
Hello, I now get the USB bootloader for MK20 chip, but it is a hexadecimal file type. I have purchased MCU-Link, what software should I download to program the chip? Looking forward to hearing from you.
0 Kudos
Reply
5,126 Views
ErichStyger
Specialist I
0 Kudos
Reply
4,937 Views
zhaofan123
Contributor I

I read your blog, then added K20 and was able to query it successfully.

zhaofan123_0-1690794422534.png

But as I read this,

zhaofan123_0-1690794559338.png

I have some doubts:

I don't know what 'implicit wildcards' is.My device is MK20DX128VFM5 and my board is Analog Devices' EVAL-ADICUP3029, so how exactly should I enter instructions when entering?

0 Kudos
Reply
4,920 Views
ErichStyger
Specialist I

What matters in this case is the device, not the board.

The board would be only relevant if you have external RAM or FLASH, as that would be board specific.

Implicit wildcards means that you did not specify the full device/board tuple.

0 Kudos
Reply
4,914 Views
zhaofan123
Contributor I
When I input commands, just use a * sign to replace the board behind the device, right?
0 Kudos
Reply
4,763 Views
ErichStyger
Specialist I

You don't need a * as a wildcard, it does that implicitly

0 Kudos
Reply
5,112 Views
zhaofan123
Contributor I

I just installed the LinkServer command line utility and tried to follow your blog to use it. But when I enter the command shown in the figure below, the computer shows the supported devices as I thought, and I can't query any information about the K20.

zhaofan123_0-1690717298677.pngzhaofan123_1-1690717307215.png

 

 

0 Kudos
Reply
5,086 Views
ErichStyger
Specialist I

As a consideration, have you thought about adding the K20 to the list of devices for LinkServer?

0 Kudos
Reply
5,074 Views
zhaofan123
Contributor I
I hope to add K20, but I don't know how to do so. It would be great if I could get your help.Also, I would like to confirm one thing, is it not possible to burn. HEX files using KDS?
0 Kudos
Reply
5,070 Views
ErichStyger
Specialist I
0 Kudos
Reply