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

Update rmt.c - Fixes exceptions LoadProhibited in RMT driver #1671

Closed
wants to merge 1 commit into from

Conversation

jedi7
Copy link
Contributor

@jedi7 jedi7 commented Mar 2, 2018

Fixes exceptions LoadProhibited, when rmt tries read variable p_rmt on RX END which can be 0.
It happens after esp_reset() (OTA) and the rmt is not probably stopped by it.
In other words the routine rmt_driver_isr_default was called before second rx channel was registered.

scenario:
register tx channel
register rx channel
reboot
register tx channel
-> exception (because rx channel is accessed)

Fixes exceptions LoadProhibited, when rmt tries read variable p_rmt on RX END which can be 0.
It happens after esp_reset()  (OTA) and the rmt is not probably stopped by it.
In other words the routine rmt_driver_isr_default was called before second rx channel was registered.

scenario:
register tx channel
register rx channel
reboot
register tx channel
-> exception (because rx channel is accessed)
@jedi7 jedi7 changed the title Update rmt.c Update rmt.c - Fixes exceptions LoadProhibited in RMT driver Mar 2, 2018
@igrr igrr requested a review from costaud March 19, 2018 04:12
@projectgus projectgus added the Status: Pending blocked by some other factor label Apr 9, 2018
@projectgus
Copy link
Contributor

Hi @jedi7 ,

Thanks for sending this fix. I've cherry-picked it into our review & merge queue.

Angus

igrr pushed a commit that referenced this pull request Apr 11, 2018
Fixes exceptions LoadProhibited, when rmt tries read variable p_rmt on RX END which can be 0.
It happens after esp_reset()  (OTA) and the rmt is not probably stopped by it.
In other words the routine rmt_driver_isr_default was called before second rx channel was registered.

scenario:
register tx channel
register rx channel
reboot
register tx channel
-> exception (because rx channel is accessed)

Merges #1671
@projectgus
Copy link
Contributor

Cherry-picked and merged in 3d89c8b.

@projectgus projectgus closed this Apr 11, 2018
@igrr igrr removed the Status: Pending blocked by some other factor label Aug 9, 2018
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-idf that referenced this pull request May 5, 2021
* Selective compilation

* Optimized component.mk

* Autoconnect WiFi now forces WiFi
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.

4 participants