The Block#0 issue is a known one, the problem is that it doesn't pick up the name until it invokes the DLL/.so from your custom code. It's being worked on. They should work, however, in GNU Radio where the DLL/.so *is* linked in.
You do, however, need to create block.yaml files to describe your blocks to UHD. --M On Sun, Nov 8, 2020 at 8:04 AM Dario Pennisi <da...@iptronix.com> wrote: > Hi, > I've been trying to create and use a rfnoc block for n310 within gnuradio > 3.8 and uhd4.0. I first tried with pybombs but this doesn't not seem to > work very well and there is no default recipe that works. I then moved to > manual install from source and got something up using the maint-3.8 and > uhd-4.0 branches however none of the rfnoc blocks in uhd 4.0 seem to be > usable directly in gnuradio companion as the yaml files in uhd are not > compatible with the yaml block files required by grc. > > I then moved to master branch of both repositories and this installs with > gnuradio, some yaml files for some of the blocks in uhd, so I tired > compiling a fpga with fft block as instructed in the tutorial but the fft > would not produce output data. > > Finally I tried compiling the gain example block out of tree and installed > its control block both with maint 3.8 branch (that uses swig) and master > branches (that uses pybind11) but in both cases the block doesn't get > recognized when i issue uhd_usrp_probe and it gets listed as block#0 > regardless of Ldconfig. > I get it listed in grc after I created a second yaml file compatible with > grc but of course running a graph will fail as it doesn't find the block > control class, likely because in the installation process I don't see > python bindings being generated for it, regardless of the binding creation > mechanism. > > So my questions are: > 1) is there any way to use rfnoc in grc as of today that doesn't need > manual creation of the block.yaml files? > 2) why the fft block using the block.yaml definition from gr-uhd doesn't > seem to work? > 3) how do I make oot blocks recognized by probe and grc? > > Thanks, > > > Dario Pennisi >