Search found 114 matches

by Thargon
Wed Sep 05, 2018 4:58 pm
Forum: Small Change Requests
Topic: getters for PAL event system Topic is solved
Replies: 2
Views: 559

getters for PAL event system Topic is solved

Hi, I wonder if it is possible to introduce getters to the new PAL event/interrupt system? In my case, I want to check whether the event for a specific pad is already enabled. I need this, so I can do some stuff and set the pad event in the same configuration as before. Of course that is possible vi...
by Thargon
Wed Sep 05, 2018 4:53 pm
Forum: Bug Reports
Topic: chnControl() macro broken Topic is solved
Replies: 1
Views: 405

chnControl() macro broken Topic is solved

Hi,

I stumbled over a type in the hal_channel.h file, line 223:

Code: Select all

#define chnControl(ip, operation, arg) ((ip)->vmt->ctl(ip, operation, arg)

The last closing bracket is missing there ;)

- Thomas
by Thargon
Wed Sep 05, 2018 4:49 pm
Forum: Bug Reports
Topic: chTestAddX() fails during test suite Topic is solved
Replies: 6
Views: 934

chTestAddX() fails during test suite Topic is solved

Hi, when I run the default test suite by calling 'test_execute()' the kernel panics, stating that the assertion in 'chTimeAddX()' has failed. In my configuration CH_CFG_ST_RESOLUTION is set to 16 and CH_CFG_INTERVALS_SIZE is set to 32. If you need any further information, please ask ;) Furthermore, ...
by Thargon
Fri Jul 13, 2018 3:11 pm
Forum: Bug Reports
Topic: RTCv1 + GCC7: rtc_decode() produces random output Topic is solved
Replies: 5
Views: 1026

Re: RTCv1 + GCC7: rtc_decode() produces random output Topic is solved

Hi, I investigated a little and could fix the issue by only adding a few lines to hat_rtc_lld.c. I only had to slightly modify the rtc_decode() function (see below). The issue was probably caused by the minor detail, that since C11 time_t is not defined to be an arithmetic type, but a real type. As ...
by Thargon
Mon Jul 09, 2018 11:02 am
Forum: Bug Reports
Topic: RTCv1 + GCC7: rtc_decode() produces random output Topic is solved
Replies: 5
Views: 1026

RTCv1 + GCC7: rtc_decode() produces random output Topic is solved

Hi, the RTCv1 driver produces random output when reading the current time for binaries compiled with GCC7. I am running an STM32F103, so the RTCv1 LLD applies. The compiler I use is GCC7: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded...
by Thargon
Thu Jul 05, 2018 10:40 am
Forum: Bug Reports
Topic: GCC warnings due to outdated CMSIS Topic is solved
Replies: 4
Views: 827

GCC warnings due to outdated CMSIS Topic is solved

Hi, GCC 7 warns when compiling ChibiOS 17.6.x and 18.2.x about unallowed 'register' storage class specifier in cmsis_gcc.h, an issue which has been fixed in the recent CMSIS 5.3 (or maybe already in 5.1 or 5.2 - I only checked 5.0 (broken) and 5.3). For ChibiOS 17.6.x the exact file path is os/commo...
by Thargon
Tue Jul 03, 2018 3:43 pm
Forum: Small Change Requests
Topic: PATCH: enable STM32/LLD/ADCv2 analog watchdog Topic is solved
Replies: 6
Views: 1416

Re: PATCH: enable STM32/LLD/ADCv2 analog watchdog Topic is solved

Hi, I believe the line numbers do not match anymore but patching tools can handle simple shifts like this... I think the reason why Giovanni did not merge this was maintenance. If this feature is part of the official ChibiOS framework, it needs to be officially tested and maintained. Unfortunately, ...
by Thargon
Sun Jun 03, 2018 4:14 am
Forum: Small Change Requests
Topic: Improvement on new interval system Topic is solved
Replies: 2
Views: 1014

Re: Improvement on new interval system Topic is solved

Hi, in general you are completely right and I support your opinion. But in practice we are on a scale where overflows will only occur in rare cases as I mentioned at the end of my post. As I showed, given a 64 bit wide time_conv_t and a CH_CFG_ST_FREQUENCY of 1 MHz, you can still safely calculate ti...
by Thargon
Thu May 24, 2018 4:53 pm
Forum: ChibiOS/RT
Topic: "smart build" and comments
Replies: 3
Views: 770

Re: "smart build" and comments

1) Commenting out the defines with // is illegal, latest code would complain about that and not even compile because now chconf.h is checked for integrity. If a definition is missing then you get an #error. If I include another header where all those defines exist, that should not be illegal. I thi...
by Thargon
Thu May 24, 2018 2:35 pm
Forum: ChibiOS/RT
Topic: "smart build" and comments
Replies: 3
Views: 770

"smart build" and comments

Hi, I just encountered a very bad and as it seems not well documented limitation of the "smart build" feature. If the variable USE_SMART_BUILD is set to "yes" in the Makefile, os/rt/rt.mk will parse the chconf.h file. This parsing is incorrect, though, as it searches for all line...

Go to advanced search