与此同时,我在我的代码中尝试了类似的例子。
我有一个声明如下的函数:
__attribute __((section('.ramcode')))static int32_t CoreFlashIntegrityTest(void)
根据spc5Studio示例,“ramcode”部分在链接器文件中定义。
当我构建项目时,我从链接器获取此错误消息:
core_test.c :(。text_vle.CorePost + 0x30):错误:重定位被截断以适合:R_PPC_VLE_REL24对`.ramcode'
collect2:ld返回1退出状态任何人都可以告诉我发生了什么,这里?
我已经完成了一个小网页搜索,看起来它无法满足我将代码放入RAM的请求,因为区域地址不适合为地址位移保留的数字fof位(在这种情况下为24)。 。)
无论如何,我没有关于如何解决这个问题的线索。
谢谢。
问候
亚历山德罗
以上来自于谷歌翻译
以下为原文
In the meanwhile I tried to something like example, in my code.
I got a function declared like this:
__attribute__ ((section ('.ramcode'))) static int32_t CoreFlashIntegrityTest( void )
The section 'ramcode' is defined in the linker file, as per the spc5Studio example.
When I build the project I get this error message, from the linker:
core_test.c:(.text_vle.CorePost+0x30):error: relocation truncated to fit: R_PPC_VLE_REL24 against `.ramcode'
collect2: ld returned 1 exit statusCan anyone tell me what's going on, here?
I've done a litlle web-search and it looks like it's not able to fullfil my request of placing the code to RAM, since the section address does not fit in the number fof bits reserved for address displacement (24, in this case..)
I have no clues on how to fix this, anyway..
Thank you.
Regards
Alessandro