Page 1 of 1
I2C Demo for STM32L4R5ZI
Posted: Mon Jan 13, 2025 4:35 pm
by Tabulous
Is there a demo for STM32L4R5ZI ?
I'm running into MasterTimeout Halt
Looked at the F3 as this is v2 driver but clock tree is different.
Also have GPIO set as OD
Re: I2C Demo for STM32L4R5ZI
Posted: Mon Jan 13, 2025 5:49 pm
by Giovanni
Hi,
What is the message passed to chSysHalt()? note there is a pointer to string passed as parameter.
Giovanni
Re: I2C Demo for STM32L4R5ZI
Posted: Mon Jan 13, 2025 6:07 pm
by Tabulous
it fails on this
osalDbgAssert(i2cp->state == I2C_READY, "not ready");
First time around is ok as state is I2C_READY, but the second time it is I2C_LOCKED.
Reason is 0x8016b24 <__func__.3.lto_priv.5> "i2cMasterTransmitTimeout"
Also does not look to be any clock on the SCL line..... Almost like the peripheral is not running / been clocked
Re: I2C Demo for STM32L4R5ZI
Posted: Mon Jan 13, 2025 7:04 pm
by Giovanni
Hi,
Make sure that clock settings in the configuration structure are correct for considering the input clock, there is a chapter in the RM about this.
Also possible, a GPIO problem make sure to program correctly both lines.
Giovanni