Search found 114 matches

by Thargon
Mon Sep 21, 2020 8:06 am
Forum: Bug Reports
Topic: STM32G0 RTC init failure Topic is solved
Replies: 4
Views: 262

Re: STM32G0 RTC init failure Topic is solved

Could you confirm that this fixes your issue? Confirmed =) I have two notes to make, though: ⋅  In extiEnableGroup2() you also use STM32_EXTI_IMR1_MASK for masking the argument (should be STM32_EXTI_IMR2_MASK). ⋅  The commit message says the fix has been backported to branch 20....
by Thargon
Wed Sep 16, 2020 4:40 pm
Forum: Bug Reports
Topic: STM32G0 RTC init failure Topic is solved
Replies: 4
Views: 262

STM32G0 RTC init failure Topic is solved

When I enable RTC on my NUCLEO-G071RB board, ChibiOS won't start due to a failed assertion during HAL initialization. This issue can easily be reproduced for the RT-STM32G07RB-NUCLEO64 demo. DETAILS To enable RTC, I enabled the flag in halconf.h and set STM32_RTCSEL to STM32_RTCSEL_LSI in mcuconf.h....
by Thargon
Tue Sep 15, 2020 7:37 am
Forum: Bug Reports
Topic: r13804 breaks C++ builds
Replies: 5
Views: 235

Re: r13804 breaks C++ builds

I ran some brief tests using the latest commit of the stable_20.3.x branch on a NUCLEO-F401RE, a NUDLEO-L476RG and a custom board (F405RG) and everything seems to be okay. The implementations, however, are not equivalent: ⋅  _exit() calls abort() (abnormal program termination) now, whereas...
by Thargon
Mon Sep 14, 2020 8:33 am
Forum: Bug Reports
Topic: r13804 breaks C++ builds
Replies: 5
Views: 235

Re: r13804 breaks C++ builds

syscalls_cpp.cpp was needed for C++ builds, obviously. It should be fine to implement all stubs in syscalls.c since the footprint for the unused functions in C builds is minimal and even zero if LTO is enabled. Maybe the preprocessor can be used to filter not required stubs (#ifdef __cplusplus), but...
by Thargon
Wed Aug 19, 2020 12:19 pm
Forum: Bug Reports
Topic: r13804 breaks C++ builds
Replies: 5
Views: 235

r13804 breaks C++ builds

Commit 13804 (https://osdn.net/projects/chibios/scm/svn/commits/13804) introduced some functions in syscalls.c, which are already present in syscalls_cpp.cpp. As a result, building any project which requires both files to be built will no longer compile. In case this is actually no bug, I am curious...
by Thargon
Thu Jul 09, 2020 7:35 am
Forum: ChibiOS/RT
Topic: 64bit OS time
Replies: 26
Views: 4164

Re: 64bit OS time

Just put some more thought in the topic and realized that my solution could be enhanced to some kind of "almost tickless" mode, allowing for timers and timeouts of arbitrary duration. First off, the accumulation ISR actually is a periodic tick. Now, whenever a timer is set or a timeout was...
by Thargon
Wed Jul 08, 2020 8:29 pm
Forum: ChibiOS/RT
Topic: 64bit OS time
Replies: 26
Views: 4164

Re: 64bit OS time

I implemented the feature some time ago in my project. Just have a look at the _systimer in my code (https://opensource.cit-ec.de/projects/amiro-os/repository/revisions/master/entry/core/src/aos_system.c). The idea is quite simple. That virtual timer fires periodically, accumulates the _uptime value...
by Thargon
Fri May 15, 2020 12:53 pm
Forum: Development and Feedback
Topic: [NOTE] Things nice to have
Replies: 15
Views: 11067

Re: [NOTE] Things nice to have

I submitted a patch some time ago for the STM32 I2Cv1 LLD: http://www.chibios.com/forum/viewtopic.php?f=38&t=4339 A more recent version compatible with ChibiOS 19.1 can be found in my project: https://opensource.cit-ec.de/projects/amiro-os/repository/changes/kernel/patches/I2C-without-DMA.patch?...
by Thargon
Thu Dec 12, 2019 2:12 pm
Forum: Bug Reports
Topic: chThdWait() may fail when registry enabled Topic is solved
Replies: 1
Views: 501

chThdWait() may fail when registry enabled Topic is solved

I just encountered an issue with the chThdWait() function when I enable the registry module. As a disclaimer, I am not quite sure whether this is actually a bug or intended behaviour. The scenario that causes my issue is quite simple: Thread A terminates thread B by calling chThdTerminate(&B) an...
by Thargon
Thu Nov 14, 2019 9:38 pm
Forum: ChibiOS/RT
Topic: encoding GPIO ports
Replies: 11
Views: 1545

Re: encoding GPIO ports

The reliable and slow way to convert from port to bit mask is creating an association table but I really dislike such a crude solution. I absolutely support this statement! A cumbersome LUT cannot be called a "good solution". Just a detail, you can map multiple event sources to the same e...

Go to advanced search