Hello,
We are using the C6748 device and CCS V5 with Code Generation Tools V7.3.8. Target: C6748 LCDK
I would like to cut L1P memory in two halfs: lower range for SARAM (for fast algos) higher range for L1P cache.
I do the following:
1. System reset
2. Disconnect target
3. Connect target (--> GEL file initializes DDR and PLL's)
4. Load my code with "Load program..."
Now I can see that L1PMODE is set to 4 (32K for cache) . I have tried a lot of ways to copy my code into the lower section of L1P memory. In vain so far.
The last try was to use "copy_in". With this the code compiled and linked but no copy occured.
Can someone tell me what steps I have to do at the start of my code to get the code copy work?
At this time my code looks like this:
void main(void)
{
CacheDisableMAR((unsigned int)0xC0000000, 0x08000000);
// Enable Cache
CacheEnable(L1PCFG_L1PMODE_16K | L1DCFG_L1DMODE_32K | L2CFG_L2MODE_256K);
// Kopieren des Code Blocks, welcher im L1P SARAM ausgeführt werden muss
copy_in(&text_ZeroWait_copy_table);
// MAR Bits setzen um den Cache für DDR RAM freigeben
CacheEnableMAR((unsigned int)0xC0000000, 0x08000000);
linker cmd file looks like this:
L1P: o = 0x11E00000 l = 0x00008000
L1D: o = 0x11F00000 l = 0x00008000
L2: o = 0x11800000 l = 0x00040000
DDR2: o = 0xC0000000 l = 0x08000000
.text_ZeroWait : LOAD=DDR2, table (_text_ZeroWait_copy_table),
RUN=L1P
Thanks
Best regards,
Patrick