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

renesas: disable capture interrupt before open() #322

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

facchinm
Copy link
Contributor

Fixes arduino/ArduinoCore-renesas#139

Renesas fsp structures must be properly initialized entirely since memsetting all to 0 makes some values "valid" (in this case, the capture irq was firing as 0 instead than the agt interrupt, leading to a null pointer crash)

@runger1101001
Copy link
Member

Thank you so much for this! It makes complete sense.

What I don't understand is why only the WiFi was affected, an not the Minima.

I will merge to our dev branch and test it.

@runger1101001 runger1101001 changed the base branch from master to dev September 27, 2023 18:47
@runger1101001 runger1101001 self-assigned this Sep 27, 2023
@runger1101001 runger1101001 added this to the 2.3.2_Release milestone Sep 27, 2023
@runger1101001 runger1101001 merged commit aa7e3ec into simplefoc:dev Sep 27, 2023
@runger1101001
Copy link
Member

Thanks @facchinm ❤️ this has indeed fixed the problem.

@runger1101001
Copy link
Member

arduino/ArduinoCore-renesas#139 could be closed but I am still blocked from commenting on it / closing it

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.

[R4 WiFi vs Minima, Timers] using timers causing crash on R4 WiFi
2 participants