如题
Shine:
请参考下面的链接。
downloads.ti.com/…/intro.html
Minister:
回复 Shine:
我想请问下,我基于维基创建的openmp,helloworld例程在6678上会出现跑飞,一般是什么原因呢processors.wiki.ti.com/…/OpenMP_on_C6000
环境:CCSV5.5,bios_mcsdk_02_01_02_06/omp_1_01_03_02,
[C66xx_0] A0=0x90000200 A1=0x90000200
A2=0x0 A3=0x8b
A4=0x9a011e1 A5=0x90000200
A6=0xe6dcd1db A7=0x0
A8=0x1844018 A9=0x1
A10=0x2 A11=0xa0194a84
A12=0x5b120b8b A13=0xc038964
A14=0x90000200 A15=0x0
A16=0x90000008 A17=0x8
A18=0x90000180 A19=0x40
A20=0x100 A21=0x2840b20
A22=0x0 A23=0x0
A24=0xa010e800 A25=0x28243138
A26=0xe8030280 A27=0x0
A28=0x47306097 A29=0xc03743c
A30=0x2 A31=0xa019205c
B0=0x1 B1=0x1
B2=0x1 B3=0xc028950
B4=0x90000200 B5=0xc038964
B6=0x0 B7=0x1
B8=0x1000 B9=0x0
B10=0x90000088 B11=0x0
B12=0x1 B13=0xc02a8c4
B14=0xa0194878 B15=0x828eb8
B16=0x0 B17=0x829018
B18=0xff B19=0x20
B20=0x20 B21=0xf583bb79
B22=0x602094a0 B23=0x91325fb1
B24=0x3110080 B25=0x46c77d12
B26=0x51400 B27=0xb38b3344
B28=0x618c06c1 B29=0x0
B30=0x21 B31=0x0
NTSR=0x1000f
ITSR=0xf
IRP=0xc00fc42
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0xe6dcd1dc
EFR=0x2 NRP=0xe6dcd1dc
Internal exception: IERR=0x18
Opcode exception
Resource conflict exception
ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0xe6dcd1dc, sp = 0x00828eb8.
To see more exception detail, use ROV or set 'ti.sys
Shine:
回复 Minister:
请问是自己的板子还是EVM板?板子跑其他的程序有问题吗?
请根据提示,用ROV看一下堆栈是否溢出了?
processors.wiki.ti.com/…/Runtime_Object_View_(ROV)
Minister:
回复 Shine:
是自己的板子,直接load程序进去,还没运行就在pc指针就在localfar段访问了个非法地址
Shine:
回复 Minister:
请问load简单的非openmp例程也会有这个问题吗?
Minister:
回复 Shine:
普通的不会,找到问题是定位到openmp包里面定义的platform文件内存段问题,原因未知
①omp_1_01_03_02\packages\ti\omp\examples\platforms\evm6678\platform.xdc里面定义的DDR3内存段是0x80000000-0xa0000000,MSMCSRAM_NOCACHE是0xa0100000 ~ 0xa0400000,修改成DDR3:0x80000000 ~ 0x90000000 ,MSMCSRAM_NOCACHE 0x90000000 ~ 0xa0000000即可正常使用运行,原因未知。我的ddr大小是1GB的,之前一直都是配置DDR3:0x80000000-0xB0000000都没问题,另外此处MSMCSRAM_NOCACHE必须紧贴DD3。
②我使用的omp_1_01_03_02这个包里面的MSMCSRAM_NOCACHE内存段和您上述的链接里面OMP_MSMC_NC_VIRT是相等的吗?
Minister:
回复 Shine:
DDR不修改,就修改MSMCSRAM_NOCACHE 0xB0000000 ~ 0xC0000000也能正常运行,好像是和ipc什么冲突了,另外,MSMCSRAM_NOCACHE的大小不是128K就足够了吗
Minister:
回复 Shine:
找到问题的所在了
Shine:
回复 Minister:
方便分享一下具体什么问题吗?