About Fast-GPIO
- 
					
					
					
					
 Hi guys, 
 In the fast-gpio repository opening /dev/mem is executed in the Module::_SetupAddress.
 After opening /dev/mem the close(m_mfd) function is called which closes /dev/mem before doing any write command.
 I am trying to toggle gpio15 in my C++ program and its not working yet.
 
- 
					
					
					
					
 In https://github.com/OnionIoT/fast-gpio/blob/master/src/fastgpioomega2.cpp, the FastGpioOmega2()constructor calls_SetupAddress(REG_BLOCK_ADDR, REG_BLOCK_SIZE);whichopen("/dev/mem", O_RDWR), thenmmaps 1024 bytes starting from the given base address. The result tof themmapis stored intoregAddressand based on this memory-mapped address the program accesses the registers. So the file handle is not needed anymore and is closed.The mmap-ed block should later freed usingmunmap()but the code doesn't do that. However, it should still work.I.e. I don't see a problem with the library code. What is the application program you've written to access GPIO15? 
 
- 
					
					
					
					
 @Maximilian-Gerhardt Thank you for your reply. 
 GPIO16 and GPIO17 work on the Expansion dock but GPIO15 is always at 1.5V. I tested the same program on another MT7688 module but the same issue persists.
 I am using openwrt 18.06 for the onion omega.
 
- 
					
					
					
					
 @Gnichi-Mohamed said in About Fast-GPIO: GPIO16 and GPIO17 work on the Expansion dock but GPIO15 is always at 1.5V. Omega-Expansion-Dock.pdf (IO is GPIO). 
  
 Forget what I wrote. I misunderstood your post(s).