Hi,
the -ams parameter in monitor seems to be omitted now ....
Please how to read the FPGA/CPU temperature from the console?
Many thanks for your answers / tips
Viktor
redpitaya> monitor
monitor version 0.94-536-453d2a9-453d2a9
Usage:
read addr: address
write addr: address value
set slow DAC: -sdac AO0 AO1 AO2 AO3 [V]
Reading the FPGA/CPU temperature ... in the 0.94 ecosystem
-
- Posts: 16
- Joined: Fri Sep 26, 2014 9:21 pm
-
- Posts: 15
- Joined: Wed Dec 16, 2015 10:33 pm
Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst
Hi Viktor,
seems like the access to the slow inputs has changed in 0.94, and monitor -ams wouldn't work anymore.
There's an alternative way to access the slow sensors, via an XADC library: https://github.com/RedPitaya/RedPitaya/ ... /Test/xadc
I've downloaded the sources, and tried to compile them on my redpitaya.
This only worked after I made some changes.
The modified version can be downloaded from here: https://sites.google.com/site/hansdorn/pics/xadc.tgz
Copy the archive to /opt/redpitaya/src/utils
and extract with "tar xzf xadc.tgz"
In the xadc folder you'll find a binary named "xadc_get_value_temp".
Copy this to /opt/redpitaya/bin, and you should be able to read out the FPGA temperature by invoking said command.
I've put comments on the changes I made to the source.
I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
Nils?
The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
Cheers
Hans
seems like the access to the slow inputs has changed in 0.94, and monitor -ams wouldn't work anymore.
There's an alternative way to access the slow sensors, via an XADC library: https://github.com/RedPitaya/RedPitaya/ ... /Test/xadc
I've downloaded the sources, and tried to compile them on my redpitaya.
This only worked after I made some changes.
The modified version can be downloaded from here: https://sites.google.com/site/hansdorn/pics/xadc.tgz
Copy the archive to /opt/redpitaya/src/utils
and extract with "tar xzf xadc.tgz"
In the xadc folder you'll find a binary named "xadc_get_value_temp".
Copy this to /opt/redpitaya/bin, and you should be able to read out the FPGA temperature by invoking said command.
I've put comments on the changes I made to the source.
I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
Nils?
The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
Cheers
Hans
-
- Posts: 16
- Joined: Fri Sep 26, 2014 9:21 pm
Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst
Hi Hans,
many thanks for the idea. Now I have time to test it. I let you know.
Regards,
Viktor
many thanks for the idea. Now I have time to test it. I let you know.
Regards,
Viktor
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst
Well, the monitor utilities (there's also monitoradvanced, which has special functions for the XADC) don't use the XADC correctly as it is now. Furthermore, the way in which the xadc library uses the XADC does not interfere with the other functions of monitor.I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
But I can't say whether something similar is not already in preparation.
Which 0.93 bitfile ? Going by the branch v0.93 source, the 0.93 logic should not be compatible, but maybe the archived fpga version is not built from the published source.The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
-
- Posts: 15
- Joined: Wed Dec 16, 2015 10:33 pm
Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst
I'll give it a try between the years, if nothing new shows up on github in the meantime.Nils Roos wrote:Well, the monitor utilities (there's also monitoradvanced, which has special functions for the XADC) don't use the XADC correctly as it is now. Furthermore, the way in which the xadc library uses the XADC does not interfere with the other functions of monitor.I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
But I can't say whether something similar is not already in preparation.
I'm not sure which version of the 0.93 bitfile it is, it's the one that shipped with the 0.94 image (together with a 0.94 one), and that apparently all the 0.94 applications are usingWhich 0.93 bitfile ? Going by the branch v0.93 source, the 0.93 logic should not be compatible, but maybe the archived fpga version is not built from the published source.The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
Cheers
Hans
P.S: Sending pulses down a BNC cable right now:
This is fun!
-
- Posts: 1
- Joined: Tue Feb 23, 2016 6:22 am
Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst
Works well thanks
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 98 guests