2017-02-15 06:02 AM
how can i run RTC with LL driver with cubeMX in STM32L4???
2017-02-15 08:24 AM
Hi
khastar.mehdi
,If you need to generate initialization code for RTC based on LL driver, you have just to select ''LL'' for the RTC configuration generated code (Project >> Settings >> Advanced Setting):
Then, depending on RTC use case, you may add the control functions.
I suggest you have a look to the LL-based examples available in the STM32CubeL4 package underSTM32Cube_FW_L4_V1.6.0\Projects\STM32L476RG-Nucleo\Examples_LL\RTC.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-02-15 01:37 PM
Hi
dear Amel N
yes I've seen examples and cube settings.
but i can not run RTC with code that cube built .
RTC registers are initialize correct(i see by debugger )
but RTC counters(Hour,minute,second,year,.....) are fix.
so now I want to use codes(cube code)
but I do not know how to do this!!!!!!!!!!!thank you.
2017-02-28 05:35 AM
Hello
khastar.mehdi
,Which IAR release are you using?
In fact, I see that many new L4 are supported in IAR 7.80 (and not with IAR 7.70, see the new MCUs supported by IAR
). So maybe, your issue comes from the IAR release you use.I am downloading the new IAR release and will see if it compiles better. I will keep you informed.
BR. Eric
2017-03-05 02:37 AM
Hello Eric Dampierre
I am working with KEIL .
Thank you.
2017-03-06 12:22 AM
Hello again,
I tested with the version of Keil I have :
and I use the STM32L431RCTx MCU with RTC set to LL.
And it compiles correctly in Keil :
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'test_L431RCTx_Keil'compiling system_stm32l4xx.c...compiling stm32l4xx_hal_cortex.c...compiling stm32l4xx_hal_flash_ramfunc.c...compiling stm32l4xx_ll_utils.c...compiling stm32l4xx_hal_rcc_ex.c...compiling stm32l4xx_hal_pwr_ex.c...compiling stm32l4xx_hal_dma.c...compiling stm32l4xx_ll_dma.c...compiling stm32l4xx_hal_i2c.c...compiling stm32l4xx_ll_exti.c...compiling stm32l4xx_hal.c...compiling stm32l4xx_hal_rcc.c...compiling stm32l4xx_ll_rtc.c...compiling stm32l4xx_hal_pwr.c...compiling stm32l4xx_hal_gpio.c...compiling stm32l4xx_hal_i2c_ex.c...compiling stm32l4xx_hal_flash.c...compiling stm32l4xx_hal_flash_ex.c...compiling stm32l4xx_it.c...compiling stm32l4xx_ll_gpio.c...compiling stm32l4xx_hal_msp.c...assembling startup_stm32l431xx.s...compiling main.c...linking...Program Size: Code=4148 RO-data=492 RW-data=8 ZI-data=1024 ''test_L431RCTx_Keil\test_L431RCTx_Keil.axf'' - 0 Error(s), 0 Warning(s).Build Time Elapsed: 00:01:06It would be easier to help you if you give us all the input you have when you encounter your issue.
If your issue still occurs after verifying that Keil supports the MCU you are working on, please provide us your ioc, keil version, CubeMX version...
BR. Eric
2017-03-06 01:02 AM
Hello
khastar.mehdi
,Which version of Keil are you using?
Are you sure this release of Keil supports the STM32L4 you work on?
BR. Eric