fsl_clock.h not found in FreeRTOS example for K22F SDK2.0

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

fsl_clock.h not found in FreeRTOS example for K22F SDK2.0

1,186 Views
jpcordovae
Contributor II

I downloaded an SDK 2.0 with the SDK Builder for the chip MK22FN1M0xxx12 with FreeRTOS, and I open the example in this route:

 

\SDK_2.0_MK22FN1M0xxx12_FRTOS\boards\twrk21f120m\rtos_examples\freertos_dspi

 

The example don't compile and complain about can´t found the file fsl_clock.h, which should come as part of the drivers of the chip.

 

I need this example working badly soon.

 

ty in advance and best regards,

 

JP

Labels (1)
0 Kudos
5 Replies

743 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Juan,

I tested on my side and compile without any problem.

rtos.png

Please, do you have correctly set paths for your project in your IDE?

What IDE do you use? Do you import the example by this way? How to: import example in KSDK

Please let me know, if this helps you.

Best Regards,

Iva

0 Kudos

743 Views
jpcordovae
Contributor II

Hi Iva,

Indeed I was importing them in the wrong way, my bad, now I'm compiling without problems.

Anyway, I have another questions, if I choose a SDK for MK22FN1M0xxx12, why the board description (twrk21f120m) looks if were for another MCU?, are both using same description files ?

JP

0 Kudos

743 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Juan,

there is a link in each demo for the specific MCU linked in fsl_device_registers.h

In these folder you will find board specific files, which are different for MK21FA12 and for MK22F12.

MK21FA12.png

in fsl_device_registers.h you will find supported MCUs for concrete serie.

In MK22F12 folder you will find in fsl_device_registers.h

#if (defined(CPU_MK22FN1M0VLH12) || defined(CPU_MK22FN1M0VLK12) || defined(CPU_MK22FN1M0VLL12) || \

    defined(CPU_MK22FN1M0VLQ12) || defined(CPU_MK22FN1M0VMC12) || defined(CPU_MK22FN1M0VMD12) || \

    defined(CPU_MK22FX512VLH12) || defined(CPU_MK22FX512VLK12) || defined(CPU_MK22FX512VLL12) || \

    defined(CPU_MK22FX512VLQ12) || defined(CPU_MK22FX512VMC12) || defined(CPU_MK22FX512VMD12))

and the second folder is for these MCUs

#if (defined(CPU_MK21FX512AVLQ12) || defined(CPU_MK21FN1M0AVLQ12) || defined(CPU_MK21FX512AVMC12) || \

    defined(CPU_MK21FN1M0AVMC12) || defined(CPU_MK21FX512AVMD12) || defined(CPU_MK21FN1M0AVMD12))

And here you can find how there are particular files linked:

MK21FA12_features.png

Please, does this help you?
Best Regards,

Iva

743 Views
tomasvanek
Contributor III

Iva,

two files devices/MK22F12/drivers/fsl_clock.c and fsl_clock.h are really missing in SDK_2.0_MK22FN1M0xxx12 build.

Seems that corresponding files from devices/MK21FA12/drivers/ can be used as a replacement. The build should be fixed anyway, please ask development team.

Tomas

0 Kudos

743 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Tomas,

thank you for pointing out his!

I can confirm that  these files are missing for MK22F12.

As a workaround for this moment, please use fsl_clock.c and fsl_clock.h from MK21FA12/drivers/

I will ask dev.team for the explanation and let you know.

Have a nice day.

Iva

0 Kudos