Hi,
I'm trying to move a significant portion of our program code from the default .text section in Shared L2SRAM to custom sections in DDR and encounter Fetch Packet Exception, Op-Code Exception and Resource Conflict Error when I try to run the compiled project. These errors appear limited to instances where code in the .text section calls code in DDR and error usually occurs on the first 1-3 execute packets after the branch.
An example of one of the FP errors is shown below:
[C64XP] A0=0x1 A1=0x0
A2=0x0 A3=0x1
A4=0x80f064 A5=0x80f0f8
A6=0x8027 A7=0xff00
A8=0x264eec A9=0x0
A10=0x0 A11=0x0
A12=0x0 A13=0x0
A14=0x0 A15=0x0
A16=0x8023c4 A17=0x0
A18=0x802394 A19=0x20
A20=0x20000000 A21=0x894fbba5
A22=0xe1819812 A23=0x0
A24=0xffffffff A25=0x400
A26=0x80000000 A27=0x1
A28=0x803ee0 A29=0xe
A30=0x803ed4 A31=0x206c40
B0=0x1 B1=0x0
B2=0x0 B3=0xe7e25518
B4=0x80d78c B5=0xe7e49c20
B6=0x801c38 B7=0xe7e30250
B8=0x802550 B9=0xe7e30250
B10=0x0 B11=0x0
B12=0x0 B13=0x0
B14=0x811530 B15=0x802968
B16=0xfbe00000 B17=0xa00
B18=0x0 B19=0x0
B20=0x69 B21=0xffffffff
B22=0xf B23=0x0
B24=0x0 B25=0x80
B26=0xa20100 B27=0x60
B28=0x40 B29=0x80eabc
B30=0x80eabc B31=0x80232c
NTSR=0x1020f
ITSR=0x20d
IRP=0x2884e4
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0xe822d140
EFR=0x2 NRP=0xe822d140
Internal exception: IERR=0x2
Fetch packet exception
With the last execute packet being the following:
This code is in a read-only section so it's unlikely to be an errant data pointer corrupting program memory. I've also aligned each custom codesection to 8-byte boundaries. Any advice would be greatly appreciated!
