SIGTRAP with freertos hello world example on IMX7D Cortex M4

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

SIGTRAP with freertos hello world example on IMX7D Cortex M4

1,033 Views
bonus
Contributor II

Hi,
To start developpement on IMX7D Cortex M4, I try to run freeRTOS hello world example. I'm working with KDS 3.2.0, to generate and debug this program. I use a JLink Pro probe connected to JTAG to debug.
My problem is a systematic sigtrap while executing "svc 0" line in prvPortStartFirstTask() called in vTaskStartScheduler().
I'm working in TCM memory with this Memory Configuration

Name             Origin                Length             Attributes
m_interrupts   0x1fff8000       0x00000240     xr
m_text            0x1fff8240       0x00007dc0      xr
m_data           0x20000000    0x00008000     rw
*default*          0x00000000    0xffffffff

I check vector table SVC_Handler address is correctly placed in this table and is coherent with the map file.
The MSP value read seems correct = 0x20007FFC
My breakpoint in SVC_Handler is not reached.
What's wrong? Does someone have an idea?
thanks!

Labels (1)
0 Kudos
2 Replies

682 Views
bonus
Contributor II

thanks Igor,

yes, indeed the problem seems to come from JLink as I launch the hello_world.bin from uboot and it works.

I've tried to change configuration inputs as mentionned in the topic, but in KDS inputs are differents, and it doesn't solve my problem... I will look in this direction...

0 Kudos

682 Views
igorpadykov
NXP Employee
NXP Employee

Hi Benoit

this may be caused by some specific jlink issues like described on

Debugging cortex-m3 in GDB with J-Link causes SIGTRAPs - EmbDev.net 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos