This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't use private signing key starting in v1.3.0

After moving to v1.3.0, my build fails, because the imgtool can't find the module cbor. I see some updates for zephyr that indicate cbor.py is now required, and it's included in the v1.3.0 toolchain directory (v1.3.0/toolchain/opt/bin/Lib/site-packages/cbor/cbor.py) but the build isn't seeing it. Copying the cbor.py file to the bootloader/mcuboot/scripts directory fixes the issue.

Is there an environment variable that I need to set somewhere? It seems like I need to update the Python path somehow, but I don't see any reference to that in the ncs documentation.

Thanks,

Chris.

Parents Reply
  • Didrik,

    The drop-down menu is the same as your screenshot. I tried running west build from the command line prompt, but CMake is failing a test build with "unrecognized option '--major-image-version'". I suspect I have an environment variable set wrong.

    I'm using v0.7.1 for the toolchain manager. nRF Connect doesn't have an "Update" button showing, so I'm assuming that's the latest one.

    I have the segger_embedded_studio folder in the toolchain directory, and if I run the SEGGER Embedded Studio in the toolchain directory, everything builds properly even if I remove the cbor.py file I copied over.

    I just created a start menu shortcut to the segger executable in the toolchain directory, and it seems to work fine. I'll need to change this every time I upgrade the toolchain, but that's not a big deal.

    If the devs need any help debugging the "Open IDE" issue on the toolchain manager I'm happy to help, but I'm good with this solution for now.

    Thanks,

    Chris.

Children
  • Thanks for the extra information, I'll inform our developers.

     

    krog1 said:
    CMake is failing a test build with "unrecognized option '--major-image-version'". I suspect I have an environment variable set wrong.

     I am not entirely sure what the source of that error is, but it seems to disappear if you do a 'pristine' build (add the '-p' flag to your west build command).

     

    krog1 said:
    If the devs need any help debugging the "Open IDE" issue on the toolchain manager I'm happy to help, but I'm good with this solution for now.

     Good to hear that you now got a working setup. I'll let you know if we need more information.

    Best regards,

    Didrik

Related