Hi,
I'm building my own bootloader for my own hardware, working from the Starterware
bootloader for the evmskAM335x, and code execution is not getting through the
WDT disable sequence in BlPlatformConfig():
HWREGL(WDT_1_REGS + WDT_WSPR) = (unsigned long)0xAAAA;
while(HWREGL(WDT_1_REGS + WDT_WWPS) != 0x00);
HWREGL(WDT_1_REGS + WDT_WSPR) = (unsigned long)0x5555;
while(HWREGL(WDT_1_REGS + WDT_WWPS) != 0x00);
It hangs on the first line.
I found
WatchdogTimer1ModuleClkConfig();
and WatchdogTimerReset(WDT_1_REGS);
in Starterware, and put them in before the four disable lines.
Then it hangs on
HWREGL(baseAdd + WDT_WDSC) |= WDT_WDSC_SOFTRESET;
the first line in WatchdogTimerReset();
These are the first lines of code in my new bootloader, in BlPlatformConfig(),
called from main(). I don't have "ConfigVddOpVoltage();" in there first, nor am
I using any bl_init asm. According to measurements, I have all my voltages on my
board.
Any ideas why I get these hangs?