Search found 114 matches

by Thargon
Mon Oct 08, 2018 5:04 pm
Forum: Bug Reports
Topic: chTestAddX() fails during test suite Topic is solved
Replies: 6
Views: 865

Re: chTestAddX() fails during test suite Topic is solved

Hi, I've had another look at the issue and found a solution, which I hope will satisfy everyone. I'll start with a brief argument, followed by the code and a more detailed explanation. Looking at the function chTimeAddX(), the idea is to add some sysinterval_t value to a given systime_t and get the ...
by Thargon
Mon Oct 08, 2018 9:37 am
Forum: Small Change Requests
Topic: Introducing a thread hierarchy
Replies: 5
Views: 830

Re: Introducing a thread hierarchy

I didn't include a "kill" feature by design, it is inherently unsafe and there are a lot of corner cases. I absolutely support this. It's just in my very special case that I can do something nasty like that, but it doesn't need to be be a general feature of the OS (and probably should not...
by Thargon
Thu Oct 04, 2018 4:09 pm
Forum: Small Change Requests
Topic: Introducing a thread hierarchy
Replies: 5
Views: 830

Re: Introducing a thread hierarchy

That would be like processes in Posix. Yes, something similar would be nice. What happens when a parent terminates? In Posix orphans are assigned to the init process but we don't have such a thing. Isn't the main thread something like an init process? You may implement something like that by making...
by Thargon
Thu Oct 04, 2018 11:26 am
Forum: Small Change Requests
Topic: Introducing a thread hierarchy
Replies: 5
Views: 830

Introducing a thread hierarchy

Hi, I need a way to track child threads of any thread in order to shut down my system correctly. Basically my use case is that I want to implement an interface, which automatically stops a thread (after the CH_FLAG_TERMINATE flag has been set) and all its child threads (in any). As for the definitio...
by Thargon
Wed Sep 26, 2018 10:29 am
Forum: Bug Reports
Topic: chTestAddX() fails during test suite Topic is solved
Replies: 6
Views: 865

Re: chTestAddX() fails during test suite Topic is solved

Hi, that is true in my case as I use a 16 bit timer but set a frequency of 1MHz. I didn't say that the chTimeAddX() function is broken, though, but it seems the default kernel test suite is. In principle there should be no issue with my configuration as long as you don't try to use values greater th...
by Thargon
Thu Sep 13, 2018 3:08 pm
Forum: ChibiOS/HAL
Topic: STM32F1 DMA stream already allocated
Replies: 2
Views: 583

Re: STM32F1 DMA stream already allocated

Hi, solved it! Long time ago I wrote a patch (STM32/LLD/I2Cv1/) to allow non-DMA I2C communication, which relies on ISRs only. The patch could not be applied anymore with the latest ChibiOS but my script did not complain :oops: I reworked the patch, applied it and everything works like a charm :D Yo...
by Thargon
Thu Sep 13, 2018 12:42 pm
Forum: ChibiOS/HAL
Topic: STM32F1 DMA stream already allocated
Replies: 2
Views: 583

STM32F1 DMA stream already allocated

Hi, I encountered a DMA issue with my STM32F103 after porting my project to ChibiOS 18.2.x. When calling spiStart() on SPID2, I get a kernel panic in the spi_lld_start() function (DMA stream already allocated). The problem seems to be that I also use I2CD2, which allocates the same DMA channels befo...
by Thargon
Thu Sep 06, 2018 2:18 pm
Forum: Bug Reports
Topic: chTestAddX() fails during test suite Topic is solved
Replies: 6
Views: 865

Re: chTestAddX() fails during test suite Topic is solved

Hi, have a look at our repository: https://opensource.cit-ec.de/projects/amiro-os/repository/revisions/master/show/modules There is a chconf.h for each module (in the subfolders), but each one includes the aos_chconf.h file, where very most settings are located. I hope the files are well enough orga...
by Thargon
Thu Sep 06, 2018 1:37 pm
Forum: Bug Reports
Topic: GCC warnings due to outdated CMSIS Topic is solved
Replies: 4
Views: 774

Re: GCC warnings due to outdated CMSIS Topic is solved

Hi,

yep, now the issue is resolved. Thanks for the quick response!

- Thomas
by Thargon
Thu Sep 06, 2018 9:13 am
Forum: Bug Reports
Topic: GCC warnings due to outdated CMSIS Topic is solved
Replies: 4
Views: 774

Re: GCC warnings due to outdated CMSIS Topic is solved

Hi Giovanni, unfortunately the issue still persists. First of all, I might have made a mistake as I checked CMSIS 5.3 again and found that the issue was only resolved in 5.4 :oops: However, you said you updated to 5.3 but the cmsis_version.h file actually says 5.1. I haven't checked everything, so I...

Go to advanced search