Skip to content
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

[v4.2 branch] ESP32S2 Wire.begin() div zero in i2c_hal_set_bus_timing #4530

Closed
ladyada opened this issue Nov 13, 2020 · 2 comments
Closed

[v4.2 branch] ESP32S2 Wire.begin() div zero in i2c_hal_set_bus_timing #4530

ladyada opened this issue Nov 13, 2020 · 2 comments

Comments

@ladyada
Copy link
Contributor

ladyada commented Nov 13, 2020

example code to replicate:

#include <Wire.h>

void setup() {
  Wire.begin();
}

void loop() {
}

selected ESP32S2 dev module and upload with IDE 1.8.3

PC: 0x4008cb1a: i2c_hal_set_bus_timing at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32s2/include/hal/i2c_ll.h line 96
EXCVADDR: 0x00000000

Decoding stack results
0x4008cb17: i2c_hal_set_bus_timing at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/i2c_hal.c line 179
0x400870f8: i2c_param_config at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/driver/i2c.c line 621
0x400812dc: i2cInit (C:\Users\ladyada\Dropbox at Personal)\ArduinoSketches\hardware\espressif\esp32\cores\esp32\esp32-hal-i2c.c line 1822
0x400811b7: TwoWire::begin(int, int, unsigned int) (C:\Users\ladyada\Dropbox at Personal)\ArduinoSketches\hardware\espressif\esp32\libraries\Wire\src\Wire.cpp line 110
0x400810c7: setup() at C:\Users\ladyada\Dropbox\ArduinoSketches\BSP\MetroESP32S2\i2ccrash/i2ccrash.ino line 4
0x40081856: loopTask(void*) (C:\Users\ladyada\Dropbox at Personal)\ArduinoSketches\hardware\espressif\esp32\cores\esp32\main.cpp line 27
me-no-dev added a commit that referenced this issue Nov 17, 2020
@me-no-dev
Copy link
Member

done :)

@ladyada
Copy link
Contributor Author

ladyada commented Nov 17, 2020

thanks - will try soon!

me-no-dev added a commit that referenced this issue Mar 31, 2021
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

No branches or pull requests

2 participants