HighTec中TC397工程,链接调试没定义的引用'main'

公告

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

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

cross mob
kunsa
Level 1
Level 1
First question asked
c:/hightec/toolchains/tricore/v4.9.3.0-infineon-1.0/bin/../lib/gcc/tricore/4.9.4/crt0-tc39xx.o: In function `__remapped': (.startup_code+0x13e): error: undefined reference to `main' collect2.exe: error: ld returned 1 exit status makefile:137: recipe for target 'TC397_ForDebug.elf' failed make: *** [TC397_ForDebug.elf] Error 1 把core0_main.c中的core0_main()函数改成main()就能链接过了。问题是:整个工程中没找到哪里调用main函数。 有知道的麻烦给指点下,多谢!
0 点赞
5 回复数
User13396
Level 5
Level 5
crt0-tc39xx.c里面找找
0 点赞
小柯
Level 4
Level 4
First like received 50 replies posted 25 replies posted
可以去英飞凌协作平台寻找framework的例程。里面有写好的链接文件
0 点赞
Jenny123
Level 4
Level 4
First like received 25 comments on blog 10 comments on blog
一般还有一个cstart.C可能这个.C变了
0 点赞
独秀一郎
Level 5
Level 5
5 sign-ins Welcome! 50 comments on blog
在启动文件cstart.c文件里面。
0 点赞
郝_
Level 4
Level 4
100 replies posted 50 replies posted 25 replies posted
看cstart.c
0 点赞