S32 Design Studio for ARM S32K144 BLDC

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

S32 Design Studio for ARM S32K144 BLDC

Jump to solution
987 Views
MrShen
Contributor III

I am using S32 Design Studio for ARM Version 2.2, with SDK V2.2. Importing the BLDC example from MC_DevKits, the compilation fails.

arm-none-eabi-gcc.exe: error: unrecognized argument in option '-march=armv7e-m+fp'

Is it a GCC problem? How should I configure it?

MrShen_0-1777896869692.png

MrShen_1-1777896905589.png

MrShen_2-1777897174590.png

Building target: MCSPTE1AK144_BLDC_6Step.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "MCSPTE1AK144_BLDC_6Step.elf" "@MCSPTE1AK144_BLDC_6Step.args"
arm-none-eabi-gcc.exe: error: unrecognized argument in option '-march=armv7e-m+fp'
arm-none-eabi-gcc.exe: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6kz armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc armv8-m.base armv8-m.main armv8-m.main+dsp armv8-r armv8.1-a armv8.1-a+crc armv8.2-a armv8.2-a+fp16 iwmmxt iwmmxt2 native
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
lto-wrapper.exe: fatal error: C:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v6.3\gcc-6.3-arm32-eabi\bin\arm-none-eabi-gcc.exe returned 1 exit status
compilation terminated.
c:/nxp/s32ds_arm_v2.2/s32ds/build_tools/gcc_v6.3/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:63: MCSPTE1AK144_BLDC_6Step.elf] Error 1

Tags (1)
0 Kudos
Reply
1 Solution
921 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MrShen 

I was able to replicate the issue you described.

AMMCLib version 1.1.44 uses GCC version 10.2, which causes compatibility issues with the toolchain version used to develop the MCSPTE1AK144 application software.

As a workaround, you may downgrade AMMCLib to any version within the range 1.1.33 to 1.1.43, as AMMCLib is backward compatible.

Previous versions can be downloaded from Automotive Math and Motor Control Library Set for S32K14x.

Once the download and installation are complete, please follow these steps:

  • Remove the AMMCLib 1.1.44 installation from disk.
  • Run the MCSPTE1AK144 installer again.
  • Delete the examples from your workspace and re-import them.

 

BR, VaneB

View solution in original post

0 Kudos
Reply
1 Reply
922 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MrShen 

I was able to replicate the issue you described.

AMMCLib version 1.1.44 uses GCC version 10.2, which causes compatibility issues with the toolchain version used to develop the MCSPTE1AK144 application software.

As a workaround, you may downgrade AMMCLib to any version within the range 1.1.33 to 1.1.43, as AMMCLib is backward compatible.

Previous versions can be downloaded from Automotive Math and Motor Control Library Set for S32K14x.

Once the download and installation are complete, please follow these steps:

  • Remove the AMMCLib 1.1.44 installation from disk.
  • Run the MCSPTE1AK144 installer again.
  • Delete the examples from your workspace and re-import them.

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2360065%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32%20Design%20Studio%20for%20ARM%20S32K144%20%20BLDC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360065%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20S32%20Design%20Studio%20for%20ARM%20Version%202.2%2C%20with%20SDK%20V2.2.%20Importing%20the%20BLDC%20example%20from%20MC_DevKits%2C%20the%20compilation%20fails.%3C%2FP%3E%3CP%3Earm-none-eabi-gcc.exe%3A%20error%3A%20unrecognized%20argument%20in%20option%20'-march%3Darmv7e-m%2Bfp'%3C%2FP%3E%3CP%3EIs%20it%20a%20GCC%20problem%3F%20How%20should%20I%20configure%20it%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MrShen_0-1777896869692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_0-1777896869692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_0-1777896869692.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384261i0515D2BB2A744F83%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MrShen_0-1777896869692.png%22%20alt%3D%22MrShen_0-1777896869692.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MrShen_1-1777896905589.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_1-1777896905589.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_1-1777896905589.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384262iB7AD212E92C48043%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MrShen_1-1777896905589.png%22%20alt%3D%22MrShen_1-1777896905589.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MrShen_2-1777897174590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_2-1777897174590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MrShen_2-1777897174590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384263i32819414C9E7732E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MrShen_2-1777897174590.png%22%20alt%3D%22MrShen_2-1777897174590.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBuilding%20target%3A%20MCSPTE1AK144_BLDC_6Step.elf%3CBR%20%2F%3EInvoking%3A%20Standard%20S32DS%20C%20Linker%3CBR%20%2F%3Earm-none-eabi-gcc%20-o%20%22MCSPTE1AK144_BLDC_6Step.elf%22%20%22%40MCSPTE1AK144_BLDC_6Step.args%22%3CBR%20%2F%3Earm-none-eabi-gcc.exe%3A%20error%3A%20unrecognized%20argument%20in%20option%20'-march%3Darmv7e-m%2Bfp'%3CBR%20%2F%3Earm-none-eabi-gcc.exe%3A%20note%3A%20valid%20arguments%20to%20'-march%3D'%20are%3A%20armv2%20armv2a%20armv3%20armv3m%20armv4%20armv4t%20armv5%20armv5e%20armv5t%20armv5te%20armv6%20armv6-m%20armv6j%20armv6k%20armv6kz%20armv6s-m%20armv6t2%20armv6z%20armv6zk%20armv7%20armv7-a%20armv7-m%20armv7-r%20armv7e-m%20armv7ve%20armv8-a%20armv8-a%2Bcrc%20armv8-m.base%20armv8-m.main%20armv8-m.main%2Bdsp%20armv8-r%20armv8.1-a%20armv8.1-a%2Bcrc%20armv8.2-a%20armv8.2-a%2Bfp16%20iwmmxt%20iwmmxt2%20native%3CBR%20%2F%3Earm-none-eabi-gcc.exe%3A%20error%3A%20nano.specs%3A%20No%20such%20file%20or%20directory%3CBR%20%2F%3Elto-wrapper.exe%3A%20fatal%20error%3A%20C%3A%5CNXP%5CS32DS_ARM_v2.2%5CS32DS%5Cbuild_tools%5Cgcc_v6.3%5Cgcc-6.3-arm32-eabi%5Cbin%5Carm-none-eabi-gcc.exe%20returned%201%20exit%20status%3CBR%20%2F%3Ecompilation%20terminated.%3CBR%20%2F%3Ec%3A%2Fnxp%2Fs32ds_arm_v2.2%2Fs32ds%2Fbuild_tools%2Fgcc_v6.3%2Fgcc-6.3-arm32-eabi%2Fbin%2F..%2Flib%2Fgcc%2Farm-none-eabi%2F6.3.1%2F..%2F..%2F..%2F..%2Farm-none-eabi%2Fbin%2Freal-ld.exe%3A%20error%3A%20lto-wrapper%20failed%3CBR%20%2F%3Ecollect2.exe%3A%20error%3A%20ld%20returned%201%20exit%20status%3CBR%20%2F%3Emake%3A%20***%20%5Bmakefile%3A63%3A%20MCSPTE1AK144_BLDC_6Step.elf%5D%20Error%201%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32%20Design%20Studio%20for%20ARM%20S32K144%20%20BLDC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239904%22%20target%3D%22_blank%22%3E%40MrShen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20was%20able%20to%20replicate%20the%20issue%20you%20described.%3C%2FP%3E%0A%3CP%3EAMMCLib%20version%201.1.44%20uses%20GCC%20version%2010.2%2C%20which%20causes%20compatibility%20issues%20with%20the%20toolchain%20version%20used%20to%20develop%20the%20MCSPTE1AK144%20application%20software.%3C%2FP%3E%0A%3CP%3EAs%20a%20workaround%2C%20you%20may%20downgrade%20AMMCLib%20to%20any%20version%20within%20the%20range%201.1.33%20to%201.1.43%2C%20as%20AMMCLib%20is%20backward%20compatible.%3C%2FP%3E%0A%3CP%3EPrevious%20versions%20can%20be%20downloaded%20from%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fswlicensing%2Fsso%2FdownloadSoftware.sp%3Fcatid%3DSW32K14-MMCL1D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAutomotive%20Math%20and%20Motor%20Control%20Library%20Set%20for%20S32K14x%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EOnce%20the%20download%20and%20installation%20are%20complete%2C%20please%20follow%20these%20steps%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERemove%20the%20AMMCLib%201.1.44%20installation%20from%20disk.%3C%2FLI%3E%0A%3CLI%3ERun%20the%20MCSPTE1AK144%20installer%20again.%3C%2FLI%3E%0A%3CLI%3EDelete%20the%20examples%20from%20your%20workspace%20and%20re-import%20them.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E