Skip to content

Commit a888b0b

Browse files
committed
tests: nRF52 wont suspend flash to save power
In power tests external flash will be suspend only on nRF53. This allows to perform usb dfu on nRF52 in Sidewalk mode Signed-off-by: Krzysztof Taborowski <krzysztof.taborowski@nordicsemi.no>
1 parent 6d1efc6 commit a888b0b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/manual/power/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ static void app_setup(void)
165165
}
166166
#endif
167167

168+
#if defined(NRF5340_XXAA)
168169
const struct device *const qspi_dev = DEVICE_DT_GET(EXTERNAL_FLASH);
169170

170171
if (device_is_ready(qspi_dev)) {
171172
pm_device_action_run(qspi_dev, PM_DEVICE_ACTION_SUSPEND);
172173
}
174+
#endif
173175
}
174176

175177
static void state_change_handler_power_test(const struct notifier_state *state)

tests/manual/power_ble_only/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static void app_setup(void)
160160
}
161161
#endif
162162

163-
#if defined(CONFIG_NORDIC_QSPI_NOR)
163+
#if (defined(CONFIG_NORDIC_QSPI_NOR) && defined(NRF5340_XXAA))
164164
const struct device *const qspi_dev = DEVICE_DT_GET(EXTERNAL_FLASH);
165165

166166
if (device_is_ready(qspi_dev)) {

0 commit comments

Comments
 (0)