Could be an electrical glitch or noise on those lines.
Do you have external pull-up resistors?
Giovanni
I2C4 issue on STM32F76xx
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14458
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: I2C4 issue on STM32F76xx
I found some time tonight to wire up a MCP23017 to I2C4 of my STM32F769-DISCO kit, which thankfully was conveniently on a header.
It works as expected on this board, using the same code (except for the board.h which I reused from the one in os/hal/boards/STM32F769-DISCOVERY, and changed just pins relating to the I2C4 peripheral).
That is, I didn't have to trick it by starting the driver twice, or commenting out the NACKF handling code in the ISR.
It works as expected on this board, using the same code (except for the board.h which I reused from the one in os/hal/boards/STM32F769-DISCOVERY, and changed just pins relating to the I2C4 peripheral).
That is, I didn't have to trick it by starting the driver twice, or commenting out the NACKF handling code in the ISR.
Re: I2C4 issue on STM32F76xx
Arrrrg, I think I found it.
On the initial test, I didn't notice that the pin GPIOB_AUDIO_SDA (from the STM32F769-DISCO board.h) was also configured to mux to the I2C4 peripheral, and was set as PUSHPULL. Not sure if this is correct for its original intended use?
Either way, my problem was completely a PEBCAK situation, thanks for bearing with me.
I just looked back through my working test from last night and compared it to the non-working one and bang!
On the initial test, I didn't notice that the pin GPIOB_AUDIO_SDA (from the STM32F769-DISCO board.h) was also configured to mux to the I2C4 peripheral, and was set as PUSHPULL. Not sure if this is correct for its original intended use?
Either way, my problem was completely a PEBCAK situation, thanks for bearing with me.
I just looked back through my working test from last night and compared it to the non-working one and bang!
Who is online
Users browsing this forum: No registered users and 10 guests