Using NCS as Zephyr Support for STM32

Using NCS 2.1.2 and it's accompanying Zephyr version, we have a few boards we are building for. Some are based around the nRF9160/nRF52840 and some are around STM32 devices. This has been fine until I just tried enabling MCUBOOT as the bootloader for the STM32 devices. NCS is trying to enable several NRF defines once I enable CONFIG_BOOTLOADER_MCUBOOT=y I don't see that it should select anything that is Nordic specific, but there must be some dependencies that are being enabled? It has all kinds of build issues at that point since it is an STM32 chip but is now being treated partially as a Nordic chip. Any ideas how to fix this other than build it outside of the NCS? Or is that my only option?

Parents Reply
  • The NCS allows the building of other chips based around Zephyr, like the STM32. It should be something as simple as a CMake check that the target board has a Nordic device or not whether any of the "nrf" or "nrfxlib" is included. Or does Nordic not guarantee that any of the other Zephyr supported boards/mcu's will build because it always tries to include Nordic cmake files when it shouldn't? I am able to build for a custom STM32 board, until I include CONFIG_BOOTLOADER_MCUBOOT, then a bunch of Nordic unique stuff gets pulled in, but fails, because the rest of Zephyr is only looking for STM32 related files.

Children
Related