EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: use CA Client in Xilinx MicroBlaze system
From: "Johnson, Andrew N. via Tech-talk" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 9 Sep 2019 15:46:41 +0000
Hi,

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.

   and when i use a CA client API(such as ca_get, ca_put) on a windows PC, it seems that i don't need to build EPICS base on the windows PC. the CA client API only needs the ca.dll and Com.dll(for windows PC). if i use libca.a and libCom.a(for linux system) in a microblaze-based linux system, can i do the same thing as i do on windows PC?

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.

   i can't change the records in the IOCs, because it will cause many other problems (other system also use these PVs). the only thing i can do is to read or write the PVs' values.

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).

Good luck!

- Andrew

-- 
Complexity comes for free, Simplicity you have to work for.

Replies:
Re: Re: use CA Client in Xilinx MicroBlaze system 肖麟阁 via Tech-talk
References:
use CA Client in Xilinx MicroBlaze system 肖麟阁 via Tech-talk

Navigate by Date:
Prev: Re: pyepics callback Eric Norum via Tech-talk
Next: Re: pyepics callback Matt Newville via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: use CA Client in Xilinx MicroBlaze system 肖麟阁 via Tech-talk
Next: Re: Re: use CA Client in Xilinx MicroBlaze system 肖麟阁 via Tech-talk
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  <20192020  2021  2022  2023  2024 
ANJ, 09 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·