公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
dvshi
Level 1
Level 1
Distributor
First reply posted First question asked 10 sign-ins

因为我想创建一个单核运行的工程,那我在修改TC38x工程的lsl文件时,删除了tc0-tc2相关的内容,只保留tc3的内容,编译发现在默认space_id_offset = 400时会报错,报错信息如下:

ltc F019: unrecoverable error: caught unknown exception

ltc E100: unexpected error: Fatal error occurred
make: *** [makefile:76: TC377_PinMap.elf] Error 1

"make --output-sync -j8 all" terminated with exit code 2. Build might be incomplete.

 

但是,如果修改为space_id_offset = 300,编译就成功了 。

 

请问,space_id_offset 在lsl的解释文件里的描述是:

The address spaces in each imported core must have a unique ID in the link task. With the keyword
space_id_offset you specify for each imported core that the space IDs of the imported core start
at a specific offset.

 

那么,它的具体设置范围是多少呢?或者说,有什么规则来指示它应该如何设置才是正确的呢?

0 点赞
1 回复
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

单核的 工程可以参考334的,没有找到这个的定义,请看这段代码:

    core tc0
    {
        architecture = TC1V1.6.2;
        space_id_offset = 100;            // add 100 to all space IDs in the architecture definition
        copytable_space = vtc:linear;     // use the copy table in the virtual core for 'bss' and initialized data sections
    }
        

https://github.com/Infineon/AURIX_code_examples/blob/master/code_examples/ADC_Filtering_1_KIT_TC334_...

0 点赞