Page 1 of 1

I/O pins. Control??

Posted: Thu Sep 10, 2015 8:16 am
by NT4RT
I have the I/O board on my unit. It is not clear to me how to control these pins from Blade CLI. Is special FPGA code needed? Or does the standard FPGA code include a path to these pins? If issue has been addressed before, please let me know where. I would like to be able to wiggle an output pin from script file in Blade CLI.

Thanks Bruce NT4RT

Re: I/O pins. Control??

Posted: Thu Sep 10, 2015 11:44 am
by jynik
Hi Bruce,

In the past, these had been available through some lower level programming interfaces and one would have to be familiar with the underlying FPGA I/O control registers.

I recently added some higher-level API functions for performing GPIO pin reads and masked writes. (The masked write leverages RMW operations being performed in the FPGA, alleviating the need to send two USB requests to first read the GPIO register, modify it, and then write the change back over USB.)

I just added some information here on the bladeRF-cli Tips and Tricks wiki page for you. If anything is not clear, let me know and we can further revise that entry.

As noted on this page, you'll need the latest code from master and FPGA v0.4.1 to use this. Are you using the Ubuntu PPA or familiar with building this code from source? If not, we can chat about getting you running the latest until this is included in the next release.

Best regards,
Jon