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!
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...
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!
-----------------------------------------------------------------------------------------------------------------------