toggle quoted messageShow quoted text
I opened up the menuconfig and verified that “Device Drivers > Serial Drivers -> STM32 MCU serial driver > Enable STM32 USART1 Port” was selected (presumably because I set CONFIG_UART_STM32_PORT_1=y in my project-specific config file). What other config options do I need to set? When browsing through the menuconfig I did not see a place to set the baudrate (also did not see a relevant baudrate config option here: https://www.zephyrproject.org/doc/reference/kconfig/index.html
On May 22, 2017, at 1:33 AM, Adam Podogrocki <firstname.lastname@example.org> wrote:
if you are using board configuration file purposed for Nucleo F103RB, then the default UART configuration refers to UART2, pins TX=A2, RX=PA3. Pins configuration can be found in drivers/pinmux/stm32/pinmux_board_nucleo_f103rb.c.
If you would like to use UART1, then in menuconfig you have to modify settings for Serial drivers & Console drivers to match the desired UART port and baud rate.
Compile errors point out that the UART1 configuration is missing.
Please also take a look at e.g "dts/arm/nucleo_l476rg.fixup" file and do appropriate amendments in nucleo f103rb corresponding file.
On 21 May 2017 at 23:54, Scott Nelson <email@example.com> wrote:
I’m trying to get Zephyr running on an STM32F103C8 "blue pill" board by using the similar nucleo_f103rb board config (with which I can successfully get an LED to blink). I’m trying to setup printk by enabling CONFIG_UART_STM32_PORT_1=y (TX=PA9, RX=PA10) but I get the following compile errors: https://pastebin.com/raaww0a8
Am I missing additional config?
I was also planning on setting CONFIG_UART_CONSOLE_ON_DEV_NAME="UART_1" and CONFIG_PRINTK=y in hopes of being able to read printk messages via a USB-to-serial adapter.
Zephyr-users mailing list