Skip to content

Issue #44: Bug: motor task hangs mcu indefinitely on i2c fail#45

Draft
hasslesstech wants to merge 7 commits intomainfrom
44-ecu-stm32-bug-motor-task-hangs-mcu-indefinitely-on-i2c-fail
Draft

Issue #44: Bug: motor task hangs mcu indefinitely on i2c fail#45
hasslesstech wants to merge 7 commits intomainfrom
44-ecu-stm32-bug-motor-task-hangs-mcu-indefinitely-on-i2c-fail

Conversation

@hasslesstech
Copy link
Copy Markdown
Contributor

This PR addresses the hanging issue in two ways:

  • allows the motor task to exit during PCA9685 initialization in case it does not respond to I2C commands;
  • sets a hard limit on time spent waiting for the PCA9685 to respond during write4 command.

Both changes are backwards-compatible and do not break existing code.

@hasslesstech hasslesstech linked an issue Apr 22, 2026 that may be closed by this pull request
@hasslesstech hasslesstech force-pushed the 44-ecu-stm32-bug-motor-task-hangs-mcu-indefinitely-on-i2c-fail branch from 2aa9b0d to 6b4ff02 Compare April 22, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ECU STM32] Bug: Motor task hangs MCU indefinitely on I2C fail

1 participant