MQX for K10DN512

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

MQX for K10DN512

2,007 Views
aroste
Contributor IV

Hi all,

I saw a lot of messages about this subject, but some very old so no really answer yet for me.

I start a new project now with a board where we have the MK10DN512VLK10.  I want to use MQX, so I did a BSP clone of the K60D100M  but that doesn't work.  I use PE to change to uc from K60 to K10, create some components but then there is conflict with IO_Map.h.

I think I missed a step. I read that an application note should exist to explain how to do a BSP for K10.  But I didn't find.

Could someone give me the links or explain me the steps ?

I just finish (not really, still some work ;-) ) a project with a K60F120M, I cloned the BSP, used the PE all worked fine,  But for this K10 I stuck.

Thanks

BR

-Stéphan-

CW10.5, MQX4.0.2

0 Kudos
Reply
4 Replies

1,453 Views
soledad
NXP Employee
NXP Employee

Hi,


In order to build a new BSP and PSP it is necessary:


1. Select a BSP and PSP that already exist. It is very important that you consider the factures and the core frequency; these should be very similar to the custom board. For example, if you want to create a BSP and PSP for a K20dx256z (100MHz) it is necessary to select the BSP and PSP for the twrk40x256 because the features and core frequency between both processors (k40 and k20) and the boards are very close.

2. Clone the select BSP and PSP, for do that, you need to refer to the Chapter 5 in the MQX User's Guide "Developing a New BSP" or consult the AN4287 application note, this application provide a guide to clone a BSP, you need to follow the SAME STEPS in order to clone the PSP. Another option is using the BSP Cloning Wizard tool to clone the libraries. (I suggest this option because it is very easy)


3.Another important thingh is select an existing BSP for the same pin version.

For example TWR-K60N512 144 pin version. MK60DZ10.h header file

c:\Freescale\Freescale_MQX_4_0\mqx\source\psp\cortex_m\cpu\MK60DZ10.h

covers also MK60DN256ZVLL10 device, in terms of memory map.

4.Mapping of functions to pins is specified in the BSP source file init_gpio.c:

c:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\${CLONE_BSP_NAME}\init_gpio.c

5.Less flash memory size is to be modified in the linker command file. The location of the linker file is at
c:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\<platform>\cw\*.lcf.

I hope this helps,

Regards


Sol

0 Kudos
Reply

1,453 Views
aroste
Contributor IV

Hi,

Thanks for you answers.  I succeeded by choosing the tower K60D100M, I had to change the include to IO_Map.h instead of MK60DZ10.h and create a K10 CPU with PE.

(Why the MK60DZ10.h instead of a MK60D10.h is still a problem for me that I have in another project now)

You recommend to change manually memory size, and some other paramaters, manually instead to built the correct CPU functions with PE?

BR

-stéphan-

0 Kudos
Reply

1,453 Views
soledad
NXP Employee
NXP Employee

Hello Stephan,

Please check the below threads:

Creating MQX 4.0 BSP for K10

Custom BSP for MK20DN512

I hope this helps :smileywink:

Regards

Sol

0 Kudos
Reply

1,453 Views
aroste
Contributor IV

Hi,

Should it be better to start from a K20?

0 Kudos
Reply