Skip to content

Fix nullpointer exception - #2

Closed
raldone01 wants to merge 1 commit into
bbulkow:masterfrom
raldone01:patch-1
Closed

raldone01 wants to merge 1 commit into
bbulkow:masterfrom
raldone01:patch-1

Conversation

@raldone01

Copy link
Copy Markdown

ESP-IDFv4 requires rmt_driver_install to be called even if a custom interrupt handler is registered. You may want to add this to your awesome readme file.

ESP-IDFv4 requires rmt_driver_install to be called even if a custom interrupt handler is registered. You may want to add this to your awesome readme file.
@bbulkow

bbulkow commented Mar 8, 2020 •

Copy link
Copy Markdown
Owner

What makes you believe that? The documentation seems to say the exact opposite:
https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/rmt.html#configure-driver

"
When calling rmt_driver_install() to use the system RMT driver, a default ISR is being installed. In such a case you cannot register a generic ISR handler with rmt_isr_register().
"

and I am not getting null pointer exceptions in the checked in main.cpp example application or anything else I've written.

What is your experience? I am running the 4.0 "stable" branch ( not master ), I have run on espressif-made boards ( currently standardizing on the PICO v4.1 ), although I think I've run on a few others I have lying around.

@raldone01

Copy link
Copy Markdown
Author

Thanks for testing. You are right this only crashes on the current master branch of esp-idf.

@raldone01 raldone01 closed this Mar 9, 2020
@bbulkow

bbulkow commented Mar 14, 2020

Copy link
Copy Markdown
Owner

Well, that's still an issue. I will re-open and test with master, it should work. I hope your fix isn't the right one though, it flys in the face of the documentation. I can also raise an issue with upstream.... they may have a bug in master they're not aware of.

@bbulkow bbulkow reopened this Mar 14, 2020
@bbulkow bbulkow closed this Mar 14, 2020
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

Successfully merging this pull request may close these issues.

2 participants