I2C breaks due debug restart
Posted: Thu Jun 18, 2020 5:48 pm
Is there some way how to stop program by debugger in state that will not break i2c ? Or is there some way how to "reset" bus ?
I have two 6050 on I2CD2 (STM32F407) on wires (STD/100kH) and also at24c08 memory on I2C1 directly on pcb (FAST/400)
Problem with 6050 could be fixed by power cycle on them after restart (before I2C is initialized). But recycle power on board is much bigger problem and so it breaks initial load (using that memory for configuration and calibration data).
Do I missing something in ST-LinkV2/OpenOCD usage or it is something what can't be fixed at all ?
Maybe one issue connected to this - what is better ? Set Alternates for I2C in board files or in code itself just before i2cStart ?
I have two 6050 on I2CD2 (STM32F407) on wires (STD/100kH) and also at24c08 memory on I2C1 directly on pcb (FAST/400)
Problem with 6050 could be fixed by power cycle on them after restart (before I2C is initialized). But recycle power on board is much bigger problem and so it breaks initial load (using that memory for configuration and calibration data).
Do I missing something in ST-LinkV2/OpenOCD usage or it is something what can't be fixed at all ?
Maybe one issue connected to this - what is better ? Set Alternates for I2C in board files or in code itself just before i2cStart ?