Hello (again) 😄 _!

I thought I would have another go at compiling from Windows with the new instructions…

Whilst the “blinky” app works fine, if I try and compile any of the other app , it appears to compile file, but doesn’t result in an app_update.bin file to upload with newtmgr.

Command to compile is : west build -b circuitdojo_feather_nrf9160ns -p from C:\Users\mike_\ncs\v1.4.1\nrf\samples\nrf9160\agps

Am I using the correct file ?

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mike_/ncs/v1.4.1/nrf/samples/nrf9160/agps/build
-- west build: building application
[7/200] Performing build step for 'spm_subimage'
[190/195] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 32 KB 48 KB 66.67%
SRAM: 5520 B 64 KB 8.42%
IDT_LIST: 40 B 2 KB 1.95%
[195/195] Linking C executable zephyr\zephyr.elf
[194/200] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 147268 B 976 KB 14.74%
SRAM: 43504 B 128 KB 33.19%
IDT_LIST: 120 B 2 KB 5.86%
[200/200] Generating zephyr/merged.hex

    Hey mikcatta

    Make sure you have Mcuboot enabled:

    # Enable Zephyr application to be booted by MCUboot
    CONFIG_BOOTLOADER_MCUBOOT=y

    Excellent, next step is I get this error

    C:\Users\mike_\ncs\v1.4.1\nrf\samples\nrf9160\agps>newtmgr -c serial image upload build/zephyr/app_update.bin
     0 / 197219 [-------------------------------------------------------------------------------------------------]   0.00%
     Error: 3\

    Is it down to to the file being too big for newtmgr? If so, I might start a new project from scratch, which will hopefully trim it down a bit. Any clues as to how to start that process?

      mikcatta for the v1 bootloader, indeed 197k is too big. If you have JTAG you can program the newer bootloader which does not have this issue.

      The best way to pair down features is to prune your prj.conf. That’s where most of the heft will be.

      OK will give that a go (pruning the prj.conf).

      I don’t have a JTAG programmer, but it looks like the J-Link EDU Mini, might be an option?, but I am not sure about which cable I need or where to purchase that.

      Terms and Conditions | Privacy Policy