• Support
  • Issue with the Load via Bootloader Task

I am trying to load the at_client sample application and I am running into an issue that I did not see last week.

I can “build” and “build pristine” but when I go to “load via bootloader” I get the following error:

app_update.bin not found. Build project with bootloader before loading.

Figuring something must have been updated, I took the following steps:
1) Uninstalled Zephyr (side note, this is hard as you need to uninstall many other extensions such as C/C+, Cortex Debug and more).
2) Deleted my local repo
3) Reinstalled Zephyr
3) Re-ran setup - Zephyr Tools: Init Repo with - https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers
4) Setup Newtmanager - Zephyr Tools: Setup Newtmgr -
4) Built the project: Zephyr Tools: Build: at_client and circuitdojo_feather_nrf9160_ns
5) Put the device into bootloader mode (blue light) and Zephyr Tools: Load with Bootloader

Any ideas about what I did wrong? The error messages says to build with bootloader but there is only “build” and “build pristine” under the Zephyr Tools.

Thanks, Chip

    chipmc what version of the extension are you using? Can you provide the full output? It’s likely looking in the wrong place. The path to your project should be nfed/samples/at_client. You may want to run the Zephyr Tools: Change Project to make sure you’re in the correct folder. Also remove the app folder if that still exists in your project.

      You can also check nfed/samples/at_client/build/zephyr to see if app_update.bin is there. (That’s where it’s pulled from) Since you’re using the NFED version, it should be building the sample with app_update.bin

      jaredwolff

      Jared,

      Thank you for your help. I am using the Zephyr plug-in v0.1.17

      The code does seem to be in nfed/samples/at_client

      I do not see an app folder.

      I executed the change project command and build - all completed successfully. But, when I went to load via bootloader, I get the message above. Not sure what I can give you for “full output” but happy to do so.

      I do see app_update.bin in the /nfed/samples/at_client/build/zephyr folder.

      Thanks,

      Chip

        chipmc that’s good it’s in nfed/samples/at_client. Now, to figure out why it can’t be found!

        chipmc I executed the change project command and build - all completed successfully. But, when I went to load via bootloader, I get the message above. Not sure what I can give you for “full output” but happy to do so.

        Ahh, right there isn’t any output on a failure like that. One thing you an confirm, can you run the Zephyr Tools: Change Project and select at_client? It’s very possible that it’s pointing to the wrong directory thus the failure.

        In the nfed folder can you also run git status -u

        Ahh found it. Try the Load and Monitor command. There was something in Load that I didn’t change over.

        jaredwolff

        Jared,Progress but not quite there.

        It no longer complains about the app_update.bin and the loading progress bar shows up. But it times out and gives the following errors:

        Load Error! Did you Init your project?

        and

        > Executing task: newtmgr -c vscode-zephyr-tools image upload /Users/chipmc/Documents/Maker/Zephyr/Demo/nfed/samples/at_client/build/zephyr/app_update.bin <
        
         0 B / 133.63 KiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%Error: NMP timeout
        The terminal process "bash '-c', 'newtmgr -c vscode-zephyr-tools image upload /Users/chipmc/Documents/Maker/Zephyr/Demo/nfed/samples/at_client/build/zephyr/app_update.bin'" terminated with exit code: 1.
        
        Terminal will be reused by tasks, press any key to close it.

        I am now running v 0.1.18

        Chip

          chipmc make sure

          • You didn’t overwrite the bootloader (I assume you have not used a programmer to overwrite it)
          • The device is in bootloader mode (blue led is solid)
          • You don’t have any open serial monitoring to your port
          • Newmgr is configured with the correct port

          Almost there!

            jaredwolff

            Right, well I was not aware that you can’t have another device with a serial monitor. Thought that selecting the device port in Newtmgr was enough.

            Once I disconnected the other device, the upload went smoothly so in summary:

            • Zephyr Plugin v0.1.18
            • No other devices on Serial follow

            Thank you for your help, on with the Golioth demo example!

            Chip

              Terms and Conditions | Privacy Policy