Other Parts Discussed in Thread: OMAP-L138
We changed dsp chip from TMS320C6748BZWT4 to TMS320C6748EZWTD4E , new chip is a secure part.
In TMS320C6748BZWT4, We have program 1 and program 2:
1. program 1 is a boot program, it load data from FLASH(address 64K) , the data is bin file of program 2 . and parse the data.
copy each section to RAM . get program2's entryPoint and jump to entryPoint to start program2 as below:
appEntry = (void (*)(void)) entryPoint;
(*appEntry)( );
2. program 1 is a APP program.
3. use AISGen tool to generate program 1 AIS bin file; use out2rprc tool to generate program 2 app bin file.
4. combine AIS bin file and app bin file in a file, 0-64K space is AIS bin file , and 64K- xxx is app bin file.
5. then burn the combined to flash, DSP start from SPI0 FLASH.
6. DSP works normally.
Now dsp chip is TMS320C6748EZWTD4E.
I did the following work:
1. use SecureHexAIS_OMAP-L138 tool to generate a secure AIS bin file;
2. use out2rprc tool to generate program 2 app bin file.
3. combine AIS bin file and app bin file and burn flash as above.
4. When start DSP, program 1 start normally, but program 2 can't start.
How should I do to make program 2 workinng?
[GENERAL]
; Can be 8 or 16 - used in emifa (NOR boot mode)
busWidth=8
; SPIMASTER,I2CMASTER,EMIFA,NAND,EMAC,UART,PCI,HPI,USB,MMC_SD,VLYNQ,RAW
BootMode=SPIMASTER
; TRUE/ON or FALSE/OFF
seqReadEn=ON
; NO_CRC,SECTION_CRC,SINGLE_CRC
crcCheckType=NO_CRC
[SECURITY]
securityType=GENERIC
bootExitType=NONSECURE
encryptSections=ALL
encryptionKey=4A7E1F56AE545D487C452388A65B0C05
genericSHASelection = SHA256
;genKeyHeaderFileName=key_hdr_sha256_enc.bin
[TAPSCONFIG]
TAPSCFG = 0x0000FFFF
[PLL0CONFIG]
PLL0CFG0 = 0x00100000
PLL0CFG1 = 0x00000208
[PLL1CONFIG]
PLL1CFG0=0x18010001
PLL1CFG1=0x00000002
[EMIF3DDR]
PLL1CFG0=0x18010001
PLL1CFG1=0x00000002
DDRPHYC1R=0x000000C4
SDCR=0x00134622
SDTIMR=0x1C9129C9
SDTIMR2=0x3E121220
SDRCR=0x00000407
CLK2XSRC=0x00000000
; This section should be used to setup the power state of modules
; of the two PSCs. This section can be included multiple times to
; allow the configuration of any or all of the device modules.
; |------24|------16|-------8|-------0|
; LPSCCFG: | PSCNUM | MODULE | PD | STATE |
[PSCCONFIG]
LPSCCFG = 0x00040003
[PSCCONFIG]
LPSCCFG = 0x01030003
[PSCCONFIG]
LPSCCFG = 0x01040003
[PSCCONFIG]
LPSCCFG = 0x010A0003
[PSCCONFIG]
LPSCCFG = 0x010C0003
[PSCCONFIG]
LPSCCFG = 0x010C0003
[PSCCONFIG]
LPSCCFG = 0x011F0003
[PINMUX]
REGNUM=1
MASK=0xFF000000
VALUE=0x88000000
[PINMUX]
REGNUM=3
MASK=0x0000FFFF
VALUE=0x00001101
[PINMUX]
REGNUM=4
MASK=0x0000FFFF
VALUE=0x00002210
[PINMUX]
REGNUM=5
MASK=0x00FFFFFF
VALUE=0x00110110
[PINMUX]
REGNUM=13
MASK=0xFFFFFFFF
VALUE=0x22222222
[PINMUX]
REGNUM=14
MASK=0xFFFFFFFF
VALUE=0x22222222
[PINMUX]
REGNUM=15
MASK=0xFFFFFFFF
VALUE=0x22222222
[PINMUX]
REGNUM=16
MASK=0x000000FF
VALUE=0x00000022