Need header file for MK20DN512 bootloader

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

Need header file for MK20DN512 bootloader

跳至解决方案
1,943 次查看
huyho
Contributor III

Hello,

I am going to create a simple bootloader for MK20DN512VLQ10, then want to send hex firmware via CAN and update.

I followed this to create the bootloader, and found that a lot of files have to change:

- FRDM_..._cfg.h.

- flash_kinetis.c

- rs232.c.

- MK20D...h.

- core_cm4.h.

...

However, the instruction only showed the way to change some files. I want to know where I can find all header files of my MCU. I searched in SDK but not found.

Please give me the advice!

Thanks in advance!

Best regards,

Huy.

标签 (1)
1 解答
1,453 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Huy,

If you have download MK20DN512xxx's SDK package correctly, you'll find these .h file in:

   \SDK_2.2_MK20DN512xxx10\CMSIS\Driver\include

   \SDK_2.2_MK20DN512xxx10\CMSIS\Include

   \SDK_2.2_MK20DN512xxx10\Device\MK20D10\Drivers

Regards

在原帖中查看解决方案

6 回复数
1,453 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Huy,

There is no suitable file for every NXP MCU. You should modify the files by yourself.

This job is not very difficult, but need to be careful.

First change all include file from MK22F51212.h to MK20DN10.h

Then change all gpio and function pin definition.

Take care of clock setting and so on...

Good luck

1,453 次查看
huyho
Contributor III

Thanks a lot!

BR,

Huy.

0 项奖励
回复
1,453 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Huy

This file locates in Kinetis bootloader SW\Bootloader and Application for K22\Bootloader Source Code\bootloader_k22_mdk_1230\Driver\bootcfg. Please check the Kinetis bootloader SW.zip

Regards

0 项奖励
回复
1,453 次查看
huyho
Contributor III

Hi Pan,

I knew but I want to change this file to our MCU K20. Where can I find the suitable file? Or what should I change it to fit with my MCU?

Thanks a lot!

Best regards,

Huy.

0 项奖励
回复
1,454 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Huy,

If you have download MK20DN512xxx's SDK package correctly, you'll find these .h file in:

   \SDK_2.2_MK20DN512xxx10\CMSIS\Driver\include

   \SDK_2.2_MK20DN512xxx10\CMSIS\Include

   \SDK_2.2_MK20DN512xxx10\Device\MK20D10\Drivers

Regards

1,453 次查看
huyho
Contributor III

Hi Pan,

Thanks for your response!

I got a lot of header files from your suggestion. However, I don't know how to change (or where to find) the same file FRDM_K22F_cfg.h.

Please help! The attached is my project.

Thanks a lot!

Best regards,

Huy.

0 项奖励
回复