Skip to content

stm32: Enhance error message on bbram/rtc misconfiguration #55495

@erwango

Description

@erwango

Discussed in #55486

Originally posted by lmikl March 6, 2023
HI,

i would like used the bbram on a stm32f4 but i have a time an compilation error

I have configured an overlay for the board nucleo-f429zi :
/ {
aliases {
backup-register = &bbram;
};
};

&bbram {
status = "okay";
};

write this onfig in the prj.comf : CONFIG_BBRAM=y

and i have wrote this code to use it :

static const struct device *backup_reg = NULL;

int main(void)
{
backup_reg = DEVICE_DT_GET(DT_ALIAS(backup_register));

if(backup_reg == NULL){
    LOG_INF("backup_reg device was not found");
}
else
    LOG_INF("backup_reg found");

if (!device_is_ready(backup_reg)) {
	LOG_INF("backup_reg not ready");
}

}

But i have all time this error : undefined reference to `__device_dts_ord_105'.

If someone can help me.
thanks in advance.

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresGood first issueGood for a first time contributor to takearea: StorageStorage subsystemplatform: STM32ST Micro STM32

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions