Hi Robert, Why don't you use the omnibusf4 board as starting point, since it uses same MCU model:
arm/stm32/omnibusf4/configs/nsh/defconfig:CONFIG_ARCH_CHIP_STM32F405RG=y Starting with a board and changing the MCU to other like you are doing will cause many issues, like this CONFIG_MM_REGIONS. It is better to start with a board using same MCU as your and then you evolve it to a different animal. Normally I test the board more similar to mine and then I create a new board from it, copying the entire board directory to a new name changing the boards/Kconfig in three places to add my new board and rename all CONFIG_BOARD_BLABLABLANAME to my board name. BR, Alan On 8/13/23, Robert Middleton <osfan6...@gmail.com> wrote: > Hi all, > > I'm working on a project and looking at the STM32F405RG with NuttX but > I'm running into some issues getting it to compile. For a dev board, > I'm using the SparkFun STM32 Thing Plus board, and my hope is to get > the console running on the USB port, but first I just want to get a > serial console working. > > What I've tried to do: > 1. Run configure with a similar processor: ./tools/configure.sh -l > nucleo-f4x1re:f401-nsh > 2. Change the system type via menuconfig(System Type -> STM32 Chip > Selection, select STM32F405RG) > 3. Try to build(using 'make'). This fails with an error: > ./chip/stm32_allocateheap.c:469:10: error: #error "CCM SRAM excluded > from the heap because CONFIG_MM_REGIONS < 2" > 4. Try to reconfigure NuttX with menuconfig, but now things are stuck > and don't work: > robert@debian:~/nuttx$ make menuconfig > CP: arch/dummy/Kconfig to /home/robert/nuttx/arch/dummy/dummy_kconfig > CP: boards/dummy/Kconfig to /home/robert/nuttx//Kconfig > LN: platform/board to /home/robert/apps/platform/dummy > LN: include/arch to arch/arm/include > LN: include/arch/board to /home/robert/nuttx//include > LN: drivers/platform to /home/robert/nuttx/drivers/dummy > LN: include/arch/chip to /home/robert/nuttx/arch/arm/include/stm32 > LN: arch/arm/src/chip to /home/robert/nuttx/arch/arm/src/stm32 > LN: arch/arm/src/board to /home/robert/nuttx//src > No directory at /home/robert/nuttx//src > make[1]: *** [tools/Unix.mk:300: arch/arm/src/board] Error 1 > make: *** [tools/Unix.mk:684: menuconfig] Error 2 > > Any thoughts as to what to look into to try and fix the problem? > Trying to build on Debian 11, with ARM GCC 8.3.1 from apt. > > -Robert Middleton >