Closed builderjer closed 6 months ago
You need to have the Bluetooth chip to be connected over the mini-UART which makes the full UART available for the Arduino. This can not be done dynamically when already in userspace. This has to be done at boot from config.txt so the GPIO pins are already routed the proper way.
Secondly, you need to make sure the linux console is not also talking to the full UART by making sure you do not have a console=serial
or console=ttyAMA0
(they are symlinked to each other via udev in userspace). Remove it completely or send it to console by console=console
which is default if not present.
That way the Bluetooth is switched over do different GPIO pins and the linux console is not talking to it, making the ttyAMA0 fully available fot the Arduino board attached to those GPIO pins.
Added required overlays and disabled onboard sound