I am following below document for environment setup, porting Uboot on ADSP-SC589 EZ Board:
When i run openocd command, I am getting following error:
root@nikesh:/opt/analog/cces/2.8.2/ARM/openocd/share/openocd/scripts# /opt/analog/cces/2.8.2/ARM/openocd/bin/openocd -f interface/ice1000.cfg target/adspsc58x.cfg
Open On-Chip Debugger (Analog Devices CCES 2.8.0 OpenOCD 0.9.0-g5030ad7) 0.9.0Licensed under GNU GPL v2Report bugs to <email@example.com>adapter speed: 1000 kHzInfo : ICE-1000 firmware version is 1.0.2Info : clock speed 1000 kHzError: session transport was not selected. Use 'transport select <transport>'Error: Transports available:Error: jtagError: swdin procedure 'init' in procedure 'ocd_bouncer'
What would be the reason for this?
I did following connections,
Let me know if I am missing any connection.
It looks like you are missing a -f operand before the second script on your command line. The command line should be:
/opt/analog/cces/2.8.2/ARM/openocd/bin/openocd -f interface/ice1000.cfg -f target/adspsc58x.cfg
Also, note that if you are using the 1.3.0 kit, there is an updated version of the user guide for the 1.3.0 release within the Docs directory of the kit.
I am not able to find the user guide for 1.3.0 release, Can you please share the link of it?
For the patch, it's only located in our kit right now, Download the Linux Add-In for ADSP-SC5xx(Rev 1.3.1) from here: https://www.analog.com/en/design-center/evaluation-hardware-and-software/software/LinuxAddin.html#software-overview, And then install the debian package, you can get the buildroot source code from here: /opt/analog/cces-linux-add-in/1.3.1/buildroot-sc5xx-1.3.1/src/buildroot-sc5xx-1.3.1.tar.gz Unzip the buildroot-sc5xx-1.3.1.tar.gz, the patches will be in buildroot/package/libmcapi directory.
For our Linux-1.4.0 release, we will release our code via github, at that time we can get all source code from github. Sorry for the inconvinient.
Thanks & Regards,
I followed above steps to apply patch to mcapi library. I also got the definition of function mcapi_trans_msg_send(). But I am getting below error.
I think in order to remove this error patch should be applied to ICC drivers also.
So please let me know the if there is patch for icc driver or any other way to resolve below error.
Thanks and Best Regards,
Oh yes, there should be patches for icc drivers. Sorry i forgot this part.
May i ask which version are you based on ? So that i can make a patch for you.
Or you can refer to the code in the buildroot packages(v1.3.1) you unzipped previously. The icc driver is located in buildroot/linux/linux-kernel/drivers/staging/icc, and don't forget about the core_control driver and the dts changes in your code.
Thanks and Regards,HuanFeng
Version of what?
There is no version to icc drivers and Linux kernel version is 4.1.39.
Can you please share icc drivers patches for above version.
Please let me know if you need any further information.
Hi firstname.lastname@example.orgI mean the version of ADI in linux-kernel directory named localversion-adi so that i can make a corresponded patch for you. But anyway i make a patch based on linux-addin-1.2.0 for you. Attach is the patch:
If you have any other questions please let me know.
These patches are not applicable to the kernel version i m using(4.1.39).
Linux kernel 4.1.39 doesn't have sc589-ezkit.dts file and many other files are different in this Kern version.
So can you plz share patches for Linux kernel 4.1.39.
I got your point! Currently ADI released code is based on Linux kernel 4.0.0, you can get the source code from here: https://www.analog.com/en/design-center/evaluation-hardware-and-software/software/LinuxAddin.html#software-relatedsoftware
In our next release Linux-addin 1.4.0, we will upgrade our linux kernel to 4.16.0, here describes the release details: https://ez.analog.com/dsp/software-and-development-tools/linux-for-adsp-sc5xx-processors/f/q-a/104216/upstream-adi-linux/324540#324540
So, for your question, i suggest you changing to an older linux kernel or waiting for the new linux kernel release.
If you have any problems please let me know.
Thanks and best regards,HuanFeng
As you suggested, I downgraded my linux kernel to version 4.0.0, I applied your patches on it.
After that I am run mcapi_blink_test demo program to change the blink rate of LEDs for SHARC1 and SHARC2. I can communicate with SHARC1 and change its LED blinking rate over MCAPI successfully, but same code is not working with SHARC2.
Do you have any idea what might be the reason for this behavior?
Above thread is for same problem(communication issues between arm and sharc2 cores).
Thanks for your information
Please find the below page to update the MCAPI and run the Three-Core Communication Example:
I made some changes in mcapi test code and its working with both SHARC cores.