linguini1 commented on code in PR #19765: URL: https://github.com/apache/nuttx/pull/19765#discussion_r3750507969
########## Documentation/platforms/arm/stm32l4/boards/b-l475e-iot01a/index.rst: ########## @@ -257,6 +257,38 @@ nsh: Configures the NuttShell (nsh) located at examples/nsh. This configuration is focused on low level, command-line driver testing. +qemu: +----- + +The same NuttShell configuration as 'nsh', but targeted at the QEMU +``b-l475e-iot01a`` machine instead of real hardware. QEMU models the +STM32L4x5 core peripherals (RCC, GPIO, EXTI, SYSCFG, USART) but does +not model the QUADSPI controller or the on-board MX25R6435F flash, so +this configuration drops the external flash stack that 'nsh' enables:: + + CONFIG_B_L475E_IOT01A_MTD_FLASH (and the QSPI/MTD/SMARTFS chain it selects) + +Without that change the 'nsh' image panics during board bring-up, inside +``stm32_qspi_initialize()`` -> ``mx25rxx_initialize()``, before the console +ever produces output. + +Build and run it with:: + + tools/configure.sh b-l475e-iot01a:qemu + make + qemu-system-arm -M b-l475e-iot01a -nographic -kernel nuttx + +Console output appears on USART1, which the machine wires to the first +serial port. Exit QEMU with :kbd:`Ctrl-a x`. + +NOTE: QEMU's STM32L4x5 USART model never calls Review Comment: Just a nitpick FYI for next time, you can use the RST ``.. note::` directive and it will render as a nice notice. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
