Search found 260 matches

by faisal
Thu Jan 11, 2018 6:39 am
Forum: General Support
Topic: FatFs hogging the OS
Replies: 5
Views: 1130

Re: FatFs hogging the OS

Try looking up rate monotonic scheduling. Giovanni gave a wonderful summary of it in his reply.
by faisal
Thu Jan 11, 2018 1:16 am
Forum: ChibiOS/HAL
Topic: Timer triggered SPI read with circular DMA
Replies: 11
Views: 3043

Re: Timer triggered SPI read with circular DMA

Hi, I added circular (continuous) support to the SPIv3 driver (STM32H7), next I will do the same to SPIv1 and SPIv2. I have not yet clear how time triggering could be done, right now it is SPI triggering the DMA. On H7 it would be possible to change the DMAMUX-peripheral association after calling s...
by faisal
Tue Jan 09, 2018 5:01 pm
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 5185

Re: Clang/LLVM

Here's how to get the latest clang version without compiling from sources. I'm having some trouble expanding the drive on my VM, so I went ahead with this. I've tried it on some PC applications so far and it works. I haven't tried targeting embedded yet .. https://blog.kowalczyk.info/article/k/how-t...
by faisal
Tue Jan 09, 2018 4:58 pm
Forum: ChibiOS/HAL
Topic: Change CAN driver to use callbacks
Replies: 9
Views: 1767

Re: Change CAN driver to use callbacks

Any feedback about the changes? Giovanni Yes, thank you :) ! Just a small feedback: CAN_ENFORCE_USE_CALLBACKS should be checked by the preprocessor if it defined as TRUE or FALSE. From what I've seen this is more consistent with other drivers in HAL. In the header file, you could have a default def...
by faisal
Tue Jan 09, 2018 1:20 am
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 5185

Re: Clang/LLVM

Hi, No progress on this, anyway, PORT_IRQ_HANDLER is no more a naked function so it should work now. About the static analyzer, I think it can be used regardless if the compiled code works or not. Is there a guide to get started? Giovanni I've been using this today: http://clang.llvm.org/get_starte...
by faisal
Sun Jan 07, 2018 8:31 pm
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 5185

Re: Clang/LLVM

Any updates on this topic? Would be really nice to have Clang/LLVM support. I'm interested in using the clang static analyzer, I've read good things about it.
by faisal
Mon Jan 01, 2018 4:59 pm
Forum: ChibiOS/HAL
Topic: Change CAN driver to use callbacks
Replies: 9
Views: 1767

Re: Change CAN driver to use callbacks

Hi, Disable events in chconf.h and OSAL will use callbacks instead. Giovanni But then we can't use events elsewhere in the project ... Changing HAL CAN to be more like other drivers that use call backs, apart from better design and being more flexible, would also make the HAL interfaces more consis...
by faisal
Mon Jan 01, 2018 4:28 am
Forum: ChibiOS/HAL
Topic: Change CAN driver to use callbacks
Replies: 9
Views: 1767

Change CAN driver to use callbacks

There was a thread a long time ago to modify the CAN driver to use callbacks: http://www.chibios.com/forum/viewtopic.php?f=3&t=282 . Any plan to modify HAL CAN? I think the current system of broadcasting events should be replaced with ISR callbacks. This way, the driver could be used to 'push' t...
by faisal
Sun Dec 31, 2017 1:37 am
Forum: ChibiOS/HAL
Topic: Timer triggered SPI read with circular DMA
Replies: 11
Views: 3043

Timer triggered SPI read with circular DMA

Sampling an external ADC using is a common usage of the SPI bus. At high sample rates, you need to use a hardware timer to trigger a DMA write to SPI TX register, and setup a DMA request on SPI RX in circular mode with half transfer and transfer complete interrupts enabled. That is really the only f...
by faisal
Thu Dec 14, 2017 6:05 am
Forum: General Support
Topic: Thread to thread communication - Mailboxes - Mempools and dereferencing
Replies: 4
Views: 1313

Re: Thread to thread communication - Mailboxes - Mempools and dereferencing

Hi, It is a common use case. Pools are implemented as linked lists, the link is placed at beginning of the objects and overwrites the object data, this is why pools can only used to store disposed objects not "live" ones. In ChibiOS trunk there is a new object called "Objects FIFO&qu...

Go to advanced search