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
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.
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
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
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