2023-03-21 08:57 AM
Hello,
Using the stock image I've found I can manipulate the red LED on PA13 by using gpio commands:
gpioset gpiochip0 13=0
gpioset gpiochip0 13=1
I need to access Pin 38 and Pin 40 on the 40 pin header, which are PI6 and PF11.
These are both tied to the SAI2 device. I removed the device, and the modules and set these pins as outputs and they are unused:
# gpioinfo |grep PI6
line 6: "PI6" unused output active-high
# gpioinfo |grep PF11
line 11: "PF11" unused output active-high
Manipulation of these is done the same way:
root@stm32mp1:~# gpioset gpiochip5 11=0
root@stm32mp1:~# gpioset gpiochip5 11=1
root@stm32mp1:~# gpioset gpiochip8 6=0
root@stm32mp1:~# gpioset gpiochip8 6=1
However, Neither of these pins go "high" and they are always "low".
And since they are set to active-high, like PA13, I would expect them to be "on" at boot.
Am I doing something wrong, or do I have a misunderstanding of how this works?
Solved! Go to Solution.
2023-03-21 09:15 AM
Hi,
I assume you are working on STM32MP157x-DK1/2 board.
This is (maybe not clearly) stated on board user manual
If you look at board schematics, you will more clearly see these signals used for audio Codec and that the wires going to GPIO connector are 'open' by default.
You need to un-solder relevant 'SB' from Audio side and put the right ones on GPIO side.
Regards,
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2023-03-21 09:15 AM
Hi,
I assume you are working on STM32MP157x-DK1/2 board.
This is (maybe not clearly) stated on board user manual
If you look at board schematics, you will more clearly see these signals used for audio Codec and that the wires going to GPIO connector are 'open' by default.
You need to un-solder relevant 'SB' from Audio side and put the right ones on GPIO side.
Regards,
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2023-03-21 09:28 AM
Thank you! I did not see that in the user manual!
2023-03-21 10:21 AM
Thanks @PatrickF
Moving SB2 and SB4 to SB13 and SB15 solved the problem. Lesson Learned (which I've learned before): Check the schematic on these boards because things are not a given,