Hi,
thanks for the recommendation, I wll try it out.
Jan
Search found 5 matches
- Wed Aug 23, 2017 8:21 am
- Forum: STM32 Support
- Topic: I2C and Multithreading problem
- Replies: 8
- Views: 6490
- Tue Aug 22, 2017 4:24 pm
- Forum: STM32 Support
- Topic: I2C and Multithreading problem
- Replies: 8
- Views: 6490
Re: I2C and Multithreading problem
Hi,
I really thought 128 byte would be enough for I2C communication. But apparantly this was the problem all along. I increased the working area to 256 byte and it works. Thanks for the help
Jan
I really thought 128 byte would be enough for I2C communication. But apparantly this was the problem all along. I increased the working area to 256 byte and it works. Thanks for the help
Jan
- Tue Aug 22, 2017 4:05 pm
- Forum: STM32 Support
- Topic: I2C and Multithreading problem
- Replies: 8
- Views: 6490
Re: I2C and Multithreading problem
Hi,
yes, and I just found out that ch.dbg.panic_msg reports a stack overflow. But I cannot figure out what causes this.
Jan
yes, and I just found out that ch.dbg.panic_msg reports a stack overflow. But I cannot figure out what causes this.
Jan
- Tue Aug 22, 2017 2:25 pm
- Forum: STM32 Support
- Topic: I2C and Multithreading problem
- Replies: 8
- Views: 6490
Re: I2C and Multithreading problem
Hi,
thanks for the quick reply. I tried adding chThdSleepMilliseconds(1000) to the main loop. Unfortunatly the problem remains.
Jan
thanks for the quick reply. I tried adding chThdSleepMilliseconds(1000) to the main loop. Unfortunatly the problem remains.
Jan
- Tue Aug 22, 2017 2:08 pm
- Forum: STM32 Support
- Topic: I2C and Multithreading problem
- Replies: 8
- Views: 6490
I2C and Multithreading problem
Hi,
I'm using a STM32F030 board to communicate with a LSM303D sensor board via I2C using the ChibiOS I2CDriver. I want to read data periodically from the sensor. Everything works fine as long as I use the main thread for the I2C communication. Now I tried to create a second thread to read the data ...
I'm using a STM32F030 board to communicate with a LSM303D sensor board via I2C using the ChibiOS I2CDriver. I want to read data periodically from the sensor. Everything works fine as long as I use the main thread for the I2C communication. Now I tried to create a second thread to read the data ...