Skip to content

esp32-hal-i2c.c possible semaphore deadlock #10304

Closed
@vvb333007

Description

@vvb333007

Board

ESP32-WROOM-32D

Device Description

Generic ESP32 breakout board

Hardware Configuration

no connections

Version

v3.0.4

IDE Name

Arduino IDE

Operating System

Windows10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

Code in esp32-hal-i2c.c has an issue: upon some circumstancies it is possible that function i2cInit() returns without releasing a locking semaphore. Plus to that a boolean is returned instead ot sep_err_t. See attached screenshot: problematic code was commented out and a solution proposed.
image

Sketch

issue is on the screenshot. no sketch needed.

Debug Message

There are no messages

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions