公告

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

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

cross mob
撸起袖子
Level 1
Level 1
Welcome! 5 replies posted First question asked
在开发flashdriver的时候遇到这个问题:ltc E121: relocation error in "task1": relocation value 0x8022e842, type rel24 or abs24, offset 0x54, section ".text.flashdriver.function" at address 0x70100170 is not a valid address in R_TRICORE_24REL. Hint: check the mapfile for a section that occupies this address. 尝试了几次后感觉是PSPR中的代码不能使用地址为0x802xxxxx的函数,有大神知道这是为什么吗?
0 点赞
1 解答
Jeremy_Zhou1
Level 4
Level 4
5 solutions authored First solution authored First like received
关于Flash的例程,请参考:iLLD 库

在原帖中查看解决方案

0 点赞
4 回复数
撸起袖子
Level 1
Level 1
Welcome! 5 replies posted First question asked
编译器是tasking,芯片是TC397
0 点赞
逐见
Level 1
Level 1
Welcome!
0 点赞
撸起袖子
Level 1
Level 1
Welcome! 5 replies posted First question asked
是PSPR中的code调用Pflash中的函数时,地址偏移太远了导致的。 在TASKING编译器的手册中有这样一句话:Functions are by default called with a single word direct call. However, when you link the application and the target address appears to be out of reach (+/- 16 MB from the call or j instruction), the linker generates an error. In this case you can use the __indirect keyword to force the less efficient, two and a half word indirect call to the function:
0 点赞
Jeremy_Zhou1
Level 4
Level 4
5 solutions authored First solution authored First like received
关于Flash的例程,请参考:iLLD 库
0 点赞