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, then I'm starting to run out of suggestions. Can you check if any UARTE instance are running at all in your project, and also double check the GPIOTE differences between the two zephyr.dts files?

    Best regards,

    Simon

  • Here is the diff:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    $ diff build/zephyr/zephyr.dts build/mcuboot/zephyr/zephyr.dts
    9c9
    < zephyr,entropy = &psa_rng;
    ---
    > zephyr,entropy = &cryptocell;
    13a14
    > zephyr,sram = &sram0_s;
    15,16c16,18
    < zephyr,sram = &sram0_ns;
    < zephyr,code-partition = &slot0_ns_partition;
    ---
    > zephyr,code-partition = &slot0_partition;
    > zephyr,sram-secure-partition = &sram0_s;
    > zephyr,sram-non-secure-partition = &sram0_ns;
    34d35
    < ext-flash = &mx25r16;
    60c61
    < peripheral@40000000 {
    ---
    > peripheral@50000000 {
    63c64
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Reply
  • Here is the diff:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    $ diff build/zephyr/zephyr.dts build/mcuboot/zephyr/zephyr.dts
    9c9
    < zephyr,entropy = &psa_rng;
    ---
    > zephyr,entropy = &cryptocell;
    13a14
    > zephyr,sram = &sram0_s;
    15,16c16,18
    < zephyr,sram = &sram0_ns;
    < zephyr,code-partition = &slot0_ns_partition;
    ---
    > zephyr,code-partition = &slot0_partition;
    > zephyr,sram-secure-partition = &sram0_s;
    > zephyr,sram-non-secure-partition = &sram0_ns;
    34d35
    < ext-flash = &mx25r16;
    60c61
    < peripheral@40000000 {
    ---
    > peripheral@50000000 {
    63c64
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Children
No Data