stbenn opened a new pull request, #16327: URL: https://github.com/apache/nuttx/pull/16327
This adds the ability to use USART2 as a console if wanting to use a console without going through the ST-Link VCOM port. This required when using an external debugger or trace with this board. ## Summary The Nucleo H563ZI development board supports using an external debugger or trace over the onboard MIPI20 connector (CN5) when a jumper is applied to JP1. However, this removes RX from onboard ST-Link VCOM port. This change allows configuring USART2 as the serial console to allow full serial console connection when using an external debugger. Also organized a couple of defines in `board.h` to align with their location in other STM32 board files. ## Impact Makes Nucleo H563ZI board support compatible with external debuggers while maintaining serial console. ## Testing - Host: Ubuntu 24.04 Docker container on Ubuntu 24.04 host (WSL2) - Compiler: `arm-none-eabi-gcc (Arm GNU Toolchain 13.3.Rel1 (Build arm-13.24)) 13.3.1 20240614` - Configuration: `nucleo-h563zi:nsh` with modifications: - Enable `USART2` in peripheral selection - Switch serial console to `USART2_SERIAL_CONSOLE` NSH was confirmed to run over USART2. This is the result of `make savedefconfig` including the tweaks to enable USART2 console: ``` # # This file is autogenerated: PLEASE DO NOT EDIT IT. # # You can use "make menuconfig" to make any modifications to the installed .config file. # You can then do "make savedefconfig" to generate a new defconfig file that includes your # modifications. # # CONFIG_NSH_ARGCAT is not set # CONFIG_STANDARD_SERIAL is not set CONFIG_ARCH="arm" CONFIG_ARCH_BOARD="nucleo-h563zi" CONFIG_ARCH_BOARD_NUCLEO_H563ZI=y CONFIG_ARCH_BUTTONS=y CONFIG_ARCH_CHIP="stm32h5" CONFIG_ARCH_CHIP_STM32H563ZI=y CONFIG_ARCH_CHIP_STM32H5=y CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_STACKDUMP=y CONFIG_ARMV8M_STACKCHECK=y CONFIG_BOARD_LOOPSPERMSEC=9251 CONFIG_BUILTIN=y CONFIG_DEBUG_ASSERTIONS=y CONFIG_DEBUG_FEATURES=y CONFIG_DEBUG_SYMBOLS=y CONFIG_FS_PROCFS=y CONFIG_FS_PROCFS_REGISTER=y CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_LINE_MAX=64 CONFIG_NSH_ARCHINIT=y CONFIG_NSH_BUILTIN_APPS=y CONFIG_NSH_DISABLE_IFUPDOWN=y CONFIG_NSH_FILEIOSIZE=512 CONFIG_NSH_READLINE=y CONFIG_PREALLOC_TIMERS=4 CONFIG_RAM_SIZE=655360 CONFIG_RAM_START=0x20000000 CONFIG_RAW_BINARY=y CONFIG_READLINE_CMD_HISTORY=y CONFIG_READLINE_TABCOMPLETION=y CONFIG_RR_INTERVAL=200 CONFIG_SCHED_WAITPID=y CONFIG_STACK_COLORATION=y CONFIG_STM32H5_USART2=y CONFIG_STM32H5_USART3=y CONFIG_SYSTEM_NSH=y CONFIG_TASK_NAME_SIZE=0 CONFIG_USART2_SERIAL_CONSOLE=y ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org