Hello David,
In order to build a new BSP and PSP it is necessary:
- Select a BSP and PSP that already exist. It is very important that you consider the features 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. In your case you need to use the twrk60D100m.
- Use the BSP Cloning Wizard tool to clone the libraries. After that, follow the steps (only follow the steps don't use the same device) from the next thread Creating MQX 4.0 BSP for K10
3. Another important thing 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_x\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_x\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.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------