cancel
Showing results for 
Search instead for 
Did you mean: 

the two ways of using GPIO peripheral

IYetk
Associate III

Hello,

I am working with stm32mp157c-dk2

I have read the GPIO related parts in documents and wiki. I have also used GPIO from M4 side.

Are the following statements correct ?

Discovery board STM32MP157C-DK2 has two types of GPIOs connector:

  1. GPIO 40 pins connectors
  2. Arduino™ Uno connectors

There are two ways to use them;

  1. configure the required GPIO pins in c code and use it on M4 side
  2. configure device tree for the required GPIO pins, recompile linux and use it from A7 (linux) side

this is what I have understand from the documents. Did I understand correctly ?

Is something false or missing in the statements ?

1 REPLY 1
Bumsik Kim
Senior

Things to add:

  1. There are also LD5~LD8 LEDs and USER 1 and USER 2 buttons that you can configure.
  2. You don't need to recompile Linux but device tree.
  3. If you are NOT using associated peripherals but just simple GPIO operations only, you don't even need to touch the device tree. You can control them using /sys/class/gpio .