Hello,
I am using BSP 6.14.00 for WinCE and OMAP3530 for my custom board. During boot from SD card, the code crashes during initialization of power management chip (TPS65930). I am able to narrow down to the following three lines of code located in the function InitT2PowerSequence(). The crash is gone when I comment them out.
OALTritonWrite(hTwl, TWL_P2_SW_EVENTS, 0x08); // P2 LVL_WAKEUP should be on LEVEL
OALTritonWrite(hTwl, TWL_P3_SW_EVENTS, 0x08); // P3 LVL_WAKEUP should be on LEVEL
OALTritonWrite(hTwl, TWL_P1_SW_EVENTS, 0x18); // P1 LVL_WAKEUP should be on LEVEL
Using the same SD card on the EVM3530, the crash does not happen. The EVM has TPS65950 instead of TPS65930 but according to my hardware guy, the chips are compatible.
There is a warning in the function OALPowerInit() (source file oem_pm.c) that calls InitT2PowerSequence() as below:
// If a UART is used during the basic intialization, the system will lock up.
// The problem appears to be cause by enabling domain power management as soon
// as the first device in the domain is initialized, instead of initializing all
// devices in domain before enabling domain autoidle. Since the system is single
// threaded when this function is called, the UART use during init is the only problem.
I tried both using and not using UART, the crash still occurs in both cases.
I would appreciate anyone's insights on this issue.
Thanks,
Luan