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?
I am working on ADSP-SC589 board and trying communicate between ARM core and SHARC core using MCAPI library.
I am using libmcapi-2.0 library from http://svn.code.sf.net/p/adi-openapp/code/trunk/libs/libmcapi/.
I can see that in http://svn.code.sf.net/p/adi-openapp/code/trunk/libs/libmcapi/libmcapi-2.0/mcapi_trans_stub.c file, Line no 1096, mcapi_trans_msg_send() function is empty.
Can you let me know if its kept empty intentionally or if this version of library is not complete and I need to get updated library from some other link?
Thanks & Best Regards,
Yes, you are right, the original code in the svn server is just like what you've seen, but we applied 3 patches in buildroot/package/libmcapi, in those patches we enriched our send/receive functions.
This is based on buildroot package rules, not apply those patches directly in our svn server code. For how to get a complete MCAPI, you could enable libmcapi in buildroot menuconfig and then the patched libmcapi-HEAD.tar.gz would be downloaded in the dl/ directory automatically. Or you could apply those three patches in buldroot/package/libmcapi/ manually based on the svn server code.
Thanks & Best regards,HuanFeng
I don't think that we have buildroot, so i am not sure where I need to enable libmcapi option. Can you share the path where these patches are kept.
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