|1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020||Index||1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020|
|<== Date ==>||<== Thread ==>|
|Subject:||Re: use CA Client in Xilinx MicroBlaze system|
|From:||"Johnson, Andrew N. via Tech-talk" <firstname.lastname@example.org>|
|Date:||Mon, 9 Sep 2019 15:46:41 +0000|
On 9/9/19 7:15 AM, 肖麟阁 via Tech-talk wrote:
i want to use a CA Client in the Xilinx MicroBlaze System(mean i want to use some API to write a CA client), i don't know if i have to build a EPICS base for that system.(Actually, i don't know if there is any way to build a EPICS base for that system).We have cross-built the linux-microblaze target here at APS on linux-x86 and linux-x86_64 hosts, and it should be possible to do so from almost any EPICS host architecture (even Windows, but I would warn against doing that unless you have no other choice).
You first need to configure and build Base for your host architecture (there are instructions for that available online), then add linux-microblaze to the CROSS_COMPILER_TARGET_ARCHS variable in configure/os/CONFIG_SITE and configure the microblaze target by editing configure/os/CONFIG_SITE.Common.linux-microblaze and setting GNU_DIR to point to your cross-compiler installation — see the comments in that file, although they are fairly old now. It's possible that newer cross-compiler versions might need some changes to the file configure/os/CONFIG.Common.linux-microblaze, you'll have to try it out to see.
there is a cross complier architecture, linux-microblaze. does that mean i can run epics base on MicroBlaze-based linux system? i know that Xilinx provide some documents to run a linux on microblaze.Yes, we have run EPICS IOCs on a MicroBlaze running Linux, although I think we have moved away from doing that for newer Xilinx CPUs.
That depends on the client software you want to use, but yes you only need libCom and libCa (plus various EPICS header files) to be able to build and run a CA client application. However the configuration settings needed for building EPICS Base are the same whether you build just libCom and libCa or build the IOC database as well. You don't need the PVA modules though, so I would suggest you use the latest Base-3.15 release instead of EPICS 7.
It sounds like your plan to run a CA client on this system could be appropriate, although the EPICS IOC is also a CA client so it would depend what other programming you need to do whether you should develop a stand-alone program, an IOC or even a State Notation language Sequence program (which is an external module but can build stand-alone programs that can do I/O through Channel Access very easily).
-- Complexity comes for free, Simplicity you have to work for.