Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
I'm using an assembly file to setup CSM settings for 28388D. After changing the GRABSECT/GRAMRAM values, my application stopped working once the file was programmed. Note, I have used this file to lock the JTAG and develop CSM logic, but I am having problems with allocating memory to zones and still having my firmware work.
I used the following settings. Is this correct for the 28388D? I'm testing using the development kit. The CSM passwords are default values.
---
.sect "dcsm_zsel_z1"
.retain
.long 0xFFFFFFFF ;Z1 OTP CSM PSWD 0 (LSW of 128-bit password)
.long 0x4D7FFFFF ;Z1 OTP CSM PSWD 1
.long 0xFFFFFFFF ;Z1 OTP CSM PSWD 2
.long 0xFFFFFFFF ;Z1 OTP CSM PSWD 3 (MSW of 128-bit password)
;// Set Grab Flash Sectors and RAM for Zone Select Block 1 (repeating 01 bits = 0x5 (0101))
;// See Table 6-1 in 2838x TRF
.long 0x05555555 ;Z1 OTP GRABSECT 1 (CPU1 Flash sectors 0 to 13)
.long 0x05555555 ;Z1 OTP GRABSECT 2 (CM Flash sectors 0 to 13)
.long 0x05555555 ;Z1 OTP GRABSECT 3 (CPU2 Flash sectors 0 to 13)
.long 0x00055555 ;Z1 OTP GRABRAM 1 (CPU1 D1, D0, LS7-LS0 RAMs)
.long 0x55555505 ;Z1 OTP GRABRAM 2 (MSG + CM C1 and C0 RAMs)
.long 0x00055555 ;Z1 OTP GRABRAM 3 (CPU2 D1, D0, LS7-LS0 RAMs)
---
Note, that there were 2 .retain lines right after the .sect line. I fixed this, but I want to ensure that everything is going in Zone Block 1 for now to ensure that this was not the only mistake.