Skip to content

Commit 1d21900

Browse files
committed
test new downloader fota
Signed-off-by: Maximilian Deubel <[email protected]>
1 parent e8b034b commit 1d21900

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
- name: Build nrf53 firmware
217217
working-directory: nrf/applications/connectivity_bridge
218218
run: |
219-
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3 -DCONFIG_BUILD_S1_VARIANT=y
219+
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3
220220
221221
- name: Create partition manager report for nRF53 firmware
222222
working-directory: nrf/applications/connectivity_bridge/build
@@ -272,7 +272,7 @@ jobs:
272272
cp twister-out/thingy91x_nrf9151_ns/app/app.build.bootloader_update/dfu_mcuboot.zip \
273273
hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-bootloader.zip
274274
rm -rf twister-out
275-
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -d ../nrf/applications/connectivity_bridge/build-bl-update ../nrf/applications/connectivity_bridge -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=4 -DCONFIG_BUILD_S1_VARIANT=y
275+
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -d ../nrf/applications/connectivity_bridge/build-bl-update ../nrf/applications/connectivity_bridge -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=4
276276
cp ../nrf/applications/connectivity_bridge/build-bl-update/dfu_mcuboot.zip \
277277
connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-bootloader.zip
278278

app/prj.conf

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ CONFIG_SETTINGS=y
102102
CONFIG_SETTINGS_FCB=y
103103
CONFIG_FCB=y
104104

105-
# Download Client - used by FOTA and PGPS
106-
CONFIG_DOWNLOAD_CLIENT=y
107-
CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y
108-
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=3072
109-
CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2048
110-
CONFIG_DOWNLOAD_CLIENT_MAX_HOSTNAME_SIZE=128
111-
112105
# Flash - Used by FOTA and PGPS
113106
CONFIG_FLASH=y
114107
CONFIG_FLASH_PAGE_LAYOUT=y
@@ -121,12 +114,10 @@ CONFIG_NRF_CLOUD_FOTA_POLL=y
121114
CONFIG_NRF_CLOUD_FOTA_POLL_LOG_LEVEL_DBG=y
122115
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE=y
123116
CONFIG_NRF_CLOUD_FOTA_DOWNLOAD_FRAGMENT_SIZE=1700
124-
CONFIG_NRF_CLOUD_COAP_DOWNLOADS=n
125117
CONFIG_FOTA_DOWNLOAD=y
126118
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
127119
CONFIG_FOTA_DL_TIMEOUT_MIN=30
128120
CONFIG_DFU_TARGET=y
129-
CONFIG_BUILD_S1_VARIANT=y
130121
# COAP client
131122
CONFIG_COAP_CLIENT_THREAD_PRIORITY=0
132123
CONFIG_COAP_CLIENT_BLOCK_SIZE=1024
@@ -266,3 +257,9 @@ CONFIG_NRF_MODEM_LIB_TRACE_STACK_SIZE=1024
266257
CONFIG_NRF_MODEM_LIB_TRACE_FLASH_SECTORS=255
267258
# Modem trace flash partition size with 255 sectors of 4KB each
268259
CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_FLASH_PARTITION_SIZE=0xFF000
260+
261+
CONFIG_NRF_CLOUD_COAP_DOWNLOADS=y
262+
CONFIG_NRF_CLOUD_FOTA_POLL=y
263+
CONFIG_DOWNLOADER=y
264+
265+
CONFIG_DOWNLOADER_STACK_SIZE=4096

app/sample.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ tests:
3030
tags: ci_build
3131
extra_args:
3232
- mcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3
33-
- CONFIG_BUILD_S1_VARIANT=y

tests/on_target/tests/test_functional/test_fota.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def _run_fota(bundleId, fota_type, fotatimeout=APP_FOTA_TIMEOUT, test_fota_resum
5959

6060
post_job(t91x_fota, bundleId, fota_type)
6161

62-
# if test_fota_resumption:
63-
# run_fota_resumption(t91x_fota, fota_type)
62+
if test_fota_resumption:
63+
run_fota_resumption(t91x_fota, fota_type)
6464

6565
t91x_fota.uart.flush()
6666
t91x_fota.uart.wait_for_str("FOTA download finished", timeout=fotatimeout)

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ manifest:
1414
- name: nrf
1515
remote: ncs
1616
repo-path: sdk-nrf
17-
revision: v2.8.0-rc2
17+
revision: pull/19908/head
1818
import: true

0 commit comments

Comments
 (0)