1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu
Benjamin Valentin d12abe6a2b cpu/samd5x: disable RTC on init to prevent undefined RTC state
When changing the clock configuration while the RTC is running, the
RTC may end up in an undefined state that leaves it unresponsive.

The RTC is not reset to stay persistent across reboots/hibernate, so
it will not be reset on init.
Instead, disable the RTC while configuring the clocks, rtc_init() will
take care of re-enabling it.

@dylad introduced this workaround for saml21, samd5x needs it too.

To reproduce, set the CLOCK_CORECLOCK of a samd5x board (e.g. same54-xpro)
to 48 MHz.
Run any RTC application. The CPU will be stuck in _wait_syncbusy() after
a reboot.
This patch will fix this. (You will need to power-cycle the board if the
RTC has entered the stuck state as it will never be reset.)
2020-03-31 15:34:55 +02:00
..
arm7_common Merge pull request #13317 from benpicco/arm7-event_thread 2020-02-26 08:39:00 +01:00
atmega32u4 cpu/atmega32u4: make THREAD_STACKSIZE_IDLE configurable 2020-03-12 13:35:43 +01:00
atmega128rfa1 doc: fix doxygen groups for atmega cpus 2020-01-28 15:44:29 +01:00
atmega256rfr2 doc: fix doxygen groups for atmega cpus 2020-01-28 15:44:29 +01:00
atmega328p cpu/atmega328p: fix typos 2019-11-23 22:39:35 +01:00
atmega1281 cpu/atmega1281: fix typos 2019-11-23 22:39:35 +01:00
atmega1284p cpu/atmega1284p: fix typos 2019-11-23 22:39:35 +01:00
atmega2560 cpu/atmega2560: fix typos 2019-11-23 22:39:35 +01:00
atmega_common cpu: atmega_common: make THREAD_STACKSIZE_IDLE configurable 2020-03-12 13:01:13 +01:00
cc26x0 cc26xx_cc13xx: add API to manage peripheral clocks 2020-03-23 09:33:53 -05:00
cc26x2_cc13x2 cc26xx_cc13xx: add API to manage peripheral clocks 2020-03-23 09:33:53 -05:00
cc26xx_cc13xx cc26xx_cc13xx: add API to manage peripheral clocks 2020-03-23 09:33:53 -05:00
cc430 cpu/cc430: rtc: remove dead code 2020-02-04 13:20:56 +01:00
cc2538 cpu/cc2538/timer: fix GPT enabling wait 2020-03-25 20:16:23 +01:00
cortexm_common cpu/cortexm_common: define BACKUP_RAM attribute 2020-03-19 13:37:58 +01:00
efm32 Merge pull request #13391 from kaspar030/mpu_feature 2020-03-04 07:09:40 +01:00
esp32 Merge pull request #13748 from gschorcht/cpu/esp32/fix_wake_up_sources 2020-03-29 17:38:54 +02:00
esp8266 cpu/esp: NETOPT_CHANNEL for esp_wifi and esp_now 2020-03-26 14:46:15 +01:00
esp_common Merge pull request #13676 from gschorcht/cpu/esp/netopt_channel 2020-03-27 16:37:41 +01:00
ezr32wg cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
fe310 fe310: fix power management configuration 2020-01-30 10:43:01 +01:00
kinetis cpu/kinetis: add mkw41z256vht4 to no-hwrng list 2020-03-01 16:56:34 +01:00
lm4f120 cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
lpc1768 cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
lpc2387 cpu/lpc2387: define BACKUP_RAM attribute 2020-03-19 13:38:50 +01:00
mips32r2_common cpu/mips*: move dependencies to Makefile.dep 2020-01-28 13:20:51 +01:00
mips_pic32_common Merge pull request #12475 from francois-berder/wifire-gpio-refactor 2020-01-31 09:46:57 +01:00
mips_pic32mx cpu/mips*: move dependencies to Makefile.dep 2020-01-28 13:20:51 +01:00
mips_pic32mz cpu/mips*: move dependencies to Makefile.dep 2020-01-28 13:20:51 +01:00
msp430_common cpu: remove exports of UNDEF vars 2020-02-25 09:40:34 +01:00
msp430fxyz cpu/msp430: move dependencies to Makefile.dep 2020-01-28 13:20:51 +01:00
native drivers/netdev: use netdev_trigger_event_isr function 2020-03-06 14:03:43 +01:00
nrf5x_common gnrc_netif_xxx_create: use external netif allocation 2020-03-26 11:12:23 +01:00
nrf51 Merge pull request #13586 from bergzand/pr/nrf/dcdc 2020-03-24 11:56:40 +01:00
nrf52 Merge pull request #13586 from bergzand/pr/nrf/dcdc 2020-03-24 11:56:40 +01:00
sam0_common Merge pull request #13051 from dylad/pr/uart_hw_fc 2020-03-10 16:41:36 +01:00
sam3 cpu/sam3: add periph_rtt driver implementation 2020-03-11 12:53:20 +01:00
sam_common cpu/sam_common: remove use of export for LINKFLAGS 2020-01-02 09:50:14 +01:00
samd5x cpu/samd5x: disable RTC on init to prevent undefined RTC state 2020-03-31 15:34:55 +02:00
samd21 cpu/samd21: default 1kHz clock to same source as 32kHz clock 2020-02-27 16:01:44 +01:00
saml1x Merge pull request #13391 from kaspar030/mpu_feature 2020-03-04 07:09:40 +01:00
saml21 cpu/saml21: add DFLL48M support 2020-03-26 18:03:02 +01:00
stellaris_common cpu: do not locally export compilation variables 2019-08-29 10:35:53 +02:00
stm32_common cpu/stm32l4/wb: ensure LPTIM clock source is correctly reset 2020-03-27 10:57:49 +01:00
stm32f0 cpu/stm: Fix broken character encoding 2020-03-24 16:07:19 +01:00
stm32f1 cpu/{stm32r1,stm32_common}: Allow exposing JTAG pins as GPIOs 2020-03-08 13:05:35 +01:00
stm32f2 cpu/stm: Fix broken character encoding 2020-03-24 16:07:19 +01:00
stm32f3 cpu/stm: Fix broken character encoding 2020-03-24 16:07:19 +01:00
stm32f4 cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
stm32f7 cpu/stm: Fix broken character encoding 2020-03-24 16:07:19 +01:00
stm32l0 cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
stm32l1 cpu/*: add cortex_mpu to known-to-support CPU families 2020-03-03 22:59:41 +01:00
stm32l4 cpu/stm32_common: add common L4 and WB stmclk 2020-03-25 09:29:57 +01:00
stm32wb cpu/stm32_common: add common L4 and WB stmclk 2020-03-25 09:29:57 +01:00
doc.txt cpu: doc typos 2017-01-20 13:36:26 +01:00