There's no issue when I'm using a task with core 0 like below:
However, if I use core 1 to read nfc tags with SPI communication,xTaskCreatePinnedToCore(&tag_read_task, "tag_read_task", 8192, NULL, 0, NULL, 0);
It cannot read the tag info and sometimes even produces error like below.xTaskCreatePinnedToCore(&tag_read_task, "tag_read_task", 8192, NULL, 0, NULL, 1);
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x401381fc PS : 0x00060930 A0 : 0x8013845e A1 : 0x3ffdac00
0x401381fc: spi_device_queue_trans at /Users/ksj-pc/esp/esp-idf/components/driver/spi_master.c:762
A2 : 0x3ffd5990 A3 : 0x3ffdac70 A4 : 0xffffffff A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00060023 A8 : 0x80090a01 A9 : 0x00000000
A10 : 0x00000020 A11 : 0x00000000 A12 : 0x00060920 A13 : 0x00000001
A14 : 0x0000cdcd A15 : 0x00060023 SAR : 0x0000001a EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000038 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
Backtrace: 0x401381fc:0x3ffdac00 0x4013845b:0x3ffdac40 0x400d7189:0x3ffdac70 0x400d7e96:0x3ffdacc0 0x400d592f:0x3ffdace0
0x401381fc: spi_device_queue_trans at /Users/ksj-pc/esp/esp-idf/components/driver/spi_master.c:762
0x4013845b: spi_device_transmit at /Users/ksj-pc/esp/esp-idf/components/driver/spi_master.c:885
0x400d7189: spiTxRx at /Users/ksj-pc/Documents/workspace_embedded/pium_fw/main/main.c:2163
0x400d7e96: as3911ReadMultipleRegisters at /Users/ksj-pc/Documents/workspace_embedded/pium_fw/main/as3911_com.c:127
0x400d592f: as3911task at /Users/ksj-pc/Documents/workspace_embedded/pium_fw/main/main.c:1165 (discriminator 1)
Rebooting...
So, is there any difference of Core 0 and 1 in this case? I can't even catch any hint.
Thank you for your help in advance.