Error at link time - "ltc E157: cannot find address space 3 for section ".zdata.Mk_k

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User21656
Level 1
Level 1
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
0 Likes
3 Replies
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
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.
0 Likes
User21656
Level 1
Level 1
Thank for the answer. one of my colleague just told me the same thing
0 Likes

Have you solved this problem? I also have the same problem and don't know how to solve it

an_shuping_0-1694070394129.png

an_shuping_1-1694070420106.png

 

 

 

0 Likes