Search found 118 matches

by Thargon
Thu Apr 08, 2021 8:17 am
Forum: Small Change Requests
Topic: chprintf() show special values (float)
Replies: 6
Views: 148

Re: chprintf() show special values (float)

Just a minor update on compatibility: According to the C standard, floating-point arithmetic shall comply to the IEC 60559 floating-point standard. Even though exceptions are possible by setting the feature macro '__STDC_IEC_559__' to 0, that would break binary compatibility etc. and is thus not off...
by Thargon
Wed Apr 07, 2021 3:37 pm
Forum: Small Change Requests
Topic: chprintf() show special values (float)
Replies: 6
Views: 148

Re: chprintf() show special values (float)

That code applies to IEEE 754 single-precision floating point specification. I'd assume that all modern MCUs, compilers and software libraries follow that IEEE standard, but there might be exceptions. If those exceptions are an issue for ChibiOS, using the standard library 'math.h' header should be ...
by Thargon
Wed Apr 07, 2021 3:00 pm
Forum: Small Change Requests
Topic: chprintf() show special values (float)
Replies: 6
Views: 148

Re: chprintf() show special values (float)

I see that 64 bit support may cause extra trouble. As for the FP output feature: It's really only very few lines of code and can provide very helpful information, imho. If you don't want to include the extra math.h header, the three used methods 'isfinite()', 'isinf()' and 'isnan()' can be easily im...
by Thargon
Wed Apr 07, 2021 1:26 pm
Forum: Small Change Requests
Topic: chprintf() show special values (float)
Replies: 6
Views: 148

chprintf() show special values (float)

Hi, chprintf() does not print special float values (i.e. INF, NAN) appropriately, yet. I have already created a patch that introduces this feature. The patch is based on a slightly outdated revision of the stable_20.x branch, but I do not expect any conflicts. Btw, is there any chance to get 64 bit ...
by Thargon
Mon Sep 21, 2020 8:06 am
Forum: Bug Reports
Topic: STM32G0 RTC init failure Topic is solved
Replies: 4
Views: 587

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: 587

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: 6
Views: 510

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: 6
Views: 510

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: 6
Views: 510

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: 5390

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...

Go to advanced search