Ahmed Kerem Öztürk
Hello,
I am using OpenPLC with a custom STM32 board based on **STM32F103ZET6 (144-pin package)**.
My main issue is that some GPIO pins available on this MCU package, such as **PF8 and PF9**, are **not defined** in the current OpenPLC board configuration.
When I try to use them, I get errors like:
`PF8 was not declared in this scope`
`PF9 was not declared in this scope`
I would like to learn specifically **how to define undefined pins** and **how to add extra GPIO pins** to OpenPLC for this MCU.
### What I want to know:
1. How can I manually define pins like PF8 / PF9 that are missing?
2. Which source files should be edited to add new pins?
3. How does OpenPLC map new MCU pins to PLC addresses such as `%QX0.0`, `%QX0.1`?
4. What is the correct process for adding extra pins on a 144-pin STM32 device?
My hardware is working, because PF8 and PF9 can be controlled from Arduino IDE. I only need to understand how to make OpenPLC recognize and use these pins.
Any help or examples would be very appreciated.
Thank you.
Reply 0 0
thiagoralves
The fist thing you can try is typing PF8 on the pin mapping screen and then clicking on adding custom pin. If that doesn’t work then you’re out of luck. It means that your particular board is not supported on OpenPLC and you’re using a board package for a similar, but different board
Reply 0 0
Reply