Kinetis K60 bootloader and MQX application

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

Kinetis K60 bootloader and MQX application

1,270 Views
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 Kudos
2 Replies

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

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