Skip to content

Build fails in esp32-hal-i2c.c when -DCONFIG_DISABLE_HAL_LOCKS=1 #9073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
everslick opened this issue Jan 6, 2024 · 1 comment · Fixed by #9164
Closed
1 task done

Build fails in esp32-hal-i2c.c when -DCONFIG_DISABLE_HAL_LOCKS=1 #9073

everslick opened this issue Jan 6, 2024 · 1 comment · Fixed by #9164
Assignees
Labels
3.0 migration issue relates to migration from 2.X to 3.X version
Milestone

Comments

@everslick
Copy link
Contributor

Board

ESP32

Device Description

n.a.

Hardware Configuration

n.a.

Version

latest master (checkout manually)

IDE Name

makeEspArduino

Operating System

Linux

Flash frequency

n.a.

PSRAM enabled

yes

Upload speed

n.a.

Description

Compiler bails for I2C if HAL LOCKS are disabled.

Sketch

n.a.

Debug Message

home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c: In function 'i2cInit':
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:129:25: error: 'i2c_bus_t' has no member named 'scl'
  129 |             bus[i2c_num].scl = scl;
      |                         ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:130:25: error: 'i2c_bus_t' has no member named 'sda'
  130 |             bus[i2c_num].sda = sda;
      |                         ^
In file included from /home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:31:
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c: In function 'i2cDeinit':
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:164:44: error: 'i2c_bus_t' has no member named 'scl'
  164 |             perimanClearPinBus(bus[i2c_num].scl);
      |                                            ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-periman.h:19:48: note: in definition of macro 'perimanClearPinBus'
   19 | #define perimanClearPinBus(p) perimanSetPinBus(p, ESP32_BUS_TYPE_INIT, NULL, -1, -1)
      |                                                ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:165:44: error: 'i2c_bus_t' has no member named 'sda'
  165 |             perimanClearPinBus(bus[i2c_num].sda);
      |                                            ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-periman.h:19:48: note: in definition of macro 'perimanClearPinBus'
   19 | #define perimanClearPinBus(p) perimanSetPinBus(p, ESP32_BUS_TYPE_INIT, NULL, -1, -1)
      |                                                ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:166:25: error: 'i2c_bus_t' has no member named 'scl'
  166 |             bus[i2c_num].scl = -1;
      |                         ^
/home/clemens/Devel/ESP/emonio-fw/sdk/Arduino-ESP32-3.0.0/cores/esp32/esp32-hal-i2c.c:167:25: error: 'i2c_bus_t' has no member named 'sda'
  167 |             bus[i2c_num].sda = -1;

Other Steps to Reproduce

n.a.

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@everslick everslick added the Status: Awaiting triage Issue is waiting for triage label Jan 6, 2024
@SuGlider SuGlider self-assigned this Jan 6, 2024
@SuGlider SuGlider added Status: Needs investigation We need to do some research before taking next steps on this issue 3.0 migration issue relates to migration from 2.X to 3.X version and removed Status: Awaiting triage Issue is waiting for triage labels Jan 6, 2024
@SuGlider
Copy link
Collaborator

SuGlider commented Jan 6, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 migration issue relates to migration from 2.X to 3.X version
Projects
Development

Successfully merging a pull request may close this issue.

4 participants