mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-09 08:45:42 +08:00

This application continuously reads the file system of the spislv. Each received message will be written to the user in hexadecimal form, and the same received data will be sent back. In this way, the user can test if their spislv driver and hardware setup are working properly before proceeding further. On a master device, using the SPI tool, when sending the message: spi exch -x 4 deadbeef The slave device will output: Slave: 4 Bytes read Value in hex form from /dev/spislv2: de ad be ef Slave: Writing value back to /dev/spislv2