我在一个例程上面修改的程序,发现编译链接都没有问题,但是就是运行的时候不能进入main()函数。我查了资料,说是DSP的启动方式应该是c_int00、BIOS_init然后再是main()函数,但是前两个应该怎么进行调试?或者不能进入main()函数可能会是什么情况?还请各位大神指教,小弟不甚感激!谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我没有另外加上函数库,会不会是加上了XDC工具之后自动调用的?错误比较多,好像都是重复定义,地址有冲突的问题。。。还请指教。。
>> error: symbol _c_int00 is defined multiple times: boot.o64P
(C:\dvsdk_1_11_00_00\xdc_2_95_02\packages\ti\targets\rts6000\lib\boot.a64P) and boot.o64P (C:/CCStudio_v3.3/bios_5_31_08/packages/ti/bios/lib/bios.a64P)
>> error: symbol __stack is defined multiple times: boot.o64P
(C:\dvsdk_1_11_00_00\xdc_2_95_02\packages\ti\targets\rts6000\lib\boot.a64P) and boot.o64P (C:/CCStudio_v3.3/bios_5_31_08/packages/ti/bios/lib/bios.a64P)
>> error: memory types IRAM and CACHE_L2 on page 0 overlap
>> error: memory types L1DSRAM and L1DSRAM on page 0 overlap
>> error: memory types SRAM and SRAM on page 0 overlap
>> error: memory types DDR2 and DDR2 on page 0 overlap
>> warning: creating output section $build.attributes without SECTIONS
specification
>> error: can't allocate .L1DSRAM$heap, size 00010000 (page 0) in L1DSRAM
(avail: 0000c000)
>> error: can't allocate .text:2, size 00005aa0 (page 0) in IRAM (avail:
00000000)
>> error: errors in input -
C:/dvsdk_1_11_00_00/NDKDemo-original/debug/NDKDemo.out not built
现在的问题主要就是上面两个有关于 _c_int00与__stack重复定义的问题。。。 有关于这两个重复定义的问题暂时还没有解决。。。请指教!
>> error: symbol _c_int00 is defined multiple times: boot.o64P
(C:\dvsdk_1_11_00_00\xdc_2_95_02\packages\ti\targets\rts6000\lib\boot.a64P) and boot.o64P (C:/CCStudio_v3.3/bios_5_31_08/packages/ti/bios/lib/bios.a64P)
>> error: symbol __stack is defined multiple times: boot.o64P
(C:\dvsdk_1_11_00_00\xdc_2_95_02\packages\ti\targets\rts6000\lib\boot.a64P) and boot.o64P (C:/CCStudio_v3.3/bios_5_31_08/packages/ti/bios/lib/bios.a64P)
>> warning: creating output section $build.attributes without SECTIONS
specification
>> error: errors in input -
C:/dvsdk_1_11_00_00/NDKDemo-original/debug/NDKDemo.out not built
>> Compilation failure