Apr 20, 2021
01:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 20, 2021
01:18 AM
Hi,
I am using TriCore Eclipse IDE v6.3r1 to develop my software on an Aurix TC23x.
The compilation goes well, but at link time, I have the following error:
"ltc E157: cannot find address space 3 for section ".zdata.Mk_k_data.MK_initTestData" (89)"
I don't understand where this error comes from ?
The MK_initTestData variable declaration/definition is implemented as following:
mk_uint32_t MK_initTestData = MK_INITTEST_VALUE;
(if I remove this variable, then the same error occurs on another variable, even if it is not initialized)
I attached the link script file to this message (it has been provided to me ; I just modified it slightly).
Any help would be appreciated
I am using TriCore Eclipse IDE v6.3r1 to develop my software on an Aurix TC23x.
The compilation goes well, but at link time, I have the following error:
"ltc E157: cannot find address space 3 for section ".zdata.Mk_k_data.MK_initTestData" (89)"
I don't understand where this error comes from ?
The MK_initTestData variable declaration/definition is implemented as following:
mk_uint32_t MK_initTestData = MK_INITTEST_VALUE;
(if I remove this variable, then the same error occurs on another variable, even if it is not initialized)
I attached the link script file to this message (it has been provided to me ; I just modified it slightly).
Any help would be appreciated
2 Replies
Apr 20, 2021
06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 20, 2021
06:04 AM
Per Tasking's ctc_user_guide.pdf, zdata is __near data. Near data has to be in the first 16K of a segment.
Try making a group in the first 16K, and allocate zdata and zbss to that group.
Try making a group in the first 16K, and allocate zdata and zbss to that group.
Apr 20, 2021
06:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 20, 2021
06:14 AM
Thank for the answer. one of my colleague just told me the same thing
This widget could not be displayed.