unable to build Uart_Example_S32G274A_M7

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

unable to build Uart_Example_S32G274A_M7

2,472 次查看
ieio74
Contributor I

Hi all,

when I try to build the Uart_Example_S32G274A_M7 example I got the following errror message:

arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
compilation terminated.

what am I missing?

 

Bellow the full build log:

19:00:46 **** Build of configuration Debug_RAM for project Uart_Example_S32G274A_M7 ****
make -j8 all
Building file: ../src/main.c
Building file: ../generate/src/Clock_Ip_Cfg.c
Building file: ../generate/src/Clock_Ip_PBcfg.c
Invoking: Standard S32DS C Compiler
Building file: ../generate/src/IntCtrl_Ip_Cfg.c
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
Invoking: Standard S32DS C Compiler
compilation terminated.
arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_PBcfg.d" -MT"generate/src/Clock_Ip_PBcfg.o" -o "generate/src/Clock_Ip_PBcfg.o" "../generate/src/Clock_Ip_PBcfg.c"
compilation terminated.
Building file: ../generate/src/Linflexd_Uart_Ip_PBcfg.c
make: *** [src/subdir.mk:20: src/main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [generate/src/subdir.mk:44: generate/src/Clock_Ip_PBcfg.o] Error 1
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
compilation terminated.
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/IntCtrl_Ip_Cfg.d" -MT"generate/src/IntCtrl_Ip_Cfg.o" -o "generate/src/IntCtrl_Ip_Cfg.o" "../generate/src/IntCtrl_Ip_Cfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Linflexd_Uart_Ip_PBcfg.d" -MT"generate/src/Linflexd_Uart_Ip_PBcfg.o" -o "generate/src/Linflexd_Uart_Ip_PBcfg.o" "../generate/src/Linflexd_Uart_Ip_PBcfg.c"
arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
compilation terminated.
make: *** [generate/src/subdir.mk:44: generate/src/Clock_Ip_Cfg.o] Error 1
make: *** [generate/src/subdir.mk:44: generate/src/IntCtrl_Ip_Cfg.o] Error 1
arm-none-eabi-gcc: fatal error: cannot read spec file ‘nano.specs’: No such file or directory
compilation terminated.
make: *** [generate/src/subdir.mk:44: generate/src/Linflexd_Uart_Ip_PBcfg.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

19:00:46 Build Failed. 6 errors, 0 warnings. (took 277ms)

0 项奖励
回复
5 回复数

2,339 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @ieio74

Thanks for the feedback.

Well, it is possible, the RTD version mentioned(1.0.0HF01)is relatively old, which was released several years ago, we suggest using the newer version for both the development and reference. For S32DS3.4.0, according to the release notes, the host supported are the following:

chenyin_h_0-1715320630901.png

Not including the Ubuntu22.04 for Linux installation.

Currently, I suggest installing the S32DS3.5.3, which support most of the newer version RTD and other software packages released from NXP.

For S32DS Linux version, the necessary packages that need to be installed in advance is detailed described in the installation guide of S32DS.

 

Best Regards

Chenyin

0 项奖励
回复

2,389 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @ieio74

Thanks for the feedback.

So it is from RTD4.0.2 HF2 with S32DS used.

I tested it locally but met no issues with S32DS3.5.3, currently an initial suggestion is to reload the SDK like the following:

chenyin_h_0-1715159328400.png

Then rebuild the project for a test.

Hope it helps.

 

Best Regards

Chenyin

0 项奖励
回复

2,357 次查看
ieio74
Contributor I

Hello @chenyin_h,

I suspect the problem could be the host OS, I tried with another version:

S32DS3.4 b201217-S32_RTD_4.4_1.0.0_HF01_D2102_DS_Updatesite-SW32G2_S32DS_3.4.0_D2012

and it works perfectly on Windows 11, but I got the same error with UBUNTU 22.04

Do I miss something with he Linux installation?

 

 

0 项奖励
回复

2,433 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, thanks for the question.

Would you please kindly help us to know which version RTD you were testing with? By EB or S32DS?

Thanks

 

Best Regards

Chenyin

0 项奖励
回复

2,412 次查看
ieio74
Contributor I

Thank @chenyin_h,

here are the details of my selection:

Screenshot from 2024-05-07 11-58-56.png

the fist error I found was;

Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@Project_Settings/Startup_Code/exceptions.args" -MMD -MP -MF"Project_Settings/Startup_Code/nvic.d" -MT"Project_Settings/Startup_Code/nvic.o" -o "Project_Settings/Startup_Code/nvic.o" "../Project_Settings/Startup_Code/nvic.c"
../src/main.c:33:10: fatal error: Mcu.h: No such file or directory
Invoking: Standard S32DS C Compiler

but adding the include directories in the settings it diapered.

ieio74_0-1715077549855.png

 Am missing something in generating the code?

0 项奖励
回复