Solved - LimeNET Micro GPIO Support

I have been using the FPGA GPIO pins on LimeSDR Minis for transmit Power Amplifier switching for some time. Thanks to @ignusJ for the support added here: LimeSDR-Mini - GPIO Read Not Supported

I now want to do the same on a LimeNET Micro (J5 FPGA GPIO), but either the support has not been implemented, or I do not have the right calls. I’m using:

    // Set up GPIOs for output
    uint8_t gpio_dir = 0x8F; // set the 4 LSBs and the MSB to write
	if (LMS_GPIODirWrite(device, &gpio_dir, 1) != 0) //1 byte buffer is enough to configure 8 GPIO pins on LimeSDR-USB
	{
	  fprintf(stderr, "LMS_SetupStream() : %s\n", LMS_GetLastErrorMessage());
	  return 1;
	}
    // Set PTT on
 	if (LMS_GPIOWrite(device, &gpio_band, 1)!=0) //1 byte buffer is enough to write 8 GPIO pins on LimeSDR-USB
	{
      fprintf(stderr, "LMS_SetupStream() : %s\n", LMS_GetLastErrorMessage());
      return 1;
	}

Can anybody help me with the calls to configure then write to these ports?

Or are they just not implemented for the LimeNET Micro?

Thanks

Dave, G8GKQ

My apologies - I went away and thought about this and then realised that I had not checked for a GateWare Update for a while. Updating to the latest firmware using “LimeUtil --update” has solved the problem.

Now at:

Device name: LimeNET-Micro
Expansion name: UNSUPPORTED
Firmware version: 6
Hardware version: 19
Protocol version: 1
Gateware version: 1
Gateware revision: 3

with FPGA GPIOs functioning as expected.

Dave, G8GKQ

3 Likes