Hello Champs,
BBB: connecting to external SPI flash
CCS; AM335X_StarterWare;
creating a new CCS project based on AM335X_StarterWare,
Project1: RBL project,
Project2: APP Project.
Adding software reset function in APP project
(*(void (*)(void))(0x40020000);// Memory Map: Boot ROM
But the code is not restarted.
Project1:
int main(void)
{
BlPlatformConfig(); // Configures PLL and DDR controller
ImageCopy(); // Copies application from spi flash to DDR
UARTPuts("Jumping to StarterWare Application...\r\n\n", -1);
/* Giving control to the application */
appEntry = (void (*)(void)) entryPoint;
(*appEntry)( );
return 0;
}
Project 2:
int SoftReset(void)
{
CacheDisable(CACHE_ALL);
IntMasterIRQDisable();
IntAINTCInit();
/// WdtSoftReset();
// (*(void (*)(void))(0x40000000))();
// (*(void (*)(void))(0x402F0400))();
// (*(void (*)(void))(0x40020000))();
// (*(void (*)(void))(0x402F0400))();
// ((void(*)(void))0x40020000)();
(*(void (*)(void))(0x40020000))();
for(;;);
return 0;
}
Thanks.
Rgds
Shine