Problem Impoting Matlab XML to Design Studio

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Impoting Matlab XML to Design Studio

230 Views
Contributor III

Hello mariuslucianand

I have been  importing an XML file from Matlab with MBDT version 4.2.0 to S32 Design Studion ARM 2.2.

When I import a file a notepad pops out with an error as follow "1>C:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v4.9\gcc-arm-none-eabi-4_9\arm-none-eabi\newlib\lib\thumb\v7e-m\fpv4-sp\hard\libm.a (The system cannot find the path specified)"

I have checked the Directory but was not able find any such path created during the installation of Design Studio.

The project imported is unable to build.

Hope for Help.

Regards 

Gopal Rathi. 

0 Kudos
6 Replies

181 Views
NXP Employee
NXP Employee

Hello @rathi_tg ,

Can you send me an archive with the generated code to try importing it in the S32DS?

Regards,

Marius

0 Kudos

174 Views
Contributor III

Hello @mariuslucianand 

 I have attached the basic led program which even fails while  imported to Design Studio.

 

Regards 

Gopal Rathi 

0 Kudos

164 Views
NXP Employee
NXP Employee

Hello @rathi_tg.,

It looks like we are using different compiler versions and the lib that the S32DS complains about is from the GCC version 6.3 and not 4.9 the one that you have.

Now, the toolbox comes directly with the compiler, so the way in which you select which one to be used is by setting the system path variable that points to the compiler. 

By default, the Model-Based Design Toolbox comes directly with the compiler and adds the path in the Matlab if the variable is not found declared in the Windows path variable. So in order to check which variable you have set, please type the following command in the Matlab environment. mariuslucianand_0-1602245138450.png

My result points to the compiler from the toolbox.

Now, if your result is the following,

C:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v4.9\gcc-arm-none-eabi-4_9\

you have two options:

1. Either go to the Windows' System properties,  Environment variables and update the GCC_S32K_TOOL variable  value to the:

C:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v6.3\gcc-6.3-arm32-eabi

 

2. Either go to the Windows' System properties,  Environment variables and delete the GCC_S32K_TOOL variable. And Matlab will use the compiler provided with our toolbox which is the same as the one from the S32DS_ARM_v2.2.

In both cases, you have to restart Matlab after changing the already defined GCC_S32K_TOOL variable path. 

Hope this helps,

Marius

155 Views
Contributor III

Hello @mariuslucianand 

I have Followed the above Steps I get build option but it generates few errors.

 

rathi_tg_0-1602258540784.png

What are these specific to and how i could solve them.

Thanks and Regards 

Gopal Rathi

0 Kudos

134 Views
Contributor III

Hello @mariuslucianand 

 

I have installed the ToolBox in an other PC and all seems to work fine.

I guess I have to reinstall Tollbox in the system in which I am facing the   Error.

Thanks for Your Support

Regards 

Gopal Rathi. 

0 Kudos

124 Views
NXP Employee
NXP Employee

Hello @rathi_tg ,

I am glad it works, even if it is on a different machine

I don't suspect this is necessarily related to the toolbox installation. Have you deleted the system variable? If not, and just updated it to the 6.3 let's delete the path variable and let Matlab to set it's own compiler from the toolbox.

 

Hope this helps,

Marius

0 Kudos