[quote=Easy solution: Don't do that. You can't call routines from ISRs unless they're specifically marked (either because they have _from_isr in the name or otherwise) to be OK to call from an interrupt.
[/quote]
So is there a way to distinguish which process can be called in the interrupt or not?
Search found 3 matches
- Fri Jan 29, 2021 7:32 am
- Forum: General Discussion
- Topic: Communicating with spi with slave in interrupt, the system will be dumped
- Replies: 6
- Views: 4809
- Fri Jan 29, 2021 6:32 am
- Forum: General Discussion
- Topic: Communicating with spi with slave in interrupt, the system will be dumped
- Replies: 6
- Views: 4809
Re: Communicating with spi with slave in interrupt, the system will be dumped
Yes yes, I have tried using spiTranfer () function with 1 external flash memory slave and it works normally, I get correct readData array. But if I call spiTranfer () in an interrupt my system gets dumpedESP_Sprite wrote: ↑Fri Jan 29, 2021 6:21 amDoes your readData and writeData actually exist as long as the SPI transfer is in progress?
- Fri Jan 29, 2021 6:06 am
- Forum: General Discussion
- Topic: Communicating with spi with slave in interrupt, the system will be dumped
- Replies: 6
- Views: 4809
Communicating with spi with slave in interrupt, the system will be dumped
Hi everybody, I have a problem and hope recive support from everyone. I am trying to do spi communication with external flash memory (MT25QL128) in interrupt, this leads to the system dump. I want to ask if this is possible? If possible please give me an instruction Below is my spi communication fun...