Another update you need to do, is to change the default uart in device tree. By default uart1 is used, using the STLink usb port.
To use the UART6 output on arduino UNO connector, applied the attached patch. Patrice On 07/25/2017 02:20 PM, Patrice CHOTARD wrote: > Hi Francois > > By default, stm32f746-disco is configured in SPL mode, that's what > explain you don't get any output in the console > > To come back in non SPL mode, you can use the attached patch. > > Patrice > > On 07/21/2017 10:40 PM, Francois Dugast wrote: >> Hi, >> >> I am trying to run the master on a STM32F746 Discovery board [1] by using >> stm32f746-disco_defconfig. It was built with gcc-arm-none-eabi-5_4-2016q3 >> [2] and flashed with OpenOCD [3]. A USB-serial adapter is connected to >> USART6_RX and USART6_TX (pins D0 and D1 of the Arduino connector) and >> configured for 115200 8N1. No output coming out through the serial >> interface. It is unlikely to be a hardware issue as output is coming out >> normally this way when using the U-Boot repository from Emcraft. >> >> I do not know what I am doing wrong, can you help me out? >> >> Cheers, >> Francois >> >> [1] http://www.st.com/en/evaluation-tools/32f746gdiscovery.html >> [2] https://launchpad.net/gcc-arm-embedded >> [3] http://openocd.org >> [4] https://github.com/EmcraftSystems/u-boot >> _______________________________________________ >> U-Boot mailing list >> [email protected] >> https://lists.denx.de/listinfo/u-boot >> >> >> >> _______________________________________________ >> U-Boot mailing list >> [email protected] >> https://lists.denx.de/listinfo/u-boot
From c3917ac5c51616d28d316e8611c6c688e1a1e4c4 Mon Sep 17 00:00:00 2001 From: Patrice Chotard <[email protected]> Date: Tue, 25 Jul 2017 15:35:31 +0200 Subject: [PATCH 1/1] ARM: DTS: STM32: add UASRT6 support for stm32f746-disco This usart is routed to arduino UNO connector CN4: _ Rx: pin 1 _ Tx: pin 2 Signed-off-by: Patrice Chotard <[email protected]> --- arch/arm/dts/stm32f746-disco.dts | 21 ++++++++++++++++++++- arch/arm/dts/stm32f746.dtsi | 9 +++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/stm32f746-disco.dts b/arch/arm/dts/stm32f746-disco.dts index 2c7fa79..a44b60b 100644 --- a/arch/arm/dts/stm32f746-disco.dts +++ b/arch/arm/dts/stm32f746-disco.dts @@ -63,7 +63,7 @@ }; aliases { - serial0 = &usart1; + serial0 = &usart6; spi0 = &qspi; /* Aliases for gpios so as to use sequence */ gpio0 = &gpioa; @@ -108,6 +108,19 @@ }; }; + usart6_pins_a: usart6@0 { + pins1 { + pinmux = <STM32F746_PG14_FUNC_USART6_TX>; + bias-disable; + drive-push-pull; + slew-rate = <2>; + }; + pins2 { + pinmux = <STM32F746_PC7_FUNC_USART6_RX>; + bias-disable; + }; + }; + ethernet_mii: mii@0 { pins { pinmux = <STM32F746_PG13_FUNC_ETH_MII_TXD0_ETH_RMII_TXD0>, @@ -190,6 +203,12 @@ status = "okay"; }; +&usart6 { + pinctrl-0 = <&usart6_pins_a>; + pinctrl-names = "default"; + status = "okay"; +}; + &fmc { pinctrl-0 = <&fmc_pins>; pinctrl-names = "default"; diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index 54f5bc7..b4788f4 100644 --- a/arch/arm/dts/stm32f746.dtsi +++ b/arch/arm/dts/stm32f746.dtsi @@ -97,6 +97,15 @@ status = "disabled"; u-boot,dm-pre-reloc; }; + + usart6: serial@40011400 { + compatible = "st,stm32f7-usart", "st,stm32f7-uart"; + reg = <0x40011400 0x400>; + interrupts = <71>; + clocks = <&rcc 0 165>; + status = "disabled"; + }; + rcc: rcc@40023810 { #reset-cells = <1>; #clock-cells = <2>; -- 1.9.1
_______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

