Kinetis K60 bootloader and MQX application

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

Kinetis K60 bootloader and MQX application

1,314 次查看
waynelai
Contributor I

Suppose I have a bootloader to initialize all the K60 hardwares, like clock, GPIOs, UARTs...etc.

After bootloader finish initializing, it will jump to user application.

1. For user application with MQX support,

how do I generate the project using MQX BSP clone wizard ?

Is it still necessary to include BSP library into the project ?

2. If I wrote some hardware access APIs in the bootloader,

   how to export these APIs to allow user application to access hardware ?

Thanks a lot.

0 项奖励
2 回复数

472 次查看
soledad
NXP Employee
NXP Employee

Hi,

I want to believe that this appnote can be a guideline for developing your bootloader:

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4367.pdf

This appnote describes how to add the FNET bootloader to Kinetis projects. There is a section that includes adding it to the MQX linker which is the section that I believe you will find useful. I hope this helps.


Have a great day,
Regards
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

472 次查看
waynelai
Contributor I

Hi Sol,

Thanks for your reply.

What confuse me is that, MQX seems to have some codes to initialize the hardware.

If we seperate to two projects, bootloader and application.

The bootloader will do the hardware initialization, then we should not initialize it again in the MQX.

In the document "AN4367.pdf", the MQX example seems also include the hardware initialization,

does the MQX project will all include both bootloader and application ?

By the way, where is the example code of AN4367 ?

The AN4367SW.zip is the setup program.

Thanks.

0 项奖励