Search found 4 matches

by ahaczewski
Tue Jul 23, 2013 4:44 pm
Forum: General Support
Topic: universal chSysLock?
Replies: 5
Views: 5486

Re: universal chSysLock?

When using Cortex you can use ICSR to know when you're in interrupt.
uint32_t icsr_vectactive = SCB->ICSR & 0x1fU; /* Get value of VECTACTIVE bits in ... */
/* ... Interrupt Control and State Register. */
if (icsr_vectactive == 0) { /* If no interrupt is active &#46 ...
by ahaczewski
Mon Aug 06, 2012 11:45 am
Forum: Development and Feedback
Topic: [STM32] I2C HAL driver problems and fixes
Replies: 36
Views: 55452

Re: [STM32] I2C HAL driver problems and fixes

@barthess: Looks like setting the POS flag is a bad thing after all, I have Invensense (ITG3200), BMP085, ADXL345 and HMC5883 on my bus and I2C locks on communication with more than 2 devices
Talking with one of them one transaction after another works flawlessly, but as soon as I go to other one ...
by ahaczewski
Fri Aug 03, 2012 9:49 am
Forum: Development and Feedback
Topic: [STM32] I2C HAL driver problems and fixes
Replies: 36
Views: 55452

Re: [STM32] I2C HAL driver problems and fixes

AFAIR it was just simple while loop doing I2C transactions with infinite timeout. I have a scope and was able to look at the data exchange and after first transmission (register address, one byte) to device both I2C line lines were low, and BUSY flag was set in uC. Because I've set no timeout, no ...
by ahaczewski
Sat Jul 28, 2012 9:17 pm
Forum: Development and Feedback
Topic: [STM32] I2C HAL driver problems and fixes
Replies: 36
Views: 55452

[STM32] I2C HAL driver problems and fixes

Hello Everyone,

I was playing around with my custom board and ChibiOS since that OS is everything I ever wanted from RTOS. First thing I was trying to run is I2C communication since I've got bunch of devices attached to that interface. And it wasn't working. The I2C HAL driver seamed to stop (hang ...