UBUNTU install S32DS issue

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

UBUNTU install S32DS issue

Jump to solution
2,772 Views
gravity_one
Contributor III

1.png

Dear FAE:

please help my issue!

BRS

grayli

0 Kudos
1 Solution
2,173 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

did you clean yout cmd3 project in windows machine, then import it in GUI, built it for first time in GUI? Makefile generated on windows machine doesn't work on Linux host 

pastedImage_1.png

Jiri

View solution in original post

25 Replies
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

S32DS requires Java 8. Open JDK is ok ( apt-get install openjdk-8-jre ). 

Hope it helps. 

Jiri 

0 Kudos
2,080 Views
gravity_one
Contributor III

hello,

i install SDK is fail,

help->install new software->path:S32DS_ARM_v2018.R1_UP10.zip

but SDK no SDK 3.0

i need S32K148 SDK 3.0

0 Kudos
2,080 Views
gravity_one
Contributor III

5.png

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately SDK is supported only by MS  Windows host system. Please see release notes:

pastedImage_1.png

Jiri

0 Kudos
2,080 Views
gravity_one
Contributor III

Dear Jiri,

thanks,i need work S32K148 in linux?

no use IDE,

how to build env,use bash?

Can you provide documentation?

or example?

BRS

grayli

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Here is build command for hello_clocks_s32k144 example wiht  default install paths:

./s32ds -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ~/workspaceS32DS.ARM.2018.R1 -import ~/workspaceS32DS.ARM.2018.R1/hello_clocks_s32k144/ -cleanBuild hello_clocks_s32k144/Debug

Be sure that you are launching this command from eclipse home - by default ~/NXP/S32DS_ARM_v2018.R1/eclipse 

parameters are:

-application -> eclipse managed builder

-data -> path to your S32DS workspace

-import -> path to your project 

-cleanBuild -> project name including configuration (Debug in this example) 

pastedImage_1.png

Hope it helps. 

Jiri 

0 Kudos
2,080 Views
gravity_one
Contributor III

hello,

issue 1:

   use example,build error!in linux

   file->new->S32DS project for example->hell_s32k144

   press [build]

issue 2:

   i use example in windows,

   copy to linux,

   into project.debug

   make

  i need modify what?

grayli

7.png

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the cc1 is normally present in ~/NXP/S32DS_ARM_v2018.R1/Cross_Tools/gcc-arm-none-eabi-4_9/lib/gcc-none-eabi.4.9.3  directory. Can you check if cc1 executable is persent? If not, try to re-install S32DS. 

The best way how to compile project from bash is using command mentioned above. It also generates makefile for project and calls correct compiler. By using just make in Debug folder - you need to specify path for arm-none-eabi-gcc in system environment. 

To produce .bin output you can  use

arm-none-eabi-objcopy -O binary  your_project.elf   "your_project.bin"

Jiri

0 Kudos
2,080 Views
gravity_one
Contributor III

hi,

The coding is done, but put it on ubuntu,

i think modif bash,then make,generate .BIN,

how to modif  bash?

9.png

A simple test was done, failed, and the generated .BIN was bad.

Can you give me an example? Like this

main.c

10.png

Everything else is SDK 3.0 standard file

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

It looks, that you build and link only main.c and startup_S32K148.S sources. The simpliest empty application also should contain startup.c and system_S32K148.c sources. 

Anyway, what's your goal? 

Jiri

0 Kudos
2,080 Views
gravity_one
Contributor III

13.png14.png

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

GET_CORE_ID is macro defined in s32_core_cm4.h header.

So, why you are not using generated makefile from project? With empty project is this file in Debug folder. My email address is jiri.kral@nxp.com 

Jiri

0 Kudos
2,080 Views
gravity_one
Contributor III

Using generated makefile from project, I try to modify makefile , but it fail.

Can you tell me how to modify about makefile from project?

 

1、add include "s32_core_cm4.h" on startup.c, but error

2、warning: cannot find entry symbol Reset_Handler; how to modify?

0 Kudos
2,080 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

The easiest way - in my opinion - if you for some reason don't like call s32ds in command line mode for building your project (https://community.nxp.com/thread/519285#comment-1241074) is create project in GUI for your target device and build it for first time (this also generates makefile with correct include paths): 

mstsc_2019-12-09_11-07-50.png

mstsc_2019-12-09_11-08-21.png

mstsc_2019-12-09_11-08-44.png

Then you can close S32DS and build project from command line: 

pastedImage_10.png

The supported gcc version is 6.3 - part of S32DS Installation. Easiest way is just add path to PATH env variable:

pastedImage_11.png

Jiri

0 Kudos
2,080 Views
gravity_one
Contributor III

pastedImage_1.png

0 Kudos
2,075 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

Finally got it. So - you are trying import SDK project from Windows to Linux where is no SDK supported, Am I right? 

So, it is possible, but you need to do some steps. First of all - you need stand alone version of SDK sources in your project: 

HOWTO: Use SDK based example code as standalone (usable for GIT, SVN...) 

After all is setup on Windows machine, clean project. Copy project to Linux machine. Import it into S32DS, built project in GUI (or build project by calling S32DS in command line mode mentioned above)  to get makefile and other settings. You can close S32DS. Now can be SDK based project built on Linux host by - make all - command: 

pastedImage_4.png

Hope it helps. 

Jiri 

0 Kudos
2,074 Views
gravity_one
Contributor III

hi,

i use other install  S32DS on linux, new project, into DEBUG ,"make" is sucessful .

1.png

but ,copy project form windows to linux,into DEBUG ,"make" is error.

2.png

0 Kudos
2,174 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

did you clean yout cmd3 project in windows machine, then import it in GUI, built it for first time in GUI? Makefile generated on windows machine doesn't work on Linux host 

pastedImage_1.png

Jiri

2,074 Views
gravity_one
Contributor III

hi,jiri

I solved the problem myself, modif makefile. 

Please ignore the email I sent you.

thanks

BRS

Grayli

0 Kudos
2,073 Views
gravity_one
Contributor III

hi,jiri

thanks for helping me.

use S32DS release on Linux, is sucessful.

other methods :arm-none-eabi-gcc, I'm trying to figure out why this failed.

Can you help me with this problem?

send source code to your e-mail.

BRS

Grayli

0 Kudos