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
  • Hmm, okay, I'm not able to see any glaring issues in this diff at least, and so we think this must be a HW issue with some bad soldering perhaps. Can you upload the schematics and PCB layout for your custom board so we can review them on our end to confirm everything is as it should be. Also please double check that the board you're seeing this issue on is soldered correctly.

    Best regards,

    Simon

Reply
  • Hmm, okay, I'm not able to see any glaring issues in this diff at least, and so we think this must be a HW issue with some bad soldering perhaps. Can you upload the schematics and PCB layout for your custom board so we can review them on our end to confirm everything is as it should be. Also please double check that the board you're seeing this issue on is soldered correctly.

    Best regards,

    Simon

Children
Related