I am trying to work with my flash deivce in my code.
for some reason:
const static struct device *int_flash_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash));
doesnt work, but this does:
doesnt work, but this does:
const static struct device *int_flash_dev = DEVICE_DT_GET(DT_MTD_FROM_FIXED_PARTITION(DT_NODELABEL(my_partition)));
where the my_partition node is coming from my overlay file:
where the my_partition node is coming from my overlay file:
&flash0 {
partitions {
/* 0xf0000 to 0xf7fff reserved for TF-M partitions */
my_partition: partition@0 {
label = "my_storage";
reg = <0x0 0x1>;
};
};
};
The error message I am getting is:
undefined reference to `__device_dts_ord_94'
collect2: error: ld returned 1 exit status
the chosen node on my device tree looks like this:
The error message I am getting is:
undefined reference to `__device_dts_ord_94'
collect2: error: ld returned 1 exit status
the chosen node on my device tree looks like this:
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
.
.
.
.
.
.
}
shouldn't both of those evaluate to the same device?
thanks in advance,
shlomo
shouldn't both of those evaluate to the same device?
thanks in advance,
shlomo
