On Tue, 17 Jan 2012 08:39:59 -0800, Josh Blum wrote: 

> On
01/17/2012 07:36 AM, [email protected] [1] wrote:
>> I've made it a
habit to always be explicit about which device (or device class, at
least) I'm going for when I use UHD tools. So, I *always* either specify
"--args type=usrp1" or --args "addr=192.168.10.2" to UHD tools, so that
I don't have to rely on autodiscovery stuff that might produce weird
results. I kind of *have* to on one of my systems, because I have both a
USRP1 and USRP2 on the same system. I vaguely recall from the mists of
my memory that there's some subtle brokenness with SIGINT handling in
*BSD Python and Gnu Radio, but that's as much as I remember. In terms of
why it's reloading the .ihx, I'm not sure, although I'll note in the
code that there's a "force" parameter to the routine that loads the
firmware, so that if "force" is set, the FX2 firmware is reloaded
regardless of whether the local-file and on-board hash match. I'll also
note that the routine that *calls* the firmware loader doesn't actually
supply this parameter, so perhaps there's actually a bug.
> Maybe its
because the hash type is a size_t. I will throw this patch at you to
make it fixed at int32: http://pastebin.com/5CTcHEnc [2] Now I have to
run... -Josh _______________________________________________

Given the
type-punning that goes on "under the covers", I can see how using a
size_t might not have been the best choice. 

But I still wonder about
the "force" parameter on fx2_ctrl_impl::usrp_load_firmware() 

 


Links:
------
[1] mailto:[email protected]
[2]
http://pastebin.com/5CTcHEnc
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to