Can i compile and run mcuboot bootloader image separately on nordic boards..?

Hello,

I am using nCS version 1.9.1 for my application development which is fine. This gives me an application image which I can flash using vscode nrf connect extension.

I have a requirement to build and generate a separate mcuboot bootloader image as there is a custom mcuboot library we use for production, which has many code changes and I cannot integrate it with nCS v1.9.1.

  1.  Hence request you to kindly suggest if I can flash the image built from mcuboot original repo : https://github.com/mcu-tools/mcuboot on nordic boards..?
  2. And please also suggest what IDE I can use to compile mcuboot original repo independently..?
  3. And how can I flash the independent built mcuboot image on nordic board..?

Thanks,

Ubaid

Parents
  • Hello,

    It should be theoretically possible,  but to be honest I don't have much idea on this. And it will not be that easy to do this. The projects use the partition manager to build, according to the partitions.So you have to ensure that MCUboot will point to the same place.

    As a suggestion you can try by selecting a simple project  (hello_world) and add mcuboot to this. Then you can use the same pm_static.yml to both the simple project and the application to make sure that the partitions match. This is not exactly a proper method, but it should work. I am not sure whether this method is useful for you or not.

    Kind Regards,

    Abhijith

Reply
  • Hello,

    It should be theoretically possible,  but to be honest I don't have much idea on this. And it will not be that easy to do this. The projects use the partition manager to build, according to the partitions.So you have to ensure that MCUboot will point to the same place.

    As a suggestion you can try by selecting a simple project  (hello_world) and add mcuboot to this. Then you can use the same pm_static.yml to both the simple project and the application to make sure that the partitions match. This is not exactly a proper method, but it should work. I am not sure whether this method is useful for you or not.

    Kind Regards,

    Abhijith

Children
Related