Search found 30 matches

by saeed144
Thu Nov 26, 2020 5:26 pm
Forum: General discussion
Topic: STM32F1xx RTC Time Reset
Replies: 6
Views: 110

Re: STM32F1xx RTC Time Reset

fpiSTM wrote:
Thu Nov 26, 2020 4:25 pm
Which board you used ? Is there an LSE ?
I'm using STM32F103C8T6 with my own designed PCB, using 8MHz for main core and 32.768Khz for RTC and 3v 2032 battery.
Yes LSE is enabled, I attached the code above.
by saeed144
Thu Nov 26, 2020 3:37 pm
Forum: General discussion
Topic: STM32F1xx RTC Time Reset
Replies: 6
Views: 110

Re: STM32F1xx RTC Time Reset

:roll: :cry:
by saeed144
Wed Nov 25, 2020 3:49 pm
Forum: General discussion
Topic: STM32F1xx RTC Time Reset
Replies: 6
Views: 110

Re: STM32F1xx RTC Time Reset

Have you changed clock source to external ?? setClockSource(STM32RTC::LSE_CLOCK) when I change clock source, the program stop after change. /* SimpleRTC This sketch shows how to configure the RTC and to display the date and time periodically Creation 12 Dec 2017 by Wi6Labs Modified 03 Jul 2020 by F...
by saeed144
Wed Nov 25, 2020 12:39 pm
Forum: General discussion
Topic: STM32F1xx RTC Time Reset
Replies: 6
Views: 110

STM32F1xx RTC Time Reset

Hi
I'm using STM32RTC lib to get time, but when the board reset time reset too, I know I should work with RTC backup register, but how on Arduino IDE?
by saeed144
Tue Nov 24, 2020 10:43 am
Forum: General discussion
Topic: Problem with timer
Replies: 4
Views: 82

Re: Problem with timer

Thank you so much, you're great :)
by saeed144
Tue Nov 24, 2020 8:53 am
Forum: General discussion
Topic: Problem with timer
Replies: 4
Views: 82

Re: Problem with timer

Oh! you're right it blinks now , So sorry :roll:
I get presclaler factor and it returns 110.

Code: Select all

ans = MyTim->getPrescaleFactor();
110 is default?
by saeed144
Tue Nov 24, 2020 7:36 am
Forum: General discussion
Topic: Problem with timer
Replies: 4
Views: 82

Problem with timer

Hello I tried to test my STM32F103C8T6 timer but it didn't work. Can you help me? #if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION < 0x01090000) #error "Due to API change, this sketch is compatible with STM32_CORE_VERSION >= 0x01090000" #endif void Update_IT_callback(void) { digitalWrite(PA11...
by saeed144
Tue Nov 17, 2020 6:08 am
Forum: General discussion
Topic: STM32F1xx RTC date problem
Replies: 7
Views: 283

Re: STM32F1xx RTC date problem

The STM32F1xx RTC only has one register that normally counts seconds, using the count of seconds modulo 86400 (number of seconds in a day) it can keep track of the time of day, when this count gets larger than 86400 we know that one day has passed. There is no information in the RTC hardware about ...
by saeed144
Tue Nov 17, 2020 6:08 am
Forum: General discussion
Topic: STM32F1xx RTC date problem
Replies: 7
Views: 283

Re: STM32F1xx RTC date problem

ag123 wrote:
Mon Nov 16, 2020 3:37 pm
saeed144 wrote:
Sun Nov 15, 2020 3:53 pm
You mean there is no solution? :cry:
connect VBAT to a 3v coin cell, keeps time for a long time
it keeps only time not date
by saeed144
Sun Nov 15, 2020 3:53 pm
Forum: General discussion
Topic: STM32F1xx RTC date problem
Replies: 7
Views: 283

Re: STM32F1xx RTC date problem

You mean there is no solution? :cry:

Go to advanced search