fdu / STM32F746G-disco_Buildroot

28 stars 29 forks source link

release 0.1: stm32_usart.c linux driver not rx'ing for console on usart1 #4

Open cfriedt opened 5 years ago

cfriedt commented 5 years ago

I should note that this issue specifically affects tag 0.1, which is using the older uclinux kernel. It seems that is the only release where ethernet is actually working.

After making the following changes to get the console to appear on the stlink port, I'm able view the console output from both u-boot and linux (i.e. tx functionality works), but i am only able to type data into the uboot console, not linux (i.e. linux rx functionality is broken).

I assume that all of this has been properly tested with usart6, and that the console works properly for linux in that case?

configs/kernel:
CONFIG_STM32_USART1=y

configs/uboot-env:
bootdelay=3
bootargs=stm32_platform=stm32f7-disco console=ttyS0,115200 panic=3 console=tty0

buildroot/output/build/uboot-linux-cortexm-2.3.2/include/configs/stm32f746-discovery.h:
#define CONFIG_STM32_USART_PORT 1               /* USART0 */

#define CONFIG_STM32_USART_TX_IO_PORT   0       /* PORTA */
#define CONFIG_STM32_USART_TX_IO_PIN    9       /* GPIO9 */

#define CONFIG_STM32_USART_RX_IO_PORT   1       /* PORTB */
#define CONFIG_STM32_USART_RX_IO_PIN    7       /* GPIO7 */