download_client: Unexpected HTTP response: 400 bad request when CONFIG_MCUBOOT_IMG_MANAGER=n

If we enable MCUBOOT_IMG_MANAGER, SECURE_BOOT and BUILD_S1_VARIANT, FOTA works fine. However,

there is a constant 150mA power draw. If we disable them, power draw is normal but we then get "400 bad request" error.

Any idea why just enabling those three options causing the power draw or why not configuring them causes the bad request?

[00:00:18.082,580] <inf> download_client: Connecting to www.website.com
[00:00:18.339,508] <err> download_client: Unexpected HTTP response: 400 bad request
[00:00:18.339,996] <err> fota_download: Download client error
Received error from fota_download

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y #
#CONFIG_MCUBOOT_IMG_MANAGER=y
#CONFIG_SECURE_BOOT=y
#CONFIG_BUILD_S1_VARIANT=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n

Parents
  • Hi,

     

    If we enable MCUBOOT_IMG_MANAGER, SECURE_BOOT and BUILD_S1_VARIANT, FOTA works fine.

    Is there a specific reason why you are disabling these options?

     I assume you want MCUBOOT_IMG_MANAGER selected, to make the application "FOTA aware".

    Any idea why just enabling those three options causing the power draw or why not configuring them causes the bad request?

    [00:00:18.082,580] <inf> download_client: Connecting to www.website.com
    [00:00:18.339,508] <err> download_client: Unexpected HTTP response: 400 bad request
    [00:00:18.339,996] <err> fota_download: Download client error

    What is the full path of your download URL?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    If we enable MCUBOOT_IMG_MANAGER, SECURE_BOOT and BUILD_S1_VARIANT, FOTA works fine.

    Is there a specific reason why you are disabling these options?

     I assume you want MCUBOOT_IMG_MANAGER selected, to make the application "FOTA aware".

    Any idea why just enabling those three options causing the power draw or why not configuring them causes the bad request?

    [00:00:18.082,580] <inf> download_client: Connecting to www.website.com
    [00:00:18.339,508] <err> download_client: Unexpected HTTP response: 400 bad request
    [00:00:18.339,996] <err> fota_download: Download client error

    What is the full path of your download URL?

     

    Kind regards,

    Håkon

Children
Related