Page 3 of 3

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Wed Feb 11, 2015 7:43 pm
by Shrek
Progress!
I tried the command with the -p option (supposed to supress the progress indicator)
sudo ./gz_load test1.xsvf -v 4 -p
Now at least there are error messages:
ERROR: Data overflows allocated MAX_LEN buffer size
ERROR at or near XSVF command #62. See line #62 in the XSVF ASCII file.
ERROR: Data overflows allocated MAX_LEN buffer size
Execution Time = 0.040 seconds
So I tried to generate some more xsvf files in Xilinx Impact - to try the ID, erase and verify commands.
It turns out the utility and the connections work, it is the actual xsvf file with the configuration that is troublesome:
pi@Rosrasp-1 ~/gcc/Guzunty/src/gz_load $ sudo ./gz_load test1-id.xsvf
Guzunty loader v5.01 rev 2, portions courtesy Xilinx, Inc.
XSVF file = test1-id.xsvf
Progress indicator: ||
SUCCESS - Completed XSVF execution.
Execution Time = 0.010 seconds

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Wed Feb 11, 2015 8:45 pm
by Shrek
Onto something: From the lenval.h file in the gz_load source folder:
The following MAX_LEN values have been tested and provide relatively
good margin for the corresponding devices:

DEVICE MAX_LEN Resulting Shift Length Max (in bits)
--------- ------- ----------------------------------------------
XC9500/XL/XV 32 256

CoolRunner/II 256 2048 - actual max 1 device = 1035 bits

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Wed Feb 11, 2015 8:51 pm
by Shrek
Edited one line to read #define MAX_LEN 256 in lenval.h:
pi@Rosrasp-1 ~/gcc/Guzunty/src/gz_load $ make clean
rm -f lenval.o micro.o ports.o *~ lenval uart micro ports main
pi@Rosrasp-1 ~/gcc/Guzunty/src/gz_load $ make
[CC] lenval.c
[CC] micro.c
[CC] ports.c
gcc -o gz_load -Wl lenval.o micro.o ports.o -L/usr/local/lib -lbcm2835 -lrt
pi@Rosrasp-1 ~/gcc/Guzunty/src/gz_load $ sudo ./gz_load test1.xsvf
Guzunty loader v5.01 rev 2, portions courtesy Xilinx, Inc.
XSVF file = test1.xsvf
Progress indicator: |*******|
SUCCESS - Completed XSVF execution.
Execution Time = 14.260 seconds
pi@Rosrasp-1 ~/gcc/Guzunty/src/gz_load $
And the Coolrunner is configured again!

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Thu Feb 12, 2015 8:00 pm
by Shrek
I have installed Terminal IDE on my Android tablet. Also, I configured port forwarding in my internet router for the ssh port 22 to my raspberry. Now I can pet my Raspberry from anywhere,and I can start thinking about a more serious project for a home management system involving the Pi and it's little cpld friend.
Screenshot_small.png
Screenshot_small.png (57.86 KiB) Viewed 1150 times

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Fri Oct 23, 2015 7:21 pm
by Shrek
Long time since last update. Moved back to my own house, and now the raspberry has been installed in the boiler room, ready to become the central of the house.

First task is to install sendmail so that the Pi can send updates to me by email.
Using this link:
http://unixetc.co.uk/2014/11/04/enable- ... pberry-pi/

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Fri Oct 23, 2015 8:05 pm
by DougieLawson
Shrek wrote: First task is to install sendmail so that the Pi can send updates to me by email.
Using this link:
Oh the pain, the suffering. Don't install sendmail, it's horrid, pick ANY other MTA, NOT sendmail. My choice is postfix because it's orders of magnitude easier to configure and work with.

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Fri Oct 23, 2015 10:00 pm
by Shrek
Kind of figured that out already. Thanks for the confirmation.
Used this guide instead: http://iqjar.com/jar/sending-emails-fro ... pberry-pi/

Re: Experiments with Raspberry + FPGA/CPLD

Posted: Fri Oct 23, 2015 10:04 pm
by Shrek
The first duty for the Pi will be the electronic watchdog that I always wanted but did not know how to create.

Ingredients: MP3 file. Old Kenwood amplifier. Old speakers. Infrared detector.
Now I just have to drill a hole in the cellar window for the cable to exit to the detector.