Hi, Can anybody give me a example C code about how to configure SHARC SPI slave boosting.
Hi Lee,Apologies for the delay.Please find the attached SPI slave booting code for ADSP-21479 processor. This code can be tested across two ADSP-21479 EZ-Kits, where one can be configured as host processor that sends the loader file and other can be act as slave that boots upon receiving the loader file from the Host. The interconnection is as follows.
Please make sure that you generate the LDR file format as 'include 32 bit'.For more information, please refer the 'Slave boot mode' section (Page #: 915/1304) in the ADSP-214xx Hardware reference manual.www.analog.com/.../ADSP-214xx_hwr_rev1.1.pdf Also, I suggest you to refer the application note(EE-177) and its associate code example in the link given below.www.analog.com/.../EE_177_SHARC_SPI_Slave.Booting.Rev.3.01.07.pdfwww.analog.com/.../EE-177.zipHope this helps.
Thank you very much! It's really helped me a lot.
Now, I still have some questions :
1. In the slave mode, After the slave receives 384 (32 bits)words from host in DMA , Should I reconfigure the DMA parameters, becuase there are more words than 384 in ldr file.
2. Is there slave receive example code. I need it badly.
Hi Lee,Apologies for the delay.1) No need to reconfigure the DMA parameters.In slave boot mode, the host processor initiates the booting operation by activating the SPICLKsignal and asserting the SPI_DS_I signal to the active low state. The 256-word kernel is loaded 32 bits at a time, through theSPI receive shift register. To receive 256 instructions (48-bit words) properly, the SPI DMA initially loads a DMA count of 0x180(384) 32-bit words, which is equivalent to 0x100 (256) 48-bit words.Please refer ADSP-214xx Hrm page no:915 at below link.www.analog.com/.../ADSP-214xx_hwr_rev1.1.pdfPlease refer the below links:ez.analog.com/.../81160ez.analog.com/.../2392992) please refer the below link:ez.analog.com/.../how-to-configure-adsp-21479-sharc-processor-in-spi-slave-modeRegards,Anand Selvaraj.