Red Pitaya Crashes with 'cat' command

Applications, development tools, FPGA, C, WEB
Post Reply
Posts: 1
Joined: Thu Nov 10, 2022 5:50 pm

Red Pitaya Crashes with 'cat' command

Post by neo » Mon Nov 28, 2022 4:49 pm

I am basically trying to update the red_pitaya_top.bin design file which the RP uses during boot up. The following are the commands that I use to perform the update operation:

Connect RP over PuTTY SSH:
redpitaya> rw
redpitaya> killall nginx
redpitaya> sleep 0.5
(Copy the new red_pitaya_top.bin to /opt using WinSCP)
redpitaya> cd /opt
redpitaya> ls
redpitaya> cat red_pitaya_top.bin > /dev/xdevcfg
(System Crashes and no response from RP until I restart it. After restart, if it is the new file that is recently copied, RP crashes and doesn't recover until the original red_pitaya_top.bin is restored)

When the above operation is not performed, the RP runs just fine with original red_pitaya_top.bin file.
I tried the above without copying the new file (keeping existing/working
red_pitaya_top.bin) and just running the above commands, the RP still crashes at the same step.

Can anyone please tell me what am I doing wrong?
Thank you!

Posts: 47
Joined: Tue Nov 16, 2021 11:38 am

Re: Red Pitaya Crashes with 'cat' command

Post by juretrn » Mon Nov 28, 2022 10:27 pm

Did you use the correct filetype? AFAIK, xdevcfg accepts .bit files. Bin files have a slightly different header. Also, the bitfile cannot be updated if an application is working with the FPGA. In that case, loading a new bitfile through xdevcfg guarantees a crash. If you are just updating an existing image, backup the original bitfile and replace it with your own.
For example, the oscilloscope app is called "v0.94", so go to /opt/redpitaya/fpga and replace fpga_0.94.bit with your own image. Now, your image will be loaded when the oscilloscope app starts.
That being said, go back to your design and check the basics: did you specify the correct part number in the build? Are there clocks missing? Did you miss a pin in constraints? Is there a problem with the resets?

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 2 guests