error getting while running an application project

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

error getting while running an application project

8,512 Views
Anjalipurushothaman
Contributor III

This is the error iam getting while running a simple code in s32 design studio. 

IDE - S32DS 3.5

Evaluation board Board - s32k3x8evb-q289

0 Kudos
11 Replies

8,419 Views
jiri_kral
NXP Employee
NXP Employee

Hi,

you are trying run the target .elf file on your PC Machine - which is impossible. You probably create your project as a C/C++ Project instead of S32 Application Project: 

jiri_kral_0-1685789080630.png

 

For running it - you need to start debug session:

jiri_kral_1-1685789144591.png

 

 

0 Kudos

8,270 Views
Anjalipurushothaman
Contributor III

Okay will proceed with selecting c/c++ project.

Please do clarify on the path for GCC COMAND tab

0 Kudos

8,259 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

using the C/C++ project is the wrong way - that's why you get the error. Correct way is use New -> S32DS Application project: 

jiri_kral_0-1685962147926.png

As a next step choose your MCU: 

jiri_kral_1-1685962295824.png

 

This procedure configure all project settings for you. 

 

 

 

0 Kudos

8,245 Views
Anjalipurushothaman
Contributor III

I tried executing application project earlier, i can build a project but whiling running error iam getting is as attached. the board is getting detected but, in the run cnfiguration, twhile selecting open sda, com port is not showing. without selecting com port run is unsuccesful.

0 Kudos

8,191 Views
jiri_kral
NXP Employee
NXP Employee

Hi

Sorry, to be honest I really don't understand your situation. For testing target MCU code you need cross compiler (in this case gcc for ARM) and debug probe, which is able upload output binary into target device. On S32K344 it is integrated PE Micro FX Embedded. I have no experience with S32K358 board.

Can you please describe in more details your HW/SW setup? Which debug probe is present on your EVB? Looks that your Debug probe is recognized by OS, did you select the correct version in S32DS debug configurations? 

 

 

 

0 Kudos

8,140 Views
Anjalipurushothaman
Contributor III

the evb is s32k3x8EVB-Q289

Open SDA Debugger

12v external power 

software IDE- s32DS 3.5 (which supports s32k3xx series)

0 Kudos

8,501 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anjalipurushothaman 

We do not recommend using printf and scanf. It is suggested to use the UART to print information with the MCU into a console.

Even so, if it is possible to use them, for that you need to use lib C with the Debugger console:

VaneB_0-1685727223764.png

And the printf output is going to be shown in the Semihosting console.

 

B.R.

VaneB

 

0 Kudos

8,448 Views
Anjalipurushothaman
Contributor III

Traget processor option is not enabled here  , 

0 Kudos

8,439 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anjalipurushothaman 

If you run an example project you get the same problem?

0 Kudos

8,208 Views
Anjalipurushothaman
Contributor III

please find attached target processor not detecting

0 Kudos

8,229 Views
Anjalipurushothaman
Contributor III

yes, i do get the same error without selecting com port not abl to run

0 Kudos