Hello,
I have modified the SPI flash AT45 Sample (which compiles fine) to work with a AT25 model, the problem is it doesn't compile and it gives undefined reference to `__device_dts_ord_77'.
I know that errors of that kind are related to a missing Kconfig line or badly written DTS file, but I can't find the issue:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2024 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0
/dts-v1/;
#include <nordic/nrf52833_qiaa.dtsi>
/ {
model = "mouse";
compatible = "mouse";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
CONFIG_STDOUT_CONSOLE=y
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_SPI=y
CONFIG_FLASH=y
CONFIG_PM_DEVICE=y
CONFIG_PINCTRL=y
CONFIG_GPIO=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y # needed for my board
Also I changed atmel_45 to atmel_25 in the following source code line:
Fullscreen
1
const struct device *const flash_dev = DEVICE_DT_GET_ONE(atmel_at25);
Can anyone spot the error?