diff --git a/arch/arm/src/efm32/Kconfig b/arch/arm/src/efm32/Kconfig index 2ca920c330..61bdc40518 100644 --- a/arch/arm/src/efm32/Kconfig +++ b/arch/arm/src/efm32/Kconfig @@ -48,16 +48,19 @@ endchoice # in turn, select general capabilities of the MCU family config EFM32_EFM32TG - bool n + bool + default n config EFM32_EFM32G - bool n + bool + default n select EFM32_HAVE_USART2 select EFM32_HAVE_UART0 select EFM32_HAVE_LEUART1 config EFM32_EFM32GG - bool n + bool + default n select EFM32_HAVE_USART2 select EFM32_HAVE_UART0 select EFM32_HAVE_UART1 @@ -96,19 +99,19 @@ config EFM32_UART # Then, these are the actual, selectable peripheral options -config EFM32_UART0 +config EFM32_USART0 bool "USART0" default n select ARCH_HAVE_USART0 select EFM32_UART -config EFM32_UART1 +config EFM32_USART1 bool "USART1" default n select ARCH_HAVE_USART1 select EFM32_UART -config EFM32_UART2 +config EFM32_USART2 bool "USART2" default n depends on EFM32_HAVE_USART2 @@ -138,4 +141,5 @@ config EFM32_LEUART1 select EFM32_HAVE_LEUART1 select EFM32_UART -endif +endmenu # EFM32 Peripheral Support +endif # ARCH_CHIP_EFM32 diff --git a/configs/efm32-g8xx-stk/README.txt b/configs/efm32-g8xx-stk/README.txt index b81df54ff3..d84035e2b7 100644 --- a/configs/efm32-g8xx-stk/README.txt +++ b/configs/efm32-g8xx-stk/README.txt @@ -60,52 +60,70 @@ LEDs Serial Console ============== - The EFM32G890F128 support the following options for serial output: + Pin Availability + ---------------- + The EFM32G890F128 support the following options for serial output. NOTE + (1) that not all of these pins are available for use as a serial console, + however. And (2) not all pins made available by the board. - ------- -- ---- - US0_RX #0 PE11 - US0_RX #1 PE6 - US0_RX #2 PC10 + EFM32 PIN GPIO NOTES/CONFLICTS/AVAILABILITY + ------- -- ---- ---------------------------------------------- + US0_RX #0 PE11 LCD_PE11, LCD_SEG7 + US0_RX #1 PE6 LCD_PE6, LCD_COM2 + US0_RX #2 PC10 UIF_SLIDER2 - US0_TX #0 PE10 - US0_TX #1 PE7 - US0_TX #2 PC11 + US0_TX #0 PE10 LCD_PE10, LCD_SEGG + US0_TX #1 PE7 LCD_PE7, LCD_COM3 + US0_TX #2 PC11 UIF_SLIDER3 ------- -- ---- - US1_RX #0 PC1 - US1_RX #1 PD1 + US1_RX #0 PC1 UIF_LED1 + US1_RX #1 PD1 Not connected on this board - US1_TX #0 PC0 - US1_TX #1 PD0 + US1_TX #0 PC0 UIF_LED0 + US1_TX #1 PD0 Not connected on this board ------- -- ---- - US2_RX #0 PC3 - US2_RX #1 PB4 + US2_RX #0 PC3 UIF_LED3 + US2_RX #1 PB4 LCD_PB4, LCD_SEG21 - US2_TX #0 PC2 - US2_TX #1 PB3 + US2_TX #0 PC2 UIF_LED2 + US2_TX #1 PB3 LCD_PB3, LCD_SEG20 ------- -- ---- - U0_RX #1 PE1 - U0_RX #2 PA4 + U0_RX #1 PE1 **AVAILABLE at TP130** (if BC_EN is low, see below) + U0_RX #2 PA4 LCD_PA4, LCD_SEG17 - U0_TX #0 PF6 - U0_TX #1 PE0 - U0_TX #2 PA3 - U0_TX #3 PC14 + U0_TX #0 PF6 LCD_PF6, LCD_SEG24 + U0_TX #1 PE0 **AVAILABLE at TP129** (if BC_EN is low, see below) + U0_TX #2 PA3 LCD_PA3, LCD_SEG16 + U0_TX #3 PC14 **AVAILABLE at TP117** ------- -- ---- - LEU0_RX #0 PD5 - LEU0_RX #1 PB14 - LEU0_RX #2 PE15 + LEU0_RX #0 PD5 **AVAILABLE at TP123 and EXP port pin 14** + LEU0_RX #1 PB14 CTRLMCU_SPI_MISO + LEU0_RX #2 PE15 LCD_PE15, LCD_SEG11 - LEU0_TX #0 PD4 - LEU0_TX #1 PB13 - LEU0_TX #2 PE14 + LEU0_TX #0 PD4 **AVAILABLE at TP122 and EXP port pin 12** + LEU0_TX #1 PB13 CTRLMCU_SPI_SCK + LEU0_TX #2 PE14 LCD_PE14, LCD_SEG10 ------- -- ---- - LEU1_RX #0 PC7 - LEU1_RX #1 PA6 + LEU1_RX #0 PC7 DEBUG_MCU_SW_ENABLE + LEU1_RX #1 PA6 DEBUG_TDI_IN - LEU1_TX #0 PC6 - LEU1_TX #1 PA5 + LEU1_TX #0 PC6 DEBUG_DH_SW_ENABLE + LEU1_TX #1 PA5 DEBUG_TMS_SWDIO_IN ------- -- ---- + Default Serial Console + ---------------------- + UART0 is configured as the default serial console at 115200 8N1 + on pins PE0 and PE1. + + Communication through the Board Controller + ------------------------------------------ + The control MCU acts as a board controller (BC). There is a UART + connection between the EFM and the BC. The connection is made by + setting the BC_EN line high. The EFM can then use the BSP to send + commands to the BC. When BC_EN is low, BC_TX and BC_RX can be used + by other applications. + Configurations ============== Each EFM32 Gecko Starter Kit configuration is maintained in a sub-director diff --git a/configs/efm32-g8xx-stk/nsh/defconfig b/configs/efm32-g8xx-stk/nsh/defconfig index 10893bca75..4ada1f017a 100644 --- a/configs/efm32-g8xx-stk/nsh/defconfig +++ b/configs/efm32-g8xx-stk/nsh/defconfig @@ -20,7 +20,7 @@ CONFIG_WINDOWS_CYGWIN=y # # Build Configuration # -# CONFIG_APPS_DIR="../apps" +#CONFIG_APPS_DIR="../apps" CONFIG_BUILD_FLAT=y # CONFIG_BUILD_2PASS is not set @@ -131,6 +131,22 @@ CONFIG_ARCH_CHIP_EFM32G890F128=y CONFIG_EFM32_EFM32G=y # CONFIG_EFM32_EFM32GG is not set +# +# EFM32 Peripheral Support +# +CONFIG_EFM32_HAVE_USART2=y +CONFIG_EFM32_HAVE_UART0=y +# CONFIG_EFM32_HAVE_UART1 is not set +CONFIG_EFM32_HAVE_LEUART1=y +CONFIG_EFM32_UART=y +# CONFIG_EFM32_USART0 is not set +# CONFIG_EFM32_USART1 is not set +# CONFIG_EFM32_USART2 is not set +CONFIG_EFM32_UART0=y +# CONFIG_EFM32_UART1 is not set +# CONFIG_EFM32_LEUART0 is not set +# CONFIG_EFM32_LEUART1 is not set + # # Architecture Options # @@ -347,7 +363,7 @@ CONFIG_SERIAL=y CONFIG_DEV_LOWCONSOLE=y # CONFIG_16550_UART is not set # CONFIG_ARCH_HAVE_UART is not set -# CONFIG_ARCH_HAVE_UART0 is not set +CONFIG_ARCH_HAVE_UART0=y # CONFIG_ARCH_HAVE_UART1 is not set # CONFIG_ARCH_HAVE_UART2 is not set # CONFIG_ARCH_HAVE_UART3 is not set @@ -371,7 +387,21 @@ CONFIG_DEV_LOWCONSOLE=y # # USART Configuration # -# CONFIG_MCU_SERIAL is not set +CONFIG_MCU_SERIAL=y +CONFIG_UART0_SERIAL_CONSOLE=y +# CONFIG_NO_SERIAL_CONSOLE is not set + +# +# UART0 Configuration +# +CONFIG_UART0_RXBUFSIZE=64 +CONFIG_UART0_TXBUFSIZE=64 +CONFIG_UART0_BAUD=115200 +CONFIG_UART0_BITS=8 +CONFIG_UART0_PARITY=0 +CONFIG_UART0_2STOP=0 +# CONFIG_UART0_IFLOWCONTROL is not set +# CONFIG_UART0_OFLOWCONTROL is not set # CONFIG_SERIAL_IFLOWCONTROL is not set # CONFIG_SERIAL_OFLOWCONTROL is not set # CONFIG_USBDEV is not set