Skip to content

ISR and saving to a file, ESP32 versus STM32F411 #16652

Discussion options

You must be logged in to vote

There is a difference between hard and soft interrupts. Soft interrupts schedule the handler as a normal Python function. It can use the all Python functions and especially allocate memory. Hard interrupts are called by the MCU interrupt handler directly. They can use only a limited set of Python features and especially they must not allocate memory, and they cannot handle exceptions. So I assume that in your case you use a hard interrupt handler for you Timer functions. See also https://docs.micropython.org/en/latest/reference/isr_rules.html

I doubt that you really use a hardware watchdog, because than the usual response would be a hard reset,

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@davefes
Comment options

Answer selected by davefes
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davefes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants