error getting while running an application project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error getting while running an application project

8,586件の閲覧回数
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 件の賞賛
11 返答(返信)

8,493件の閲覧回数
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 件の賞賛

8,344件の閲覧回数
Anjalipurushothaman
Contributor III

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

Please do clarify on the path for GCC COMAND tab

0 件の賞賛

8,333件の閲覧回数
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 件の賞賛

8,319件の閲覧回数
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 件の賞賛

8,265件の閲覧回数
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 件の賞賛

8,214件の閲覧回数
Anjalipurushothaman
Contributor III

the evb is s32k3x8EVB-Q289

Open SDA Debugger

12v external power 

software IDE- s32DS 3.5 (which supports s32k3xx series)

0 件の賞賛

8,575件の閲覧回数
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 件の賞賛

8,522件の閲覧回数
Anjalipurushothaman
Contributor III

Traget processor option is not enabled here  , 

0 件の賞賛

8,513件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Anjalipurushothaman 

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

0 件の賞賛

8,282件の閲覧回数
Anjalipurushothaman
Contributor III

please find attached target processor not detecting

0 件の賞賛

8,303件の閲覧回数
Anjalipurushothaman
Contributor III

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

0 件の賞賛