armgcc compilation is not working with SDK 02.12.01 on windows platform

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

armgcc compilation is not working with SDK 02.12.01 on windows platform

1,270 Views
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 Kudos
Reply
5 Replies

1,187 Views
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 Kudos
Reply

1,146 Views
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 Kudos
Reply

1,115 Views
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 Kudos
Reply

1,064 Views
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 Kudos
Reply

1,191 Views
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 Kudos
Reply