# Access to GPIO5

**URL:** <https://forum.legato.io/t/access-to-gpio5/1994>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [March 12, 2015, 11:15am UTC](https://forum.legato.io/t/access-to-gpio5/1994 "2015-03-12T11:15:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aweros10](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@aweros10](https://forum.legato.io/u/aweros10)\
**Post date:** [March 12, 2015, 11:15am UTC](https://forum.legato.io/t/access-to-gpio5/1994/1 "2015-03-12T11:15:09Z")

</div>

Hi,

I have been trying to use GPIO5 and it seems it is set to detect a second SIM card (EXT\_SIM2\_DET). I wil like to use it as a normal GPIO just as I use the other ones. I tried changing the using AT commands as I do with the other GPIOs.

For example:

```auto
AT+WIOCFG=4,16
```

This command changes the to embedded host so that I can work with the GPIO.  
When I try to do it with the GPIO5

```auto
AT+WIOCFG=5,16
```

The AT command shows ERROR and I cannot access to GPIO5.  
How can I disable the EXT\_SIM2\_DET and use the GPIO5 function?  
Thank you.

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [March 18, 2015, 10:18am UTC](https://forum.legato.io/t/access-to-gpio5/1994/2 "2015-03-18T10:18:56Z")

</div>

Hi,

Currently, GPIO5 is reserved as EXT\_SIM2\_DET signal in the default “hard-coded” configuration of the module.

This setting cannot be changed dynamically.

If you need to have a different configuration (in order to have access to GPIO5) then you need to contact Sierra Wireless.

Jay
