<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Add FOTA over BLE to nrf9151+nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116223/add-fota-over-ble-to-nrf9151-nrf52840</link><description>Hi, 
 I have a board which is nrf9151 with nrf52840 as BLE controller connected via hci_lpuart. This works fine so far, I am able to do simple AT commands as well as doing some BLE communication. I am using TF-M for nrf9151 
 Now I am trying to add FOTA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 14:47:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116223/add-fota-over-ble-to-nrf9151-nrf52840" /><item><title>RE: Add FOTA over BLE to nrf9151+nrf52840</title><link>https://devzone.nordicsemi.com/thread/510143?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 14:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e73085-914e-4b5c-a2e1-49837aede936</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;I have not seen anyone tried this before. If nRF9160 can &lt;span&gt;&lt;span dir="ltr"&gt;receiving image over BLE, there shouldn&amp;#39;t be any issue to do update.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;You may refer to the codes following exercies to implment a smp server on nRF9160 side, then test with uart to make sure there is no issue with mcuboot to do firmware udpate first.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-3-fota-over-bluetooth-low-energy/"&gt;Exercise 3 - FOTA over Bluetooth Low Energy - Nordic Developer Academy&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Charlie&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add FOTA over BLE to nrf9151+nrf52840</title><link>https://devzone.nordicsemi.com/thread/509949?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 15:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:167c9705-4d26-4620-b236-d80704c57664</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hi Charlie. Thank you for the reply. Please note that the mentioned case is different - there the custom UART protocol is used to communicate nrf53&amp;lt;-&amp;gt;nrf91. In my case I use HCI with lp_uart variant.&lt;br /&gt;&lt;br /&gt;Anyway I was able to get it all to compile, but I am just getting an MCU boot compilation error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;[22/29] Building C object CMakeFiles/app.dir/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj
FAILED: CMakeFiles/app.dir/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj
ccache /home/michal/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DMBEDTLS_CONFIG_FILE=\&amp;quot;/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/include/mcuboot-mbedtls-cfg.h\&amp;quot; -DNCS_APPLICATION_BOOT_BANNER_GIT_REPO -DNRF9120_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/include -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/targets -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/bootutil/include -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/mbedtls-asn1/include -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf -I/home/michal/ncs/v2.7.0/zephyr/include -I/home/michal/repos/MG105/build/mcuboot/zephyr/include/generated -I/home/michal/ncs/v2.7.0/zephyr/soc/nordic -I/home/michal/ncs/v2.7.0/zephyr/soc/nordic/nrf91/. -I/home/michal/ncs/v2.7.0/zephyr/soc/nordic/common/. -I/home/michal/ncs/v2.7.0/nrf/include -I/home/michal/ncs/v2.7.0/nrf/tests/include -I/home/michal/ncs/v2.7.0/modules/hal/cmsis/CMSIS/Core/Include -I/home/michal/ncs/v2.7.0/zephyr/modules/cmsis/. -I/home/michal/ncs/v2.7.0/modules/hal/nordic/nrfx -I/home/michal/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/include -I/home/michal/ncs/v2.7.0/modules/hal/nordic/nrfx/mdk -I/home/michal/ncs/v2.7.0/zephyr/modules/hal_nordic/nrfx/. -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -I/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -I/home/michal/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_bl/include -isystem /home/michal/ncs/v2.7.0/zephyr/lib/libc/minimal/include -isystem /home/michal/ncs/v2.7.0/zephyr/lib/libc/common/include -isystem /home/michal/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem /home/michal/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem /home/michal/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros /home/michal/repos/MG105/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=/home/michal/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/michal/ncs/v2.7.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/michal/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/michal/ncs/v2.7.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/michal/ncs/v2.7.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj -MF CMakeFiles/app.dir/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj.d -o CMakeFiles/app.dir/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj -c /home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c
In file included from /home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.c:18:
/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.h: In function &amp;#39;nrf_cc310_enable&amp;#39;:
/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.h:53:5: error: &amp;#39;NRF_CRYPTOCELL&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_CRYPTOCELL_S&amp;#39;?
53 | NRF_CRYPTOCELL-&amp;gt;ENABLE=1;
| ^~~~~~~~~~~~~~
| NRF_CRYPTOCELL_S
/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.h:53:5: note: each undeclared identifier is reported only once for each function it appears in
/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.h: In function &amp;#39;nrf_cc310_disable&amp;#39;:
/home/michal/ncs/v2.7.0/bootloader/mcuboot/ext/nrf/cc310_glue.h:58:5: error: &amp;#39;NRF_CRYPTOCELL&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_CRYPTOCELL_S&amp;#39;?
58 | NRF_CRYPTOCELL-&amp;gt;ENABLE=0;
| ^~~~~~~~~~~~~~
| NRF_CRYPTOCELL_S
ninja: build stopped: subcommand failed.
FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build /home/michal/repos/MG105/build/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build
cd /home/michal/repos/MG105/build/mcuboot &amp;amp;&amp;amp; /home/michal/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/michal/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build /home/michal/repos/MG105/build&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I don&amp;#39;t think I am including cc310 and MCU boot doesn&amp;#39;t use it as far as I read, so how do I disable this?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add FOTA over BLE to nrf9151+nrf52840</title><link>https://devzone.nordicsemi.com/thread/509895?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 13:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eec459e-00c0-4343-91f7-07b7bdf26cff</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;If you mean using BLE FOTA an nRF9151 with nRF52840, you can refer to a similar discussion here&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/115893/uart-dfu-of-a-nrf9160-in-recovery-mode-via-nrf5340"&gt;UART DFU of a nRF9160 in recovery mode via nRF5340. - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>