MBDT Code in S32DS

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

MBDT Code in S32DS

2,030 次查看
Sam_ECU
Contributor V

Hello,

I'm attempting to debug in S32DS with MBDT generated code.  I can import the xml into S32DS without issue and build the model. But when attempting to debug the build I receive the error below.  How to resolve?

Sam_ECU_0-1646242925650.png

 

Which is the correct Debug to use?

Sam_ECU_1-1646243071258.png

It's all quite different to the documentation I can find:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Build-a-Project-and-Setup-a-Debu...

 

Is there documentation to show how to debug simultaneously using Freemaster and S32DS together (from MBDT) to resolve Runtime errors?

0 项奖励
回复
4 回复数

1,871 次查看
Sam_ECU
Contributor V

Hello @mariuslucianand @Daniel_Popa 

Could you please help me out with this issue.  I try to follow the information here:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Build-a-Project-and-Setup-a-Debu...

and here:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-export-Generated-Code-to-S32-Des...

I can import the code.  I can build the code:

Sam_ECU_0-1649611940060.png

But when I try and debug:

Sam_ECU_1-1649611969908.png

I get the issue below:

Sam_ECU_2-1649611990824.png

Here are my settings (with S32K144 EVB):

Sam_ECU_3-1649612087347.png

 

Sam_ECU_4-1649612132220.png

And after clicking "Debug", I get the message below:

Sam_ECU_5-1649612196574.png

 

0 项奖励
回复

1,862 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @Sam_ECU,

The .elf file, which the debugger is trying to write into the MCU Flash memory is not selected in the C/C++ Application field of the below configuration. This is why you get the following error:

mariuslucianand_1-1649619570968.pngmariuslucianand_0-1649619413909.png

The debugger configuration can be automatically created when the code is imported by following the below procedure:

mariuslucianand_2-1649620179722.png

mariuslucianand_3-1649620258316.png

Now, after you have built the project, in the associated Debug configuration, you will see that under the C/C++ Application, the resulted .elf file of the Build process will be selected there.

mariuslucianand_4-1649620435088.png

If the .elf is still missing, you shall Build the project, go to Debug Configuration, and press the "Search Project" button. Select the .elf file, and the debugger shall be able to flash your binary file.

mariuslucianand_5-1649620640156.png

Hope this helps,

Marius

 

 

 

标记 (1)
0 项奖励
回复

1,852 次查看
Sam_ECU
Contributor V

That works, cheers.

0 项奖励
回复

1,995 次查看
Sam_ECU
Contributor V

Hello,

 

Could someone please help me with the issue.

 

Cheers.

0 项奖励
回复