Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Wed Feb 11, 2015 7:43 pm

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

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Wed Feb 11, 2015 8:45 pm

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

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Wed Feb 11, 2015 8:51 pm

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!

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Thu Feb 12, 2015 8:00 pm

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

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Fri Oct 23, 2015 7:21 pm

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/

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Experiments with Raspberry + FPGA/CPLD

Fri Oct 23, 2015 8:05 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Fri Oct 23, 2015 10:00 pm

Kind of figured that out already. Thanks for the confirmation.
Used this guide instead: http://iqjar.com/jar/sending-emails-fro ... pberry-pi/

Shrek
Posts: 51
Joined: Sun Dec 21, 2014 5:00 pm

Re: Experiments with Raspberry + FPGA/CPLD

Fri Oct 23, 2015 10:04 pm

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.

Return to “General discussion”