

Hi,
Which nRF5 device are you working with? FOTA uses dual-bank update, which means you need to have double the flash size of the application available. Try running
west build -t rom_report
to see how much flash the different libraries on the application are using.
Best regards,
Marjeris
HI,
I'm using nRF52dk_NRF52852,
in witch directory i use the command
west build -t rom_report
Tanks
Best regards
Fausto
HI,
thne command west is not recognized.
what can I do?
Best regards
Fausto

Hi,
I am sorry for the late reply. Perhaps 'west' is not in PATH? You must have installed it since 'west' is part of the toolchain for nRF Connect SDK. It should have been installed automatically if you were using the 'Toolchain Manager' or you can take a look at 'Installing manually'.
-Marjeris
Hi
I have used the toolchain Manager of nRF Connect SDK
Fausto
I need to reinstall all?
No, I don't think so. If you have used the Toolchain Manager then it must be installed. Check if you have the directory in PATH variable.
In Windows you can open a terminal with cmd.exe and type 'echo %PATH%' to see which directories are included in PATH, if you cannot see the directory where 'west' is install then that's the problem.
You can be add the install directory for west in "Edit the system enviroment variables" in System Properties.

In the System Variables section (lower half) find the row with "Path" and add the installed directory for west.
No, I don't think so. If you have used the Toolchain Manager then it must be installed. Check if you have the directory in PATH variable.
In Windows you can open a terminal with cmd.exe and type 'echo %PATH%' to see which directories are included in PATH, if you cannot see the directory where 'west' is install then that's the problem.
You can be add the install directory for west in "Edit the system enviroment variables" in System Properties.

In the System Variables section (lower half) find the row with "Path" and add the installed directory for west.
Another thing you can do, is to open the command prompt from the toolchain manager:

Hi ,
now i get this error

what to do?
thanks
Best Regards
Fausto
Hi,
i need help to solve the error in previous post.
Thanks in avance
Fausto
HI
I execute the command : build -t rom_report, (in the build_crf52dk_nrf52832 directory and get this error:
:\Users\PCF\ncs\v1.6.0\zephyr\samples\bluetooth\scan_adv\build_nrf52dk_nrf52832>west build -t rom_report
-- west build: running target rom_report
[0/17] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
[2/15] Linking C executable zephyr\zephyr_prebuilt.elf
FAILED: zephyr/zephyr_prebuilt.elf zephyr/zephyr_prebuilt.map
cmd.exe /C "cd . && C:\Users\PCF\ncs\v1.6.0\toolchain\opt\bin\arm-none-eabi-gcc.exe @CMakeFiles\zephyr_prebuilt.rsp -o zephyr\zephyr_prebuilt.elf && cmd.exe /C "cd /D C:\Users\PCF\ncs\v1.6.0\zephyr\samples\bluetooth\scan_adv\build_nrf52dk_nrf52832\zephyr && C:\Users\PCF\ncs\v1.6.0\toolchain\opt\bin\cmake.exe -E echo ""
c:/users/pcf/ncs/v1.6.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `text' will not fit in region `FLASH'
c:/users/pcf/ncs/v1.6.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 46088 bytes
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Users\PCF\ncs\v1.6.0\toolchain\opt\bin\cmake.EXE' --build 'C:\Users\PCF\ncs\v1.6.0\zephyr\samples\bluetooth\scan_adv\build_nrf52dk_nrf52832' --target rom_report
C:\Users\PCF\ncs\v1.6.0\zephyr\samples\bluetooth\scan_adv\build_nrf52dk_nrf52832>
I need help to integrate the FOTA in my application.
Tanks in avance.
Fausto
Answered in this post: devzone.nordicsemi.com/.../fota-flash-overflowed-sdk-1-6-0