[nrf52832] NCS sample & instruction for custom bootloader.

Hello Nordic,

I am looking for a sample or instruction (step by step) for custom bootloader.

Our application code is ready and all the left thing is BLE DFU and custom bootloader which should give HIGH on a specific GPIO.

I couldn't find any proper repo or instruction for it.

NCS version: v2.6.1

Parents
  • Hello,

    Sorry for the delayed response it’s currently the summer vacation period here in Norway, which caused a delay in getting back to you on this issue.

    You can apply project specific configuration using a .conf file (Kconfig fragments). This allows for GPIO or other functionality customization at build time. See the section on customizing the bootloader.For example: west build -b your_board -- -Dmcuboot_EXTRA_CONF_FILE=custom_mcuboot.conf, Here, custom_mcuboot.conf can live in your Git repository and lets you apply temporary or project specific settings without hardcoding them into the MCUboot source.

    If you need different bootloader behavior across multiple projects, consider maintaining separate MCUboot Git repositories per project. Each can have its own custom logic. See this devzone ticket for an explanation on how to build MCUboot separately.

    There’s also a method discussed in another DevZone case that explains how to add new functionalities to MCUboot without forking it. This approach keeps MCUboot unmodified and fully under your control in Git.

    Kind Regards,

    Abhijith

Reply
  • Hello,

    Sorry for the delayed response it’s currently the summer vacation period here in Norway, which caused a delay in getting back to you on this issue.

    You can apply project specific configuration using a .conf file (Kconfig fragments). This allows for GPIO or other functionality customization at build time. See the section on customizing the bootloader.For example: west build -b your_board -- -Dmcuboot_EXTRA_CONF_FILE=custom_mcuboot.conf, Here, custom_mcuboot.conf can live in your Git repository and lets you apply temporary or project specific settings without hardcoding them into the MCUboot source.

    If you need different bootloader behavior across multiple projects, consider maintaining separate MCUboot Git repositories per project. Each can have its own custom logic. See this devzone ticket for an explanation on how to build MCUboot separately.

    There’s also a method discussed in another DevZone case that explains how to add new functionalities to MCUboot without forking it. This approach keeps MCUboot unmodified and fully under your control in Git.

    Kind Regards,

    Abhijith

Children
No Data
Related