Skip to content

Commit ea49eea

Browse files
nordic-marerlubos
authored andcommitted
samples: cellular: http_update: Fix external flash configuration
The modem full update sample is broken due to an incorrect configuration of the external flash. Fix this. Signed-off-by: Markus Rekdal <[email protected]>
1 parent af62809 commit ea49eea

File tree

4 files changed

+35
-10
lines changed

4 files changed

+35
-10
lines changed

samples/cellular/http_update/modem_full_update/boards/nrf9151dk_nrf9151_ns.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@
77
&gd25wb256 {
88
status = "okay";
99
};
10+
11+
/ {
12+
aliases {
13+
ext-flash = &gd25wb256;
14+
};
15+
16+
/* Configure partition manager to use gd25wb256 as the external flash */
17+
chosen {
18+
nordic,pm-ext-flash = &gd25wb256;
19+
};
20+
};

samples/cellular/http_update/modem_full_update/boards/nrf9160dk_nrf9160_ns.overlay

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
&spi3 {
8-
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>, /* D10 */
9-
<&gpio0 25 GPIO_ACTIVE_LOW>;
10-
mx25r64: mx25r6435f@1 {
11-
compatible = "jedec,spi-nor";
12-
reg = <1>;
13-
status = "okay";
14-
spi-max-frequency = <80000000>;
15-
jedec-id = [c2 28 17];
16-
size = <67108864>;
7+
&mx25r64 {
8+
status = "okay";
9+
};
10+
11+
/ {
12+
aliases {
13+
ext-flash = &mx25r64;
14+
};
15+
16+
/* Configure partition manager to use mx25r64 as the external flash */
17+
chosen {
18+
nordic,pm-ext-flash = &mx25r64;
1719
};
1820
};

samples/cellular/http_update/modem_full_update/boards/nrf9161dk_nrf9161_ns.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@
77
&gd25wb256 {
88
status = "okay";
99
};
10+
11+
/ {
12+
aliases {
13+
ext-flash = &gd25wb256;
14+
};
15+
16+
/* Configure partition manager to use gd25wb256 as the external flash */
17+
chosen {
18+
nordic,pm-ext-flash = &gd25wb256;
19+
};
20+
};

samples/cellular/http_update/modem_full_update/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ CONFIG_SHELL_CMD_BUFF_SIZE=128
3838
CONFIG_STREAM_FLASH=y
3939
CONFIG_STREAM_FLASH_ERASE=y
4040
CONFIG_FLASH=y
41+
CONFIG_FLASH_MAP=y
4142

4243
# GPIO
4344
CONFIG_GPIO=y

0 commit comments

Comments
 (0)