fsl_clock.h not C/C++ compliant

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

fsl_clock.h not C/C++ compliant

1,637 次查看
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

标签 (1)
0 项奖励
回复
4 回复数

1,408 次查看
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 项奖励
回复

1,564 次查看
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 项奖励
回复

1,564 次查看
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 项奖励
回复

1,564 次查看
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 项奖励
回复