casper-astro / tutorials_devel

Tutorials available here:
https://casper-tutorials.readthedocs.io
37 stars 39 forks source link

ValueError: Verification of write to '' at offset 0 failed. #83

Closed ywj0225 closed 5 months ago

ywj0225 commented 5 months ago

I followed the red_pitaya tutorial one until executing the command "fpga.write_int('a',10)" and the problem started to appear. ![Uploading NF%P2A6H{BH@QS(63P{9W2T.png…]()

ywj0225 commented 5 months ago

In [5]: fpga.write_int('a',10)
2024-05-08 15:52:20.94 ERROR 192.168.31.206 casperfpga.py:547 - Verification of write to a at offset 0 failed. Wrote 0x0000000a... but got back 0x00000001.

ValueError Traceback (most recent call last)

in ----> 1 fpga.write_int('a',10) /usr/local/lib/python3.8/dist-packages/casperfpga/casperfpga.py in write_int(self, device_name, integer, blindwrite, word_offset) 595 self.blindwrite(device_name, data, word_offset * 4) 596 else: --> 597 self.write(device_name, data, word_offset * 4) 598 self.logger.debug('Write_int %8x to register %s at word offset %d ' 599 'okay%s.' % (integer, device_name, word_offset, /usr/local/lib/python3.8/dist-packages/casperfpga/casperfpga.py in write(self, device_name, data, offset) 546 unpacked_wrdata, unpacked_rddata) 547 self.logger.error(err_str) --> 548 raise ValueError(err_str) 549 550 def read_int(self, device_name, word_offset=0): ValueError: Verification of write to a at offset 0 failed. Wrote 0x0000000a... but got back 0x00000001.
ywj0225 commented 5 months ago

I use red_pitya 125-14 LN.

jack-h commented 5 months ago

Thanks for raising this -- what version of mlib_devel were you using? Could you provide a git hash, please?

On Wed, 8 May 2024 at 10:54, ywj0225 @.***> wrote:

I use red_pitya 125-14 LN.

— Reply to this email directly, view it on GitHub https://github.com/casper-astro/tutorials_devel/issues/83#issuecomment-2100203962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKWM7DOLLB2QOKN22EFL3DZBHY4TAVCNFSM6AAAAABHMO5EC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGIYDGOJWGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ywj0225 commented 5 months ago

@jack-h Hi,the version of 'mlib_devel' is m2021a. All other software is compatible(like matlabR2021a, vivado2021, ubuntu20.04). I'm sorry that I'm new to github so I don't know the git hash. I just follow the step of website"https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/tutorials/redpitaya/tut_intro.html". I connected the red_pitaya and uploaded my fpg.file. But something wrong when I executed command "fpga.write_int('a',10)“.

ywj0225 commented 5 months ago

@jack-h Hi, git hash maybe this one: 43f2d6cd994dfc684cd1e5e1c3ce85bab91e8e44

jkocz commented 5 months ago

Closing this as it was addressed as part of: https://github.com/casper-astro/mlib_devel/issues/208

Fixed by downgrading to 1.04x versions of the Red Pitaya OS.

Instructions should be added to the RP configuration to specify this (of the CASPER code recompiled to work with v2.x)