ΣSigmaStudio Ask AI Русский Log in

SC58x boot from ROM (or Flash?)

Processors & DSP Hans3 Mar 11, 2016 00:00 2 replies Original on forum ↗
Subscribe
Hans3 Question
Mar 11, 2016 00:00

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?

sc589

spi boot

rom

Harshit.Gaharwar Reply
Mar 14, 2016 00:00

Hi,

When you are calling a ROM API to boot a second application from first application, then you need to make sure that there is no memory conflict between the two applications.

Once this is done, then using the ROM API code should work for your case.

In the Application Note EE-384, there is an example code to boot an application using SSL.

Please let us know if you have any further queries.

Thanks,

Harshit

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin