MCAL examples receiving SIGTRAP at startup on

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

MCAL examples receiving SIGTRAP at startup on

跳至解决方案
1,033 次查看
pba_lcx
Contributor II

Hello all,

I am using the S32K3X4EVB-T172, connected through USB - OpenSDA (J40) and with +12V power supply.

I installed s32DS 3.6.0, Platform_Software_Integration_S32K3XX and SW32K3_S32M27x_RTD_R21-11_5.0.0.

I tried examples from S32K3XX Autosar R21-11 RTD 5.0.0, in particular the example Port_Example_s32k344.

After building and launching the code, the user led lights red (as coded in the example) but the program immediately suspends with the SIGTRAP, as seen in screenshot.

Capture.PNG

 

I have the same SIGTRAP problem with the example Uart_Example_S32K344 which also uses MCAL .

I don't have the problem when I try the example Siul2_Port_Ip_Example_S32K344 which does not use MCAL. I can run this example perfectly.

 

Can you help me understand why this SIGTRAP appears in MCAL examples ?

 

Thanks
Pierre

标记 (2)
0 项奖励
回复
1 解答
713 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

try to change jumper setting, one of below
-set VDD_HV_A to 3.3V using J18.2-3.
-source V15_MCU from ballast transistor using J31.2-3.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
8 回复数
919 次查看
pba_lcx
Contributor II

Hello,

I add a screenshot with the live content of the register MC_RGM

pba_lcx_0-1745911275971.png

BR, Pierre

0 项奖励
回复
968 次查看
pba_lcx
Contributor II

Adding complementary info on my post:
I use the unmodified example project "Port_Example_S32K344".

I have this warning when I open example_Port.mex for the first time

pba_lcx_0-1745824951597.png

I didnt modify the debug pins set in "UnTouchedPortPin" in Peripherals menu.

 

And when the SIGTRAP interrupt triggers, i have the following content inside the MC_RGM registers :

pba_lcx_2-1745825104718.png

pba_lcx_1-1745825099507.png


I am stuck here, I can't run the MCAL example.

Any help would be appreciated.

Pierre

0 项奖励
回复
959 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tried that example and it worked fine with same SW/HW.
Red LED blinks few time and main left finally and code stops at

 

PetrS_0-1745839951638.png

What if you modify main code to not leave it, let LED blinks forever.

BR, Petr

0 项奖励
回复
952 次查看
pba_lcx
Contributor II


Hi Petr,

No change with an infinite loop.

The SIGTRAP interrupt happens after 1 or 2 or 3 blinks of the led. So the program end was not reached.
0 项奖励
回复
914 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

can you share your full project with elf as well so I can test.
Also share board picture to check jumper setting you have.

BR, Petr

0 项奖励
回复
872 次查看
pba_lcx
Contributor II

Hello Petr,

Here is my example project. It has the sigtrap error when i compile and program on the eval board.

Also here is a photo of my eval baord. As far as I can tell, the jumpers are still in their default position.

20250430_150525.jpg

 

BR,

Pierre

标记 (2)
0 项奖励
回复
714 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

try to change jumper setting, one of below
-set VDD_HV_A to 3.3V using J18.2-3.
-source V15_MCU from ballast transistor using J31.2-3.

BR, Petr

0 项奖励
回复
700 次查看
pba_lcx
Contributor II

hi Petr,

the solution to my problem was to "source V15_MCU from ballast transistor using J31.2-3."

When i do this I dont have the interrupt SIGTRAP I previously saw and can run the example perfectly.

Thanks for the solution.

 

Note:

The first part doesnt work:   "set VDD_HV_A to 3.3V using J18.2-3". I can't program the evb and I ave the following message 

pba_lcx_0-1746533878794.png

 


 

 

标记 (2)
0 项奖励
回复