MK20DX128VFM5 chip usage consultation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MK20DX128VFM5 chip usage consultation

跳至解决方案
9,029 次查看
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 项奖励
回复
1 解答
9,015 次查看
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 项奖励
回复
38 回复数
9,016 次查看
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 项奖励
回复
5,496 次查看
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 项奖励
回复
5,463 次查看
ErichStyger
Specialist I

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

0 项奖励
回复
5,452 次查看
zhaofan123
Contributor I
Do you have any K20 programs available for KDS here? I would like to make some references and modifications.
0 项奖励
回复
5,365 次查看
zhaofan123
Contributor I
0 项奖励
回复
5,426 次查看
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 项奖励
回复
5,423 次查看
ErichStyger
Specialist I
0 项奖励
回复
5,413 次查看
zhaofan123
Contributor I
Where can I buy a debug probe with SWD? Can I trouble you to provide a link to this?
0 项奖励
回复
5,412 次查看
ErichStyger
Specialist I
0 项奖励
回复
5,121 次查看
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 项奖励
回复
5,106 次查看
ErichStyger
Specialist I
0 项奖励
回复
4,917 次查看
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 项奖励
回复
4,900 次查看
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 项奖励
回复
4,894 次查看
zhaofan123
Contributor I
When I input commands, just use a * sign to replace the board behind the device, right?
0 项奖励
回复
4,743 次查看
ErichStyger
Specialist I

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

0 项奖励
回复
5,092 次查看
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 项奖励
回复
5,066 次查看
ErichStyger
Specialist I

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

0 项奖励
回复
5,054 次查看
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 项奖励
回复
5,050 次查看
ErichStyger
Specialist I
0 项奖励
回复