Search found 6 matches

by KalRal
Fri Apr 17, 2020 8:21 am
Forum: ChibiOS/RT
Topic: Working and simple example of Events, Listeners and Flags
Replies: 2
Views: 4457

Re: Working and simple example of Events, Listeners and Flags

Cool. Thanks Giovanni. Will keep that in mind. Yeah you are right, I could have gone with the Mailboxes, but just wanted to learn about using events. I also have an example projects repository that contains all the features that I have tried out in Chibios.

Chibios Projects
by KalRal
Thu Apr 16, 2020 7:33 pm
Forum: ChibiOS/RT
Topic: Working and simple example of Events, Listeners and Flags
Replies: 2
Views: 4457

Working and simple example of Events, Listeners and Flags

I have seen several forum topics that starts with having doubts about Events, Listeners and Event Flags. I also had some doubts and researched a bit about how they work and the forum topics were also really helpful. So to give something back to community, I have a simple working example that uses ...
by KalRal
Sun Jun 02, 2019 10:59 am
Forum: ChibiOS/HAL
Topic: MPU9250 gives garbage when spiExchange is used but not when spiSend
Replies: 4
Views: 4787

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

Maybe you are right. I even tried it with an Arduino and comparing both using a Logic analyzer. The chi(MPU9250) replies when there is a timegap of 6.4microseconds between the question(register I want to read) and its answer(contents of the register). But I am no expert in SPI and I am just starting ...
by KalRal
Sat Jun 01, 2019 9:21 pm
Forum: ChibiOS/HAL
Topic: MPU9250 gives garbage when spiExchange is used but not when spiSend
Replies: 4
Views: 4787

MPU9250 gives garbage when spiExchange is used but not when spiSend

Hi,

I am using MPU9250 to become familiar with Accelerometers and Gyroscope and eventually apply that knowledge by implementing Sensor fusion. I am using SPI to communicate with that chip.

Strangely I noticed that when spiExchange is used to get the data from the chip, it returns garbage but if I ...
by KalRal
Tue Feb 12, 2019 11:23 pm
Forum: ChibiOS/HAL
Topic: I2CD1 is not working
Replies: 3
Views: 4009

Re: I2CD1 is not working

Hi Giovanni,

I am not using any other peripheral except I2C and Serial UART. Yeah, the assertions are kept as defaults in chconf.h. CH_DBG_SYSTEM_STATE_CHECK
and CH_DBG_ENABLE_STACK_CHECK are also TRUE. I also had the same doubt initially and triple checked whether the GPIOs are properly ...
by KalRal
Tue Feb 12, 2019 9:26 pm
Forum: ChibiOS/HAL
Topic: I2CD1 is not working
Replies: 3
Views: 4009

I2CD1 is not working

First of all, thank you all very much for this amazing RTOS and making it OpenSource.
I have been trying for the last day to interface ADXL345 to STM32F4 discovery and has been unsuccessful before the last moment. The code was simple, as I was just testing it and it includes just to read device ID ...