I am following the MQX_BSP_Porting_Guide.pdf for the BSP,PSP and RTCS porting of the K60DX256VLL10 from the K60D100M BSP Evaluation board.
I am using the MK60DX256VLL10 as my processor and using eth-to-serial example as a reference code.
I am finding it very difficult to port the MCU.
I am following steps as defined in MQX_BSP_Porting_Guide.pdf:
“Incorrect tool chain selected in project setting: Please change your project setting to use 'ARM Toolchain' or change the selected Compiler.”
MK60D10.h is the header file supporting both the controllers MK60DX256VLL10 and MK60DN512VLL10(as in eval board).
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.
6. If customer has a different configuration he needs to change the BSP. Attached to this mail, you can find a document that explains how to change the default clock configurations.
In addition please check the below thread in our community web, it may helps,
https://community.freescale.com/docs/DOC-94248
NOTE: Freescale provides MQX support for free on Freescale EVB only. The customer has the option to purchase Level 2 MQX support, either Standard or Premium. These support programs cover also migration to customer specific hardware.
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MQX_SUPPORT
I hope this helps,
Have a nice day!!