Skip to contentSkip to conversation

Question: switching alternate pin functions in bcm2835

DISCUSSION Stephan Böttcher 1 participant 1 message Nov 5, 2022 GPIO

lore
Share & tools
lore
#0 lore raw

Moin,

is it appropriate to ask user questions here?

On a Raspberry Pi 2B, I connected the UART pins among others to an ATtiny µC to use avrdude in linuxgpio bit-banging mode to flash the program, and then use the same pins to talk to the ATtiny via /dev/ttyAMA0. After a reboot I can use the serial port. After using gpio on those pins, the serial link does not receive anything. There are not errors opening, writing, or reading /dev/ttyAMA0. Just no answer.

Is there a way (sysfs, ioclt, …) to reconnect the pins to the UART without a reboot?

Thanks!

Gruß,

Signature · 1 line
Stephan