All Questions
Tagged with isr or interrupts
880 questions
1 vote
1 answer
81 views
Why aren't nested interrupts working on the R5F core on the AM2434/AM6442 when using VIM?
QUESTION: Why aren't nested interrupts working on the R5F core on the AM2434/AM6442 when using VIM? This question is not about someone reviewing my code. It's about trying to understand the ARM R5F ...
0 votes
1 answer
100 views
STM32 UART in Interrupt mode misses data?
I am working with STM32F7 mcu running at 160 MHz, I am also running UART at 160 MHz in interrupt mode to receive data, but in DMA mode to send data. My program also runs 3 SPI and 1 I2C in DMA mode to ...
3 votes
2 answers
236 views
ARM clock interrupts phase/offset
I am currently learning about interrupts in STM32 processors (STM32H7) and NVIC etc. I understand that clocks can be configured so that periodically, an interrupt will fire with a certain priority. ...
0 votes
2 answers
348 views
Every possible error handlers in stm32
After releasing a firmware update for my custom device, I started noticing that some units were failing to operate correctly. I discovered that writing to the flash memory while the system voltage is ...
2 votes
0 answers
116 views
Orange Pi CM4 with MCP2515 freeze after 1st frame
I need to add CAN-BUS transmission to the Orange Pi CM4. I found an MCP2515 module and connected it to the Orange Pi. I also found the DTB file configuration to enable the MCP2515 module. The MCP2515 ...
0 votes
2 answers
267 views
Can an ISR "interrupt" an atomic operation? [closed]
Can an ISR "interrupt" an atomic operation? Here's an example where this would matter: I want to send data from an ISR to my main program. To do so, I'm using the ...
0 votes
0 answers
79 views
Using two UARTs to receive causes one UART to save data from another
I am working with the STM32-H7 microcontroller and am attempting to receive bytes from another microcontroller and then printing to Putty using the USB UART. I am using USART 2 and 6 with interrupts ...
6 votes
9 answers
2k views
Is it a good idea to perform I2C Communication in the ISR?
I am working with an I2C based sensor. The requirement is that whenever some new data is ready, it generates an interrupt (hey, new data is ready, aka RDY.) What I have implemented currently is, I ...