Need header file for MK20DN512 bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need header file for MK20DN512 bootloader

ソリューションへジャンプ
1,944件の閲覧回数
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,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

元の投稿で解決策を見る

6 返答(返信)
1,454件の閲覧回数
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,454件の閲覧回数
huyho
Contributor III

Thanks a lot!

BR,

Huy.

0 件の賞賛
返信
1,454件の閲覧回数
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,454件の閲覧回数
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,455件の閲覧回数
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,454件の閲覧回数
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 件の賞賛
返信