Reading the FPGA/CPU temperature ... in the 0.94 ecosystem

Applications, development tools, FPGA, C, WEB
Post Reply
dvorakvik
Posts: 16
Joined: Fri Sep 26, 2014 9:21 pm

Reading the FPGA/CPU temperature ... in the 0.94 ecosystem

Post by dvorakvik » Sun Dec 20, 2015 6:13 pm

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]

hans.dorn@gmail.com
Posts: 15
Joined: Wed Dec 16, 2015 10:33 pm

Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst

Post by hans.dorn@gmail.com » Sun Dec 20, 2015 9:10 pm

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

dvorakvik
Posts: 16
Joined: Fri Sep 26, 2014 9:21 pm

Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst

Post by dvorakvik » Sun Dec 20, 2015 9:36 pm

Hi Hans,

many thanks for the idea. Now I have time to test it. I let you know.

Regards,

Viktor

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst

Post by Nils Roos » Sun Dec 20, 2015 11:40 pm

I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
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.
But I can't say whether something similar is not already in preparation.
The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
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.

hans.dorn@gmail.com
Posts: 15
Joined: Wed Dec 16, 2015 10:33 pm

Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst

Post by hans.dorn@gmail.com » Mon Dec 21, 2015 1:40 am

Nils Roos wrote:
I could try to modify the monitor binary to use the xadc library, if this doesn't break anything.
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.
But I can't say whether something similar is not already in preparation.
I'll give it a try between the years, if nothing new shows up on github in the meantime.
The xadc library seems to work with the old 0.93 and the new 0.94 bit file, which is nice.
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.
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 using ;)

Cheers
Hans

P.S: Sending pulses down a BNC cable right now:

Image

This is fun! :)

aegdawson
Posts: 1
Joined: Tue Feb 23, 2016 6:22 am

Re: Reading the FPGA/CPU temperature ... in the 0.94 ecosyst

Post by aegdawson » Sun Feb 28, 2016 4:25 pm

Works well thanks :-)

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 98 guests