esp32-owb icon indicating copy to clipboard operation
esp32-owb copied to clipboard

not compiled with esp32c3

Open ASRSim13 opened this issue 3 years ago • 7 comments

./components/esp32-owb/owb_rmt.c ../components/esp32-owb/owb_rmt.c: In function '_init': ../components/esp32-owb/owb_rmt.c:432:26: error: incompatible types when assigning to type 'volatile union ' from type 'int' GPIO.enable_w1ts = (0x1 << gpio_num); ^ ../components/esp32-owb/owb_rmt.c:436:14: error: 'gpio_dev_t' {aka 'volatile struct gpio_dev_s'} has no member named 'enable1_w1ts'; did you mean 'enable_w1ts'? GPIO.enable1_w1ts.data = (0x1 << (gpio_num - 32));

ASRSim13 avatar Dec 08 '21 11:12 ASRSim13

Which compiler version (gcc --version) and ESP-IDF version are you using?

DavidAntliff avatar Dec 10 '21 21:12 DavidAntliff

Which compiler version (gcc --version) and ESP-IDF version are you using?

ESP-IDF v4.3.1 -- Found Git: /usr/bin/git (found version "2.25.1") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 with other versions - the same problem

ASRSim13 avatar Dec 13 '21 08:12 ASRSim13

Thanks for the report, I will look into this when time permits. On the face of it, It's probably a portability issue.

DavidAntliff avatar Dec 19 '21 00:12 DavidAntliff

I'm also facing the same issue, does not compile on esp-c3: https://github.com/DavidAntliff/esp32-ds18b20-example/issues/24

bbinet avatar Jan 28 '22 17:01 bbinet

Same problem, ESP32C3, ESP-IDF 4.4

MRusinov avatar Feb 17 '22 12:02 MRusinov

Thanks to contributor @mjcross there's now support for ESP-IDF v4.4.4 and v5.0.1. If you have time, would you mind trying again with the latest code from the master branch, please?

DavidAntliff avatar Mar 26 '23 21:03 DavidAntliff

https://github.com/CJCombrink/esp32-owb resolved this for me, esp IDF v5.1.2

apexskier avatar Dec 17 '23 02:12 apexskier