tama00 - 2024-05-06

Hello everyone,

I have a working SPI connection (with transferExt) between a Raspberry master with Codesys and an ESP32 slave. I would also like to use a few GPIO pins. Is there a problem with using SPI AND GPIOs?

Environment:
Raspberry Pi 4+ with Raspian from Oct 23
Codesys V3.4 SP19 Patch 5 with Runtime Version 4.10.0.0
Device: GPIOs B+/Pi2

My problem:
The status is displayed as “GPIOs : not running”. And also during mapping the message “The bus is not running. The values shown are perhaps not actual”. However, the variable changes that I make in my program are displayed under “Current Value”. In the Logic Analyzer, the pin toggles during transmission with small intervals of +-4us (seems to be a cyclical disorder, but I don't know where exactly it could be coming from). This applies to pins that I actually use (output) but also to the other GPIOs (not used). With GPIO 4, the line remains permanently high.

Attached is a screenshot from the Logic Analyzer. Channel 1,3,5 were GPIO pin 26, 22, 17

Would be very grateful for help.
Best regards