Need header file for MK20DN512 bootloader

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

Need header file for MK20DN512 bootloader

Jump to solution
1,466 Views
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.

Labels (1)
1 Solution
976 Views
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

View solution in original post

6 Replies
976 Views
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

976 Views
huyho
Contributor III

Thanks a lot!

BR,

Huy.

0 Kudos
976 Views
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 Kudos
976 Views
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 Kudos
977 Views
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

976 Views
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 Kudos