armgcc compilation is not working with SDK 02.12.01 on windows platform

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

armgcc compilation is not working with SDK 02.12.01 on windows platform

1,188 次查看
dilawarali
Contributor I

Target Device: PN7642
SDK Version: v021201
Platform: Windows

 

I have received the SDK zip file from NXP. I have installed the SDK in mcuExpesso IDE. Example import and execution all working fine with McuExpresso IDE. 

 

I want to build my project using armgcc. I  followed the setup instructions provided in "Getting Started with MCUXpresso SDK (MCUXSDKGSUG)" document. I am using the windows platform.

During the compilation of "led_blinkey" example I am getting following error.
"\devices\PN7642\utilities\fsl_sbrk.c:23:1: error: unknown type name 'caddr_t'"


I see the definition of  'caddr_t' is available in "ARMGCC_DIR\arm-none-eabi\include\sys\types.h". Looks like there is some configuration issue which is not able to include the ARMGCC properly.

Can you please guide me how can I use armgcc toolchain on windows for PN7642 device?

Thanks,

0 项奖励
回复
5 回复数

1,105 次查看
dilawarali
Contributor I

Facing exact same issue while compiling "hello world" demo example.

camke: cmake version 3.24.2
ARM GCC: 12.3 rel1 (arm-gnu-toolchain-12.3.rel1-mingw-w64-i686-arm-none-eabi.exe)

0 项奖励
回复

1,064 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @dilawarali 

 

I tried the hello world demo on my side,  it works. please refer to below picture.

danielchen_0-1695286951460.png

I would suggest you check your ARM GCC version.

 

Regards

Daniel

0 项奖励
回复

1,033 次查看
dilawarali
Contributor I

Hi Daniel,

That is great. Can you please share a guide how did you set it all up?
I am seeing a cygwin terminal in your case. While I was using the windows cmd. It will be really helpful.

The document I was following did not describe any such thing.

 

Thanks,

0 项奖励
回复

982 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @dilawarali 

I am using windows command,  followed the quick start guider.

please refer to my full log

danielchen_0-1695643373648.png

danielchen_1-1695643467431.png

 

 

Regards

Daniel

 

0 项奖励
回复

1,109 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

 

Can you try to build the "hello world" demo successfully in your side? which version of ARM GCC and CMAKE you are using?

 

Regards

Daniel

0 项奖励
回复