zephyr compilation error when using the flash #78055
Replies: 5 comments 3 replies
-
@EduardoGoncalves1966 Based on the Given |
Beta Was this translation helpful? Give feedback.
-
In short please refer to node 106 which is Also you can get a lot of insight in |
Beta Was this translation helpful? Give feedback.
-
thanks. It compiled ok. |
Beta Was this translation helpful? Give feedback.
-
I have compiled the program that uses the flash but I am having other problems when running the program. when calling flash_erase() it calls flash_stm32_valid_range() function in flash_stm32l5x.c file. bool flash_stm32_valid_range(const struct device dev, off_t offset,
} At this stage the defines BANK2_OFFSET is 0x100000 (1 Mbyte) which is wrong, since we are using a STM32H533R microcontroller with 512Kbytes of Flash starting at =x08000000. The .dts file defines the flash as: &flash0 {
}; The linker.ld has these definitions: #define ROMABLE_REGION FLASH /----------------------------------------------------------------/ Dos anyone has some ideas what could be wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
-
According to this Lines 233 to 240 in dc5f1bf The chosen should be similar to this beforehand (zephyr.dts after build
|
Beta Was this translation helpful? Give feedback.
-
Hi
I am trying to build a program that writes to an area of flash and then reads it back to confirm.
However I get a compilation error:
"undefined reference to __device_dts_ord_107"
I have added to .conf file:
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
I have added to the .dts file:
chosen {
....
zephyr,flash-controller = &flash0;
....
};
&flash0 {
status = "okay";
label = "FLASH_0";
}
The line of the code that seems to generate the problem is:
flash_dev = DEVICE_DT_GET(DT_NODELABEL(flash0));
Any ideas on how to solve this? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions