Can I boot DSP in uboot? I tried the following steps but with no response.
1, Get test.out from CCS3.3 ( ISRAM : origin = 0x40200000, len = 0x10000 )
2, convert test.out to test.hex by using hex6x.exe ( I got 4 hex files this setp )
3, In uboot I load data of the 4 hex files to ram according to the addresses in hex files.
4, write boot address:0x4020 0000 to BOOTADDR(0x48002400) and then set the following registers to release DSP
/* Enable DSP-ss functional clock (set bit 0) CM_FCLKEN_IVA2*/
(*(int*)0x48004000) |= 0x1;
/* IVA clk is bypassed CORE clock/2 CM_CLKSEL1_PLL_IVA2*/
(*(int*)0x48004040) = (2<<19);
/* Enable IVA2 DPLL (low power mode bybass -> 5) CM_CLKEN_PLL_IVA2*/
(*(int*)0x48004004) = (1<<4) | (5<<0);
/* Release DSPMMU reset (clear bit 1) -> RM_RSTCTRL_IVA2 */
(*(int*)0x48306050) &= ~(1 << 1);
/* Set DSP boot mode to WaitInDeadLoop -> CONTROL_IVA2_BOOTMODE */
(*(int*)0x48002404) = 3;
/* Release DSP from reset (clear bit 0) -> RM_RSTCTRL_IVA2 */
(*(int*)0x48306050) &= ~(1 << 0);
In test.out I increase the value at address 0x81000000 . then I read value at 0x81000000 in Uboot but the value never changes.
Can anyone give me some advice? Thanks a lot.