Hello~
I used the ot-nrf528xx codebase for compilation, and according to the content in the readme, I compiled two Hex files for USB and SPI interfaces using the USB_trans and SPI_trans_NCP options, respectively. After flashing the hex file for the USB interface, it works normally as an RCP when connected to the Raspberry Pi. However, the file for the SPI interface shows no response after flashing.
My hardware wiring is as follows:
SPIS_PIN_MOSI P0.04 → Raspberry Pi 4B Pin19
SPIS_PIN_MISO P0.28 → Raspberry Pi 4B Pin21
SPIS_PIN_SCK P0.03 → Raspberry Pi 4B Pin23
SPIS_PIN_CSN P0.29 → Raspberry Pi 4B Pin24
SPIS_PIN_HOST_IRQ P0.30 → Raspberry Pi 4B Pin40
Additionally, I connected the reset to Raspberry Pi Pin38 and connected GND.
My OTBR settings are as follows:
OTBR_AGENT_OPTS="-I wpan0 -B wlan0 spinel+spi:///dev/spidev0.0?gpio-int-device=/dev/gpiochip0&gpio-int-line=21&gpio-reset-device=/dev/gpiochip0&gpio-reset-line=20&no-reset=1&spispeed=1000000 trel://wlan0"
The current error log is as follows:
● otbr-agent.service - OpenThread Border Router Agent
Loaded: loaded (/lib/systemd/system/otbr-agent.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-05-26 06:46:20 BST; 705ms ago
Process: 690205 ExecStartPre=/usr/sbin/service mdns start (code=exited, status=0/SUCCESS)
Main PID: 690215 (otbr-agent)
Tasks: 1 (limit: 3909)
CPU: 44ms
CGroup: /system.slice/otbr-agent.service
└─690215 /usr/sbin/otbr-agent -I wpan0 -B wlan0 "spinel+spi:///dev/spidev0.0?gpio-int-device=/dev/gpiochip0&gpio-int-line=21&gpio-reset-device=/dev/gpiochip0&gpio-reset-line=20&no-reset=1&spispeed=1000000" trel://w>
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.800 [W] P-SpiIntface--: Garbage in header : 1F C0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.833 [W] P-SpiIntface--: Garbage in header : 1F E0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.866 [W] P-SpiIntface--: Garbage in header : 1F E0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.899 [W] P-SpiIntface--: Garbage in header : 1F E0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.932 [W] P-SpiIntface--: Garbage in header : 1F C0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.966 [W] P-SpiIntface--: Garbage in header : 1F E0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:25.999 [W] P-SpiIntface--: Garbage in header : 1F C0 1F FF FF
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:26.165 [W] P-SpiIntface--: Slave seems stuck.
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:26.201 [W] P-SpiIntface--: Garbage in header : F8 00 00 00 00
May 26 06:46:21 cyx otbr-agent[690215]: 63d.21:05:26.234 [W] P-SpiIntface--: Garbage in header : F9 F8 00 00 FF
Is there any step that I am doing incorrectly? I am eagerly awaiting your response. Thank you!