# Solved - LimeNET Micro GPIO Support

**URL:** <https://discourse.myriadrf.org/t/solved-limenet-micro-gpio-support/7205>\
**Category:** Uncategorized\
**Created:** [19 June 2021 11:10 UTC](https://discourse.myriadrf.org/t/solved-limenet-micro-gpio-support/7205 "2021-06-19T11:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveG8GKQ](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/daveg8gkq/32/2361_2.png) [@DaveG8GKQ](https://discourse.myriadrf.org/u/DaveG8GKQ)\
**Post date:** [19 June 2021 11:10 UTC](https://discourse.myriadrf.org/t/solved-limenet-micro-gpio-support/7205/1 "2021-06-19T11:10:03Z")

</div>

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](https://discourse.myriadrf.org/t/limesdr-mini-gpio-read-not-supported/3510/7)

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

---

<div class="post-metadata">

**Author:** ![DaveG8GKQ](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/daveg8gkq/32/2361_2.png) [@DaveG8GKQ](https://discourse.myriadrf.org/u/DaveG8GKQ)\
**Post date:** [19 June 2021 14:00 UTC](https://discourse.myriadrf.org/t/solved-limenet-micro-gpio-support/7205/2 "2021-06-19T14:00:02Z")

</div>

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
