KCC's Quizzes AQQ305 about a mutual exponentiation equation
1. Quote of the month: "A train station is where a train stops. A bus station is where a bus stops. I have a work station on my desk, so..." - unknown
2. Quiz AQQ305 about finding a mutual exponential equation
Good luck, and try to be among the
View All
October Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Finding Your Circuit Chi — EMC Quiz!
Think you know EMC? Test your knowledge with our 5-question quiz!
Read the blog first, then take the challenge: Finding Your Circuit Chi
Every current flowing creates electromagnetic fields.
Strong EMC design
View All
ADSP-21593
Recommended for New Designs
Reaching speeds of up to 1 GHz, the ADSP-2159x processors are members of the SHARC® family of products. The ADSP-2159x processor is a dual-SHARC+® core...
Datasheet
ADSP-21593 on Analog.com
ADSP-21565
Recommended for New Designs
Reaching speeds of up to 1 GHz, the ADSP-2156x processors are members of the SHARC® family of products. The ADSP-2156x processor is based on the SHARC...
Datasheet
ADSP-21565 on Analog.com
I have been working with ADSP-21593 and I can generate ldr files that properly boot from the start of a spi flash. My question is how can I boot a different ldr that is saved from a different starting address of the spi flash.
In a previous inquiry years back, I have been asking how to do this same step with ADSP-21565 and 21569. I got the following code from ADI.
// This is a formula provided by ADI.
// For SSL make sure that stack of the primary application does not coincide with that of secondary booting application.
// One way to do this is to remap the stack of the primary application to Boot ROM stack space dynamically before calling the ROM API.
// This is done in the following code snippet. Also cache is disabled for the 8KB region used by the ROM.
*pREG_SHL1C0_CFG2|=0xF00 ;
*pREG_SHL1C0_RANGE_START4 = 0x200FE000 ;
*pREG_SHL1C0_RANGE_END4 = 0x200FFFFF ;
asm("#include <sys/def215xx_core.h>");
asm("IRPTL = 0;");
asm("MMASK = BITM_REGF_MMASK_BR8|BITM_REGF_MMASK_BR0|BITM_REGF_MMASK_IRPTEN|BITM_REGF_MMASK_ALUSAT|BITM_REGF_MMASK_TRUNCATE|BITM_REGF_MMASK_PEYEN|BITM_REGF_MMASK_BDCST9|BITM_REGF_MMASK_BDCST1;");
asm("IMASK = BITM_REGF_IMASK_EMUI|BITM_REGF_IMASK_RSTI|BITM_REGF_IMASK_PARI|BITM_REGF_IMASK_ILOPI|BITM_REGF_IMASK_CB7I|BITM_REGF_IMASK_IICDI|BITM_REGF_IMASK_SOVFI| BITM_REGF_IMASK_ILADI; nop;");
asm("B7 = 0x200FF400;\
I7 = ((0x200FF400 + 0xc00 - 1)-((0x200FF400 + 0xc00 - 1) % 4) );\
L7 = (( 0xc00 - ((0x200FF400 + 0xc00 - 1) % 4) )/4);\
B6 = B7;\
I6 = I7; \
L6 = L7;");
// Configuring the SPU secureP registers for boot peripheral to do secure access to memory
*pREG_SPU0_SECUREP110= 0x3; //MDMA0_SRC
*pREG_SPU0_SECUREP111= 0x3; //MDMA0_DST
*pREG_SPU0_SECUREP77 = 0x3;
*pREG_SPU0_SECUREP78 = 0x3;
*pREG_SPU0_SECUREP81 = 0x3;
// ROM API Call which can be invoked based on some conditions /
// boot_image_starting_address = 0x030000;
adi_rom_Boot( boot_image_starting_address,0,0,0,0x10202);//
NOP;
while(1); // at this point it should have booted from flash memory.
Note that the code above works and thank you again for that.
Now I am trying to translate it to 21593 code base and if I use the same code, it would not boot a tested ldr placed on a known spi address offset.
Please let me know if there are adjustments in the code that I should add knowing that the memory boundaries might be a little different since
21593 is dual core and other aspects that I may not know.
Thank you in advance.
EE
Hi,
Please find the ADSP-21593 SSL example available in the below mentioned Ezone link. Please use this code as a reference and modify as per your requirement.
https://ez.analog.com/dsp/sharc-processors/w/documents/18506/ssl-example-for-adsp-21593
Please let us know if you need further assistance on this.
Regards,
Nandini C
Hi,
Please find the ADSP-21593 SSL example available in the below mentioned Ezone link. Please use this code as a reference and modify as per your requirement.
https://ez.analog.com/dsp/sharc-processors/w/documents/18506/ssl-example-for-adsp-21593
Please let us know if you need further assistance on this.
Regards,
Nandini C