Thingy:91X - using the external flash

Are there any specific points using the external flash of a Thingy:91X?

I tried to adapt the "nrf/samples/cellular/modem_trace_flash" by adding an overlay copied and modified from the nrf9151dk_nrf9151_ns and also copied the conf from that board.

But the external flash seems to have some specific preconditions, I'm not aware of and I wasn't able to find some documentation. I get:

[00:00:00.286,163] <inf> modem_trace_flash_sample: Modem trace backend sample started

[00:00:00.550,201] <dbg> modem_trace_backend: trace_backend_init: Trace magic not found, initializing
[00:00:00.550,201] <inf> modem_trace_backend: Erasing external flash
[00:00:01.758,789] <err> modem_trace_backend: flash_area_get_sectors error: -12
[00:00:01.758,819] <err> nrf_modem_lib_trace: trace_backend: init failed with err: -12
[00:00:01.758,819] <err> nrf_modem_lib_trace: Failed to initialize trace backend, err: -12
[00:00:01.775,177] <inf> modem_trace_flash_sample: Connecting to network

My derived overlay:

/*
 * Copyright (c) 2024 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */


/* Enable high drive mode for the SPI3 pins to get a square signal at 8 MHz */
&spi3_default {
    group1 {
        nordic,drive-mode = <NRF_DRIVE_H0H1>;
    };
};

/* Enable UART1 at 1 megabaud for printing modem traces  */
&uart1 {
    status = "okay";
    current-speed = <1000000>;
};

/ {
    aliases {
        ext-flash = &flash_ext;
    };

    /* Configure partition manager to use gd25le255 as the external flash */
    chosen {
        nordic,pm-ext-flash = &flash_ext;
    };
};

&flash_ext {
    status = "okay";
};

Related