MK20DX128VFM5 chip usage consultation

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

MK20DX128VFM5 chip usage consultation

跳至解决方案
10,647 次查看
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 解答
10,633 次查看
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 回复数
3,927 次查看
zhaofan123
Contributor I
My understanding is as follows, and I hope to get your correction.
1. MCU-Link only supports binary type files, I use KDS even if I can open hexadecimal files, but the debug detector does not recognize and work, right?
2. If I only had a hexadecimal file right now, the solution I could think of would be:
(1) Change to a debug probe (but I don't currently know which one to use).
(2) Convert a hexadecimal file to a binary file (I don't know if this can be achieved).
0 项奖励
回复
3,849 次查看
ErichStyger
Specialist I

1) it supports 'binary' and ELF/Dwarf

2.2) have you checked https://mcuoneclipse.com/2018/03/07/converting-binary-files-to-intel-hex-format-with-the-srecord-too... already?

0 项奖励
回复
3,811 次查看
zhaofan123
Contributor I

I recently read this link and your blog, then installed SRecord and tried to use it. However, perhaps due to my lack of expertise, I have not been able to successfully convert the file format using this software.

 

I attach my hex file here, I would be very grateful if you could help me convert it to binary.

0 项奖励
回复
3,805 次查看
ErichStyger
Specialist I

What did not work? What was the error message?

I certainly could convert your file, but then what can you do if you need to convert another file?

0 项奖励
回复
3,770 次查看
zhaofan123
Contributor I
I have now successfully programmed the ADUCM3029 chip using MCU-Link and implemented the project requirements. But I still want to try to control it with the MK20 chip, because this design can reduce the number of ports occupied by the computer.
If you have time, I sincerely hope you can convert the hexadecimal file above for me, and then I will learn to burn the USB bootloader of MK20.
0 项奖励
回复
3,764 次查看
ErichStyger
Specialist I

As described in

https://mcuoneclipse.com/2018/03/07/converting-binary-files-to-intel-hex-format-with-the-srecord-too...

Use the SRecord tool (you can get it from here https://srecord.sourceforge.net/ ) and use the following (example) command line:

srec_cat inputFile.hex -Intel -output outputFile.bin -binary
0 项奖励
回复
3,802 次查看
zhaofan123
Contributor I
As a teacher, you certainly want students to really learn how to convert all base files, and I think you're right. But for me personally, I am not a student in the field of computer science. I just happened to be working on a project that needed to convert this file, it was only a small part of my project, and I hardly needed to convert other files in my future studies and work.
0 项奖励
回复
3,997 次查看
zhaofan123
Contributor I
Thank you very much for your reply. I will study and try.
0 项奖励
回复
4,043 次查看
zhaofan123
Contributor I

Judging from your last reply, MK20DX128VFM5 should not support MCUXpresso, right?

zhaofan123_0-1690714431291.png

I currently have Kinetis Design Studio installed on my computer, can I burn hexadecimal files through this software?

 

0 项奖励
回复
4,031 次查看
ErichStyger
Specialist I

In KDS, you have the 'flash from file':

ErichStyger_0-1690720891527.png

 

 

0 项奖励
回复
4,346 次查看
zhaofan123
Contributor I
If I want to use J-link for debugging, is this feasible?
0 项奖励
回复
4,219 次查看
ErichStyger
Specialist I

yes, of course.

0 项奖励
回复
4,525 次查看
zhaofan123
Contributor I
Thank you very much for your reply. I am using ADuCM3029 chip together. If I use programming, how should I operate it? Do you have any relevant technical manuals or process instructions? Because I have not covered these before and am still in the learning stage, I am not very familiar with this knowledge. I look forward to your reply.
0 项奖励
回复
4,515 次查看
ErichStyger
Specialist I

That K20DX128 is not supported by the NXP MCUXpresso SDK, so you would have to use the Kinetis Design Studio for it.

You might check some articles about it on my blog (https://mcuoneclipse.com), or check the examples I have posted on GitHub: https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-K20D50M

I hope this helps,

Erich

0 项奖励
回复
4,302 次查看
zhaofan123
Contributor I

I've read a lot about it lately, including your blog, but I still don't know.

I use KDS and Keil together based on your blog. Finally, a .uvprojx file was generated in KDS and successfully opened in Keil.

1.png

But when I set it up, I can't find the device.

2.png

I've installed all kinds of software, but I still don't know how to program an empty chip. Would love to get your help very much, any response from you will improve the efficiency of my learning.

Also, I would like to state to you that I am unable to download the program in GitHub and that the program you posted appears to be for IAR use. Is this correct?

0 项奖励
回复
4,282 次查看
ErichStyger
Specialist I

I have not used IAR or Keil for years. But I'm using KDS for the K20DX128, and I suggest you use KDS for it.

0 项奖励
回复
4,271 次查看
zhaofan123
Contributor I

Glad to hear from you. As shown in the figure below, I am trying to use KDS now, when I create a new project and match my target chip, what should I continue to do?

3.png4.png

Can you please tell me what to do next, or give me some links to learn?

0 项奖励
回复
4,463 次查看
zhaofan123
Contributor I
Thank you again for your reply. I will study and try.
0 项奖励
回复