Hi Sir,
I need to use 21593 dual-core + SigmaStudio+, but I can't find any instructions and routines. I created a dual-core application based on "C:\Analog Devices\SigmaStudioPlus-Rel2.1.0\Target\Examples\LibraryIntegration\ADSP-21593". I have created two separate schematics using SigmaStudio+ and can download them. I have found that it works only when the schematic is simple or there are few input audio channels, but when the schematic becomes complex and there are many input audio channels, it would crashes. The CCES always displays "A parity error has been detected." I checked the memory usage and it doesn't seem to overflow
Please help, thank you!
LibIntegrationExample_Core1.map.xml
LibIntegrationExample_Core2.map.xml
Hi,
Could you please share your schematic for analyzing this issue.
Thanks
Hi Chiru & Sakthivel,
Any updates for this issue?
Our schematics were so complex that one core could not run well enough. We urgently needed to use 21593's dual core. Please give us useful help, thank you.
In your video the first schematic is working fine and the second schematic having some target exception when enabled some audio stream from Adobe Audition tool. Is my understating correct?
Could you please explain what audio stream is enabled in Adobe Audition tool and how that stream linked with target application?
Are you using the SigmaStudio+ Schematic generated source file in 21593 target application? If yes, please regenerate the source file for the schematic which you are facing issue.
Also, could you please try increasing the stack memory allocated for target application in app.ldf file?
The first schematic is simple enough to work even when playing multiple channels; The second schematic diagram is more complicated, playing one channel can work properly, playing multiple channels can not work properly;
I used normal audio files, attached is my test audio file; It is connected to the sound card via USB and then transferred to the DSP via A2B;
I used SigmaStudio+ to compile the schematics and download them to 21593. I also tried to set both heap and stack to 20KBytes, but the program still crash
Few more question, did you integrate the A2B stack into the target application or using in PC mode A2B schematic?
Is this issue reproduced with ADSP-21593 SOM Eval board?
The ADSP-21593 receives data from corresponding SPORT through DAI pins we don't think there will be a problem for single or multiple channels data because all SPORT's will run once enabled even though no audio data. We will try to simulate this issue and get back to you.
1, I used a USB to A2B sound card, the following A2B project and sound card A2B configuration is exactly the same, for reference
2. " The ADSP-21593 receives data from corresponding SPORT through DAI pins we don't think there will be a problem for single or multiple channels data because all SPORT's will run once enabled even though no audio data. "
This is also what I think is very strange. Even if there is no audio data, ADSP21593 still does the same processing, why will it crash when there are too many audio channels input?
Also note: it is normal to work with single-core DSP only. So I believe the audio input/output, A2B configuration, SPORT configuration should be no problem. SS+ framework support for dual core is not perfect, has it been extensively verified?
The Lib integration example what we provided is for demonstration of communication and target library integration for SigmaStudio+ schematic processing. You can use demo example application as standard dual core processing application and see whether same issue is there.
Few more question, did you measure the schematic MIPS? can you reduce the MIPS by reducing the number of filter stages? To confirm whether there is any run time MIPS overshoot. Filters and compressors will take more MIPS based on the input signals, so I am doubting there may be MIPS overshoot, since the processing block size also less.
I checked the MIPS and it didn't overshoot. It takes up about 60% of the CPU power.
Your demonstration can't download schematics online. I've shared my project with you. What experiment did you do? Can you provide some meaningful response ??
Based on the internal discussion, support team modified your schematic for ADC input from evaluation given to all 16 channels schematic and verified the audio output which is fine. There is additionally a gain module added with each channel to listen the output, since level is low in the ADPS-21593 SOM EZ board. So, we don't think there will be any problem in SigmaStudio+ schematic. Since you are getting the issue in custom setup it's difficult to guess what could be the problem, but we will try for 16 Ch playback with A2B input and get back to you. Meantime we request you please try 16 Ch In and 16 Output in both SS+ schematic and target application, since you are using only 16 Channel in the schematic application.
Are you using Analog Device A2B analyzer to audio stream input or any other platform application?
This analysis will help us to figure out what could be the root cause.
Amp_SS+_8In_8Out_2Core_Test_onlymute.zip
My CCES and SS+ projects work perfectly well when tested on a single core, which should rule out DSP driver and input signal issues.
Could you share your CCES project for further testing ?
We are using the Lib Integration example which is available in SS+ installation folder which is supporting 8 Ch I/O and dual core processing.
We are using the Lib Integration example which is available in SS+ installation folder which is supporting 8 Ch I/O and dual core processing.
What?
I need is a example that can support online schematic download, and this example does not support online schematic download at all. I have been asking this question for a long time and sharing my project with you. It seems that you have not verified my problem ???
Sorry, the SigmaStudio framework not supporting online download (redownload)
Execute Example Project [Analog Devices Wiki]
The project I shared with you can be downloaded online, and it is work normally when using 21593 single-core, but the problem now is that dual-core does not work properly, please help fix this bug, do you understand??
Sorry, I mentioned wrong processor name in previous response as ADSP-21569, The test was on ADSP-21593 with dual core processing using the modified schematic what I have shared. We are trying to simulate this issue from our end.
Hi Johnny,
Apologies for the delay in response.
We are attaching a sample ADSP21593 Dual core Lib integration project, which supports 16CH in total.
The ADSP21593 [with attached A2B transceiver AD2428] acts as an A2B sub node. For this particular example, we have taken ADI A2B Analyzer as the main node.
In this example, the target ADSP21593, by default supports 8 DAC channels and also 8 A2B upstream channels towards A2B Analyzer main node. Kindly try this at your desk, if the default application is working, you can use this and modify based on your requirement.
The attached zip file contains the target application, the Sigma Studio Plus schematic we have used to test this application and a document mentioning which all SPORTs, DAI Pins are being used here etc.
Thankyou.
Hi Sankar,
Thanks for your support.
I will test it later. I have a preliminary look, this example still uses the way of copy schematics(
memcpy(&oSMAPSharc0, adi_ss_smap_DiffDXESchematic_0, adi_ss_smap_DiffDXESchematic_0_size*4),
memcpy(oSSnMemMap.pMemBlocks[1]->pMem, adi_ss_code_DiffDXESchematic_0, adi_ss_code_DiffDXESchematic_0_size*2),
Hello sir,
This issue has been going on for a long time. Is there any updates?
We tried 48 In and 48 Out channels with the schematic what you shared and we could not see any issue. we shared the modified code to Pengjie over internal case please check and confirm whether you are seeing the issue on ADSP-21593 SOM eval board.
It still has a problem, please note that this problem has nothing to do with the number of input&output channel nums, I have changed the project to 16in/16out. My test found that when the total MIPS of core1 + core2 is greater than 1000, only one input channel input signal program can run, but multiple channels input the program will crash. This phenomenon is very strange, because no matter how many channels of input signals, SS+ processing is the same, why only one channel input signal when the program can work, but 16 channels at the same time when the program crashes?
The lib integration example is to demonstrate how libarary integration can be done to run SigmaStudio schematic application. so all the SigmaStudio features not supported, since its simple BareMetal example. Please use the Demo/DemoUC example which has all the SigmaStudio features supported.