fsl_clock.h not C/C++ compliant

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

fsl_clock.h not C/C++ compliant

779 Views
tdoering
Contributor II

Hi everyone,

Just want to report that fsl_clock.h in the provided SDKs for the i.MX8* is not C/C++ compliant. It compiles well using the GNU ARM Cross Compiler in C but does not compile using C++!

The issue is also stated here.

Greetings,

Thomas

Labels (1)
0 Kudos
4 Replies

550 Views
tylernol
Contributor IV

hi there, it is 2022 and I just hit this problem as well. I used SDK_2_10_0_EVK-MIMX8MN.tar.gz , which I downloaded 2 months ago. Are you planning on fixing this anytime soon upstream? In the meantime, I will fix this locally.

 

0 Kudos

706 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Thomas,

    Many thanks for your report!

fsl_clock.h is one of the SDK files for cortex-M4 in i.MX8, the SDK is designed based on C language, when downloading the SDK, users can select environment(arm gcc / IAR / MCUXpressoIDE etc), it is the better choice to use compiler we recommend.

Have a nice day!

nxp tic team

0 Kudos

706 Views
tdoering
Contributor II

Hi,

well, we are using a compiler "you" recommended (arm gcc). However, even if fsl_clock.h compiles using the C-Compiler it is not valid C and should be fixed. And using the file via extern "C" is not working at all.

Greetings,

Thomas

0 Kudos

706 Views
weidong_sun
NXP TechSupport
NXP TechSupport

OK, got it.

I will report the issue you found to MCU Expert team, and discuss it with them.

Thanks you very much!

Have a nice day!

Best Regards,

Weidong

0 Kudos