Skip to content

STM32L4 IWDG WatchDog cannot be used in mbed due to a problem in rtc_init/rtc_api.c #3576

@helmut64

Description

@helmut64

@bcostm
Note: This is just a template, so feel free to use/remove the unnecessary things

  • Type: Enhancement

Enabling the IWDG WatchDog aborts mbed in rtc_init with the error message “Cannot initialize RTC with LSE”.

The problem is, that the init_rtc aborts when setting the mbed time via set_time(t). The IWDG enables the LSE because it works even in deepsleep mode when the clock is off, however the rtc_init() turns off the LSE therefore the HAL_RCC_OscConfig() fails.

It would be good if this limitation can be fixed, I don’t understand all details about the clock therefore someone with more STM know how better looks into it.

Regards Helmut

PS: I can provide a sample code to enable the IWDG, however I belive it is not needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions