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.
解決済! 解決策の投稿を見る。
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
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
Thanks a lot!
BR,
Huy.
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
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.
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