AnsweredAssumed Answered

MQX BSP for a custom MK22F51212 base board

Question asked by David Cooper on Feb 22, 2016
Latest reply on Feb 24, 2016 by David Cooper

We are attempting to bring up a board that has an MK22F CM4 processor.

I started with the MQX 4.1 BSP for the Freescale_MQX_4_1_FRDMK22F120M BSP available for the FRDM-K22F development board.

I used the BSP Cloning Wizard to export an BSP as a starting point.

My current issue is getting the clock configuration/initialization correct for the new hardware.

The Freedom development BSP is configured for a board with an 8 MHz clock and seems to setup 4 clock configurations.

Our hardware uses a 50 MHz external clock and as far as I know we will only need a single clock configuration.

 

Based several threads here and a couple of App Notes I have attempted to use  the Processor Expert Software, Microcontroller Driver Stuite tool (V 10.4.0) to define our clock configuration and generate code.

I then intended to manually integrate the generated CM initialization code from Cpu.c/h to the bsp_cm.c/h files in the BSP.  My problem is that the code flow and routine names seem to have migrated and it is not clear how to port the generated code into my BSP.

 

Questions:

Is this a valid approach - can anyone let me know if I should be able to use the code generated by PE in the MQX 4.1 BSP?

Is there a better way to accomplish this, different tool, different BSP to clone from .....

 

Thanks - any insights appreciated. 

Outcomes