Hi all
I am using the PICO example for spi_slave and debugging it via gdb. While debugging, I noticed that the spi_write_read_blocking is stuck and doesn't proceed
and
Any help would be appreciated
Kind regards
I am using the PICO example for spi_slave and debugging it via gdb. While debugging, I noticed that the spi_write_read_blocking is stuck and doesn't proceed
Code:
Program received signal SIGINT, Interrupt.0x200001a4 in spi_write_read_blocking (spi=spi@entry=0x4003c000, src=0x20041de0 "÷öoôóòñdïîíìëêéèçæåäaâáàß_YÜUUUOxÖOOOOÑDIIIIEEÉEÇÆÅÄAAAA¿_½¼»º1,·¶µ'3²±°_r-¬«ªc"§▌¥£¢¡ Yz\235o>s\231\230--""'`\220\217Z\215O<S%\210╪+.,ƒ,\201\200\177~}|{zyxwvutsrqponmlkjihgfedcba`_^]\\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210"..., src@entry=0x20041dd8 "\377_yüûúùo÷öoôóòñdïîíìëêéèçæåäaâáàß_YÜUUUOxÖOOOOÑDIIIIEEÉEÇÆÅÄAAAA¿_½¼»º1,·¶µ'3²±°_r-¬«ªc"§▌¥£¢¡ Yz\235o>s\231\230--""'`\220\217Z\215O<S%\210╪+.,ƒ,\201\200\177~}|{zyxwvutsrqponmlkjihgfedcba`_^]\\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:98"..., dst=dst@entry=0x20041ed8 "ô", len=len@entry=256) at C:/Users/mmadha/.pico-sdk/sdk/2.2.0/src/rp2_common/hardware_spi/spi.c:9393 if (tx_remaining && spi_is_writable(spi) && rx_remaining < tx_remaining + fifo_depth) {I don't know how to interpret the table above, or whats with it.(gdb) x/300xb 0x200001a4
0x200001a4 <spi_write_read_blocking+36>: 0x1a 0xd0 0x33 0x00 0x08 0x33 0xa3 0x42
0x200001ac <spi_write_read_blocking+44>: 0x0f 0xd8 0x00 0x2c 0x2d 0xd1 0x02 0x23
0x200001b4 <spi_write_read_blocking+52>: 0xe9 0x68 0x0b 0x42 0x36 0xd1 0x00 0x2e
0x200001bc <spi_write_read_blocking+60>: 0x20 0xd0 0xeb 0x68 0x00 0x24 0x1f 0x42
0x200001c4 <spi_write_read_blocking+68>: 0xfb 0xd0 0x33 0x00 0x08 0x33 0xa3 0x42
0x200001cc <spi_write_read_blocking+76>: 0xef 0xd9 0x4b 0x46 0x1b 0x78 0x01 0x3e
0x200001d4 <spi_write_read_blocking+84>: 0xab 0x60 0x01 0x23 0x98 0x46 0xc1 0x44
0x200001dc <spi_write_read_blocking+92>: 0x00 0x2c 0xec 0xd0 0x61 0x46 0xeb 0x68
0x200001e4 <spi_write_read_blocking+100>: 0x19 0x42 0x15 0xd1 0x00 0x2e 0xd9 0xd1
0x200001ec <spi_write_read_blocking+108>: 0x04 0x21 0xeb 0x68 0x19 0x42 0xfc 0xd0
0x200001f4 <spi_write_read_blocking+116>: 0xab 0x68 0x01 0x3c 0x13 0x70 0x01 0x32
--Type <RET> for more, q to quit, c to continue without paging--
0x200001fc <spi_write_read_blocking+124>: 0x00 0x2c 0xf5 0xd1 0xc0 0xbc 0xb9 0x46
0x20000204 <spi_write_read_blocking+132>: 0xb0 0x46 0xf0 0xbd 0x00 0x2c 0xf9 0xd0
0x2000020c <spi_write_read_blocking+140>: 0xee 0xe7 0xeb 0x68 0x5b 0x07 0xc5 0xd5
0x20000214 <spi_write_read_blocking+148>: 0xab 0x68 0x01 0x3c 0x13 0x70 0x23 0x00
0x2000021c <spi_write_read_blocking+156>: 0x51 0x1c 0x88 0x46 0x33 0x43 0xed 0xd0
0x20000224 <spi_write_read_blocking+164>: 0x42 0x46 0xb9 0xe7 0x31 0x00 0x08 0x31
0x2000022c <spi_write_read_blocking+172>: 0xcf 0xd1 0xc1 0xe7 0x70 0x47 0xc0 0x46
0x20000234: 0x00 0x00 0x00 0x00 0x01 0xb4 0x02 0x48
0x2000023c <__best_effort_wfe_or_timeout_veneer+4>: 0x84 0x46 0x01 0xbc 0x60 0x47 0x00 0xbf
0x20000244 <__best_effort_wfe_or_timeout_veneer+12>: 0x8d 0x0d 0x00 0x10 0x12 0x00 0x00 0x00
0x2000024c <irq_handler_chain_slots>: 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00
0x20000254 <irq_handler_chain_slots+8>: 0x00 0x00 0x00 0x00 0x00 -
Any help would be appreciated
Kind regards
Statistics: Posted by Maaz1 — Mon Dec 22, 2025 12:32 pm