-
Notifications
You must be signed in to change notification settings - Fork 19
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
ESP32 needs separate GDO2 and cannot disable interrupts #24
Comments
Solved by your PR, thanks! |
Hi @gabest11 . I'm trying to make my implementation work. I'm using a WROVER-ESP-32 and am running into some issues. If I run the code, it crashes (see last comment in #28 #28 (comment)). Reading this thread, it looks like this crash is caused by the interrupt code (which I agree with since disabling that makes the crash go away, however I go from code that used to send something and crashed to code that now sends nothing according to my SDR radio but doesn't crash. Any insight into what's going on here? Here's my file:
|
Since you have esp32, try to use two pins (send on gdo0, receive on gdo2) and remove the direction flipping (pinMode). That's actually in the title of this discussion. |
That did not work for me. It sent nothing at all when I tried doing things with the stock code that's checked in. It only started working more so when I starting flipping on GDO0. |
I think the cc1101 needs to be told to use gdo0 to receive and gdo2 to transmit, and that's missing in the PR that added esp32 support. I suggest looking in the docs of the SmartRC-CC1101-Driver-Lib docs |
I was trying to get the bottom of this and basically the code from #2, and when noInterrupts(); / interrupts(); is called then it will crash with this stack, so you may want to remove those with ESP32.
Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).
The text was updated successfully, but these errors were encountered: