On 04/07/2015 12:22 PM, [email protected] wrote:
I'm developing a run control / slow control system with EPICS
and a feature of this system is FPGA reprogramming by XSVF file;
is it possible to define a PV (or something else) in order to
receive a binary file sent by remote (e.g. by CSS) ?
Eric Norum developed something like that for programming flash memory
chips through CA when he was working here at the APS. The IOC it ran on
didn't have a lot of RAM, so it comes with a CA client program that
writes the data file (in this case it expects S-record format) to a
waveform record on the IOC one flash page at a time. On the IOC side the
code is an Asyn Octet driver.
You can find the code for it in the mcf5282 module here:
http://www.aps.anl.gov/epics/modules/instrument/mcf5282/index.html
Note that there is other stuff in this module which will not be relevant
to you, but studying the files in mcf5282Sup/src with flash in their
name might give you a good starting point. Send questions here.
- Andrew