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

not compiled with esp32c3 #26

Open
ASRSim13 opened this issue Dec 8, 2021 · 7 comments
Open

not compiled with esp32c3 #26

ASRSim13 opened this issue Dec 8, 2021 · 7 comments

Comments

@ASRSim13
Copy link

ASRSim13 commented Dec 8, 2021

./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));

@DavidAntliff
Copy link
Owner

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

@ASRSim13
Copy link
Author

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

@DavidAntliff
Copy link
Owner

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

@bbinet
Copy link

bbinet commented Jan 28, 2022

I'm also facing the same issue, does not compile on esp-c3:
DavidAntliff/esp32-ds18b20-example#24

@MRusinov
Copy link

Same problem, ESP32C3, ESP-IDF 4.4

@DavidAntliff
Copy link
Owner

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?

@apexskier
Copy link

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

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

5 participants