Hello,

I am hitting a strange error only with this project where the app_update.bin file is 239672 bytes in size.
The error I get is when I try to send it to the board with newtmgr. I get Error: 3.
I tried to add debug for the newtmgr, the information I got was not comprehensive.
I saw on the Internet that sometimes it might be the file size, but did not see what was the size limit.

Does anyone has got similar error? was it related to size ?

Regards
louis.h

    Hello Jared,

    Thanks for the swift reply…
    ok this means also that using FOTA will work if we use this bootloader right ?

    Regards
    louis.h

      lbh00 ok this means also that using FOTA will work if we use this bootloader right ?

      Yes! 😀

      This is a small size 192k for a real life application.
      Will there be a support for a larger file ?

      Regards
      louis.h

        lbh00 future updates may have a larger size. I’ll likely be getting back to that in the near future.

        5 months later

        Hello Jared,
        I see there is Bootloader V2, does this one support larger files to update?
        I am trying it but I am not successful…sometimes the download starts but stops and timeout …

        Is there something special that I should do on my application during compilation to be compatible with this bootloader?

        Thanks

          hello Jared,

          thanks for your reply.
          yes i used the downloaded file from your website and using J-link programmed the feather board.
          I enter DFU mode and I see the blue LED turn ON.
          However the download of an application firmware is failing after few kilobytes downloaded because of timeout…
          what could be the issue?

            lbh00 I suggest you update to the latest SDK if you can. V2 bootloader is only supported with NCS > 1.4x

            Hello

            I installed ncs version 1.5.0, but I still get the same behaviour.
            i.e. timeout after the first 1-2 % downloaded.

            How can one troubleshoot this ?

            Regards

            Hello,
            no I am not using LittleFS.
            I have used the proposed MCUboot provided in the link, now I am sometimes successful with the update, and some other times timeout occurs.
            Note that both cases occur with the same application firmware files, and same MCUboot version.

            Regards

              lbh00 can you confirm you don’t have a terminal session open in another tab/window? newtmgr will fail if you are connected to the serial port elsewhere.

              Yes I can confirm,

              Actually the timeout occurs while transferring the file most of the time.

              Hello
              I tried the -r3 option: retry 3 times as follows
              newtmgr -r3 -c serial image upload build/zephyr/app_update.bin

              and this works with a higher probability than with no -r option, I am thinking that maybe the high speed and cable combination is causing issues.
              Can I use lower baud rates? I tried to change to baud=115200, but this did not work: the download was not even starting.

                maybe some info about my setup would be helpful.
                I am on a mac, with USB C connectors, so I have a USB hub(?) in order to have a USB A connector, than use USB A to USB mini cable.
                I tried changing the cable but this did not help.

                  lbh00 Can I use lower baud rates?

                  On the V2 bootloader you can only use 1M BAUD

                  lbh00 how big is the image you’re trying to transfer?

                  Hello Jared,

                  The image size will be about 700Kbytes eventually.
                  The -r3 option seem to be acceptable so far.

                  I will later on try a better usb cable to see if this helps or not.

                  Cheers

                    Terms and Conditions | Privacy Policy