AnsweredAssumed Answered

SC58x boot from ROM (or Flash?)

Question asked by Hans3 on Mar 11, 2016
Latest reply on Mar 14, 2016 by Harshit.Gaharwar

Using EVAL-SC589-EZLITE kit, a program successfully loaded and ran; but after boot up it does not load and run the program. I'm trying to use the flash memory to load the program and boot from it. I read document EE-384; but, the following program in this document did not work:

void * adi_rom_Boot(void *pAddress, uint32_t flags, int32_t blockCount,

ROM_BOOT_HOOK_FUNC * pHook, uint32_t dbootcommand);

int main(int argc, char *argv[])

{

adi_initComponents();

/* Configure secure peripheral register to do secure accesses to memory */

/* Secure peripheral register for SPI2_Rx_DMA */

*pREG_SPU0_SECUREP106= 0x3;

/*Secure peripheral register for MDMA0_SRC */

*pREG_SPU0_SECUREP88= 0x3;

/*Secure peripheral register for MDMA0_DST */

*pREG_SPU0_SECUREP89= 0x3;

/* Call ROM API to boot via SPI2 configured for memory-mapped mode of operation */

adi_rom_Boot(0x60000000,0,0,0,0x207);

return 0;

}

Is there an example showing the procedure?

Outcomes