- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
02-18-2014 03:28 AM
I noticed a missing clock enable statement in the auto-generated code when I try to use the RTC module.
Target processor: EFM32LG33oF256
eaDesigner tool version: 1.10
Configuration: enable RTC module, use default settings for everything else (internal HF and LF RC oscillators).
/* Enable clock for RTC */ CMU_ClockEnable(cmuClock_RTC, true); /* Custom initialization for RTC */ RTC_setup();
Problem: the register accesses to the RTC module that are done in the autogenerated RTC_setup function fail because the interface to the low-speed peripherals is not clocked yet.
before the cmuClock_RTC clock enable line.
02-24-2014 07:13 AM
You are right, this is an error in the generated code, the clock for the LE interface should also be enabled. The workaround you propose should work fine. Thanks for telling us! I will report it so we can get it fixed.