Posted on July 07, 2014 at 13:26Hi, Up to MX 4.2.0 it newer happends, but after upgrade MX to 4.3.0 time to time all user project files are deleted in project folder!. STM32CubeF4 1.3.0 Windows 7 x64, Eclipse 4.3.2 + STM32CubeMX 4.3.0 plugin. It...
Posted on April 25, 2014 at 10:09Hello Problem with code in assert_failed() in main.c when using STM32CubeMX for F4 The assert_failed() is not in protected USER CODE BEGIN .. USER CODE END block - it is intended? -----------------------------------...
Posted on July 22, 2014 at 07:07
I am not sure if I understood problem, but try commend out:
HAL_RTC_SetTime(&hrtc, &sTime, FORMAT_BCD);
HAL_RTC_SetDate(&hrtc, &sDate, FORMAT_BCD);
from first post
Posted on July 18, 2014 at 08:15 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.LSEState = RCC_LSE_ON; (edit: text big font problem)
Posted on July 16, 2014 at 11:21Sounds like RTC CLK is not on Look to RTC->BDCR If this is issue you can try if(!(*(volatile uint32_t *) (BDCR_RTCEN_BB))) { __HAL_RCC_RTC_ENABLE(); // // printf(''RTC battery reconnected. Set up date and ti...
Posted on May 28, 2014 at 10:08Setup 32bit timer (TIM5) with 1us tick and reload after 3599999999 (one hour). Optional on timer reload : counting hours + calendar. Reading one hour time is fast, just read timer CNT, but with hours + calendar CNT ne...
Posted on May 26, 2014 at 06:50>>> I found that the system hangs at the HAL-RTC-Init instruction. Maybe it's not in this case but with STM32F4Discovery lost many hours before RTC runs with LSE, problem was simply, as far I remember RTC will need tu...