Search found 273 matches

by alex31
Tue Sep 17, 2019 2:32 pm
Forum: General Support
Topic: c++ callback function in class
Replies: 4
Views: 76

Re: c++ callback function in class

° you can also pass the address of a static member function of the class.

° another convenient way is to use captureless lambda, but you need a c++11 compliant compiler.

Alexandre
by alex31
Tue Sep 17, 2019 10:34 am
Forum: Small Change Requests
Topic: CAN abort API for stm32
Replies: 0
Views: 46

CAN abort API for stm32

Hello, I continue here in Small Change Requests a thread that has began here : http://www.chibios.com/forum/viewtopic.php?f=35&t=176 I have wrote a couple of straightforward functions that does the job, only in low-level for now. I have tested the behavior on a small can bus with three nodes + l...
by alex31
Sat Sep 14, 2019 8:52 pm
Forum: Bug Reports
Topic: CAN bus driver - transmission abort
Replies: 4
Views: 2405

Re: CAN bus driver - transmission abort

Thank you, I have a little experimental working CAN network, nothing shiny, few F767 drone autopilot with CAN transceiver wired together. With a saleae logic pro, supporting can 2.0b frame, I can begin to experiment, I'll post here results. I want to eventually use uavcan to connect sensors to the a...
by alex31
Sat Sep 14, 2019 5:19 pm
Forum: Bug Reports
Topic: CAN bus driver - transmission abort
Replies: 4
Views: 2405

Re: CAN bus driver - transmission abort

Hello, Ok, this thread is eight years old, but, the question is still of interest. Aborting an ongoing transmission to be able to send an higher priority message is described in the standard (at least in the book "Understanding and Using the Controller Area Network Communication Protocol",...
by alex31
Sat Aug 24, 2019 11:43 am
Forum: Bug Reports
Topic: Preventing interrupt storms on STM32
Replies: 23
Views: 517

Re: Preventing interrupt storms on STM32

Hello, As an UAV developer, i can confirm that the electrical and electromagnetic environment is very harsh. Things that works well on the bench suddenly have strange behaviour when flying. In this context i welcome all software guard that can trap hardware fault, and vote for inclusion of i2c and s...
by alex31
Sun Jun 23, 2019 10:27 pm
Forum: Development and Feedback
Topic: [NOTES] Multi Core support
Replies: 12
Views: 639

Re: [NOTES] Multi Core support

Hello,

You are probably aware of the STM32MP1 : 2xA7+CM4

devboard (STM32MP157A-DK1) should be available soon at reasonable price (69$)

But it's perhaps too much work to port ChibiOS to cortex A architecture ...

Alexandre
by alex31
Mon Jun 03, 2019 10:03 am
Forum: ChibiOS/HAL
Topic: MPU9250 gives garbage when spiExchange is used but not when spiSend
Replies: 4
Views: 262

Re: MPU9250 gives garbage when spiExchange is used but not when spiSend

Hello, I have no experience of using MPU9250 with SPI, but i use ICM20600 with SPI and theses chip from invensense are fairly similar. With the ICM20600, i have no problem using spiExchange, with a spi clock @ 6.25Mhz What STM MPU are you using ? What Polarity and Phase are you using ? (post your SP...
by alex31
Wed May 29, 2019 3:53 pm
Forum: ChibiOS/HAL
Topic: question about rationnale of function name
Replies: 1
Views: 128

question about rationnale of function name

Hello, I have a question of very little importance, but still, I have to ask :-) Why for for some ADC drivers (f37x, adcV2) , the function that enable internal channel vref and battery are : adcSTM32EnableTSVREFE(); adcSTM32EnableVBATE(); and for others (f3xx, adcV1, adcV3, adcV4) , there is not the...
by alex31
Sun May 26, 2019 9:54 pm
Forum: ChibiOS/RT
Topic: EXT unhandled exception
Replies: 8
Views: 418

Re: EXT unhandled exception

the problem is that you cannot use a chprintf in an interruption handler. you need to read the chibios documentation, it explains that there is function that can be called from thread context, and functions that can bell called from interruption context. chprintf is a function that can only be calle...
by alex31
Mon Apr 29, 2019 2:28 pm
Forum: STM32 Support
Topic: Need help with SPI and STM32F4Discovery
Replies: 10
Views: 428

Re: Need help with SPI and STM32F4Discovery

perhaps the problem is elsewhere ? are you sure you compile and flash that code ? are you sure flashing don't go wrong ? are you sure your code don't fail even before going into main Have you run your code within debugger to be sure ? alternatively you can modify the code in that way : call spiselec...

Go to advanced search