I have a ADSP-SC589 EZ-Board and I would like to program it using SigmaStudio (for SHARC).
What do I need to do that? Extra hardware?
May I know which version of SigmaStudio and SigmaStudio for SHARC package you are using?
If you are using latest packages, please refer following document from SigmaStudio for SHARC installation folder,
C:\Analog Devices\SoftwareModules\SigmaStudioForSHARC-SH-Rel4.4.0\Docs "AE_42_SS4G_QuickStartGuide.pdf"
You will get to know what are the required HW/SW and how to run program using SigmaStudio and SigmaStudio for SHARC.
I now have SigmaStudioForSHARC-SH-Rel4.5.0 and I am trying to follow "AE_42_SS4G_QuickStartGuide.pdf"
I have a problem with the setup at page 23, "6.1.1 Loader file generation", to create the ldr file:
"C:\Analog Devices\CrossCore Embedded Studio 2.9.1\elfloader.exe" -proc ADSP-SC589 -core0=SS_App_Core0.exe -init ezkitSC589_initcode_core0_v10.exe -core1=SS_App_Core1.dxe -core2=SS_App_Core2.dxe -NoFinalTag=SS_App_Core0.exe -NoFinalTag=SS_App_Core1.dxe -b SPI -f BINARY -Width 8 -bcode 0x1 -verbose -o SS_App_SC589.ldr
All file references need a path, else I get error opening file. When all the paths are added, the line gets too long to handle. If I try to put all in a BAT file with continuation characters, it is not parsed correctly.
Is it possible to set some implicit path so that the command line can be executed as described?
Please follow the step before executing loader generation command,1.Copy the application DXEs of all the three cores of ADSP-SC589 processor to the "< Software Modules folder > \SigmaStudioForSHARC-SH-Rel4.5.0\Target\Examples\LDR" folder. In case, ARM Core executable is missing .exe at the end, add the .exe to the name of ARM executable. The file "ezkitSC589_initcode_core0_v10.exe" is a part of CCES. It can be found at "C:\Analog Devices\CrossCore Embedded Studio 2.9.1\SHARC\ldr". Copy this file to "< Software Modules folder > \SigmaStudioForSHARC-SH-Rel4.5.0\Target\Examples\LDR" folder. If .exe missing at the end, add the .exe to the file name.
2. Go to directory "< Software Modules folder > \SigmaStudioForSHARC-SH-Rel4.5.0\Target\Examples\LDR" folder in CMD window and execute loader generation command.
You can create .BAT file for the above command inside "< Software Modules folder > \SigmaStudioForSHARC-SH-Rel4.5.0\Target\Examples\LDR" folder and you can run the same instead of step 2.
Reading and understanding is apparently not the same thing.
Thank you for the clarification, I created a BAT file, ran it, and it worked.
With your help, I was successfully trying the SigmaStudio project Volume_Mute_Block_SC5xx as described in the Quickstart document. I have three questions.
1: Today I was running this project again with SigmaStudio, now without the CCES running, and it was running fine. What is the relation between CCES and SS in this case? Is it only the debugging?
2; I was trying to change the sampling rate from 48kHz to 96kHz, and I got only sporadic noise on the output. Why?
3: After I got SigmaStudio working, my installed Linux on the Core0 ARM does not boot anymore. Is this expected?
[Ans] 1. CCES is Integrated Development Environment (IDE) for target framework application development and debugging tool to Blackfin and SHARC DSP processes. SigmaStudio is a development environment to graphically programming DSPs with extensive set of algorithms available in SigmaStudio to perform audio processing. SigmaStudio integrated with CCES and uses CCES compiler to generate code for the connected DSP modules in schematic.
[Ans] 2. Simple changing SigmaStudio schematic sample rate wont work, you need to modify target application framework to support 96K. The target application framework modification like BCLK, LRCLK to SPORT, CODEC, ADC and DAC etc.
[Ans] 3. Could you please share some more details about Linux on the Core0 ARM? are you using Linux Add-In for ADSP-SC5xx package ? which version of CCES you are using?
Thanks for the answer,
1) Should I understand it so that it is not necessary to start CCES before working with SigmaStudio?
2) When you say modify the application framework to support 96k, do you mean that it is possible to add support (extend) for 44.1, 48, 88.2, 96 176.4 and 192kHz, so that the drop-down menu in SigmaStudio will work as I originally assumed? Can you refer to some document on how to add this support to the application framework?
3) I was installing Linux on Core0 ARM, following the instructions in the Add-in document. My CCES is 2.9.1 and the add-in is 1.3.1. I enabled booting from the SD-card. I can no longer see any activity on the USB-UART port.
I begin to realize that much of my startup problems comes from the fact that I have never seen or used Eclipse before. I have used Xcode, Qt-creator, Visual Studio and gcc but this experience is not of much use to understand Eclipse. Your documentation seems to cover the specifics of CCES, but not so much on the very basic usage. Can you recommend some document that would help me?
Especially, I am lost in the navigation in the project, I cannot see which project that is in the workspace (BTW what is a workspace?), Menu Project / Open project, Close project is always dimmed. What do I need to do to find the source code of the project?
The sample project Volume_Mute_Block_SC5xx is very confusing to me in one respect.
There are two schematics, one for Core1 and ont for Core2. The layout is similar but differ in the details. The same input and output channels are used, but the signal processing is different. This is what is confusing. If the function is "parallel processing", how can the LP filter have any effect when it is connected in parallel to a simple Volume control? Or two Volume controls in parallel?
I also tried to build my own project, using only Core1. It did not work, no output. Only when I added the second core to the project could I get some output. Please explain why.
I realize the question about CCES is off-topic, it should be in another thread or forum. Please ignore it.
[ANS 1]: You can't run SigmaStudio without CCES. If you want to understand basic working of CCES for ADSP-SC589, please refer "AE_42_SS4G_QuickStartGuide.pdf" section 6.2 Getting Started with Example Schematics to run demo application with example sigmastudio schematic.
[ANS 2]: You can modify the application up to 96k for EZ-Kit because the clock input is 24.576MHz.The target application needs modification for 96k support in following functions, go through the code flow using CCES and modify the target application.adi_ss_system_initialize()ADC_Init()DAC_Init()
[ANS 3] There no support for linux Add-in with CCES 2.9.0.Please refer "LinuxAddinForCCES_1.3.1_Release_Notes.pdf" section 3.2 Supported Versions of CrossCore Embedded Studio
[ANS 4] Please run the demo application as mentioned in [ANS 1], you can understand the working of CCES and SigmaStudio with example schematic.
Regarding [ANS 2:]
Are you referring to the imported projects SS_App_Core0, SS_App_Core1 and SS_App_Core2?
I am not sure what you mean by ""go through the code flow using CCES".
When I try to open /SS_App_Core*/Source/*.c I get "File not found".
The files in /SS_App_Core*/system/* exist, however.
Yes, after importing demo application project in to CCES, you can see the source files used in the application framework. Please refer section 6.3 Rebuilding the Demo Application in quick start guide.