Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hello,
I've had quite a few issues with accessing data placed in bank4 and bank5 of OCRAM on AM263P launchpad recently, mainly when running through the CCS debugger.
I think one of the reasons is that the startup .gel file for AM263P setting up OCRAM (MSS_L2_Mem_Init) was only initialising the 1st 4 banks rather than all 6, by only writing 0xF (0b1111) to MSS_CTRL_L2IOCRAM_MEM_INIT rather than 0x3F (0b111111)
I have various programmes installed (CCS, CCS theia, Uniflash) and this seems to be the case for the MSS_L2_Mem_Init definition for all three cases:
For ccs2001:
For ccs theia:
For Uniflash:
So the fix there seems to be updating the register to 0x3F:
As the AM263P (with 6 banks of OCRAM) is based on the AM263 which had 4 banks of OCRAM it's obvious where this issue came from.
Similarly, in revision of the AM263P technical manual, there seem to be a few remaining references to 4 banks of OCRAM vs 6, for example page 217
Possibly also on page 1492:
Could someone check this?
Thanks