Project is not compile with SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU

We are building project with this config parameters:


But we get this error messages while compile:
If we use CONFIG_LOG=n for mcuboot, then project compiles normally. Also we get this warnings:

Is there any way to fix that?

Parents
  • Hi,

     

    I am unable to reproduce this compilation error, with my minimal configuration in hello_world:

    hello_world_sysbuild_mcuboot.zip

    Could you check what I'm missing?

     

    That second warning is something I will report back to the team. That looks incorrect, as the sizeof() should be sizeof(*ctx) to get the type.

     

    Kind regards,

    Håkon

  • hello_world_sysbuild_mcuboot.7z
    Changed your project. Now it reproduces the problem.

  • Hi,

     

    Thank you so much for sharing.

    The issue is that it is the incorrect define that was originally used for the log declaration.

    It shall be declared with BOOT_LOG_MODULE_REGISTER, and not +BOOT_LOG_MODULE_DECLARE.

     

    Here's a patch for v2.9.x with the proposed fixes:

     

    I will ofcourse bring this up internally.

     

    Kind regards,

    Håkon

  • This fixes worked perfectly. Is there any information if this changes will be merged in the next SDK version (3.0.3 i guess)?

Reply Children
  • Hi,

     

    markrup said:
    This fixes worked perfectly.

    This is great to hear!

    markrup said:
    Is there any information if this changes will be merged in the next SDK version (3.0.3 i guess)?

    Unfortunately, I have not gotten a more detailed description on when this will be fixed, but I have notified our mcuboot team of this bug.

     

    Kind regards,

    Håkon