I am unable to get anywhere as it always fails the "termios settings" check. The failure is that c_cflag comes back 0x1cb1 when the program is trying to set it to 0x1db1. Am investigating...
The problem is that /dev/ttyS0 on the Raspberry Pi does not support parity. So, the value returned after tying to set termios is correct. Will need to work up support for one of the other UARTs on the Pi. Looks like UART4 (/dev/ttyAMA3) will work for me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another option is to disable bluetooth (dtoverlay=disable-bt), then the primary uart on /dev/serial0 changes from the mini-UART (ttyS0) to the PL011 UART (ttyAMA0) previously used for BT-HCI, which does work for stm32flash.
So it's possible to get stm32flash working on the same pins without using another UART, if you can give up BT.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have just added some RPi info to the Hints section in the wiki, based on another report. Since it mentions dtoverlay=miniuart-bt I think it allows using BT (but no serial console). Please let me know how that works, or if the wiki entry can be improved.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem is that /dev/ttyS0 on the Raspberry Pi does not support parity. So, the value returned after tying to set termios is correct. Will need to work up support for one of the other UARTs on the Pi. Looks like UART4 (/dev/ttyAMA3) will work for me.
Another option is to disable bluetooth (
dtoverlay=disable-bt
), then the primary uart on /dev/serial0 changes from the mini-UART (ttyS0) to the PL011 UART (ttyAMA0) previously used for BT-HCI, which does work for stm32flash.So it's possible to get stm32flash working on the same pins without using another UART, if you can give up BT.
I had seen that suggestion elsewhere, but we anticipate using the BT capability later in this project. Thanks for the suggestion.4
I have been able to get UART4 to work on the new pins.
I have just added some RPi info to the Hints section in the wiki, based on another report. Since it mentions
dtoverlay=miniuart-bt
I think it allows using BT (but no serial console). Please let me know how that works, or if the wiki entry can be improved.