MCAL examples receiving SIGTRAP at startup on

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

MCAL examples receiving SIGTRAP at startup on

Jump to solution
889 Views
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

Tags (2)
0 Kudos
Reply
1 Solution
569 Views
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

View solution in original post

0 Kudos
Reply
8 Replies
775 Views
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 Kudos
Reply
824 Views
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 Kudos
Reply
815 Views
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 Kudos
Reply
808 Views
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 Kudos
Reply
770 Views
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 Kudos
Reply
728 Views
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

Tags (2)
0 Kudos
Reply
570 Views
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 Kudos
Reply
556 Views
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

 


 

 

Tags (2)
0 Kudos
Reply