Search found 3 matches

by thanhphuct
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

Re: Communicating with spi with slave in interrupt, the system will be dumped

[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?
by thanhphuct
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

ESP_Sprite wrote:
Fri Jan 29, 2021 6:21 am
Does your readData and writeData actually exist as long as the SPI transfer is in progress?
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 dumped
by thanhphuct
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...