Our #NuttX App runs OK on PineDio Stack BL604 with onboard SX1262! 🎉
https://github.com/lupyuen/incubator-nuttx-apps/blob/spi_test/examples/spi_test2/spi_test2_main.c
Here are the #NuttX Pin Definitions for PineDio Stack BL604 with onboard SX1262 ... As derived from the schematic
Our #NuttX App now reads the SX1262 Register correctly! 🎉
https://github.com/lupyuen/incubator-nuttx-apps/blob/spi_test/examples/spi_test2/spi_test2_main.c
For #NuttX on #BL602, we use SPI Mode 1 instead of Mode 0 ... To work around the SPI Mode Quirk
https://github.com/lupyuen/incubator-nuttx/blob/spi_test/drivers/rf/spi_test_driver.c#L51-L57
#BL602 SPI Chip Select has a problem ... It goes High after EVERY byte ... Which is no-no for SX1262 ... Solution: We control Chip Select via GPIO
Our #NuttX App transmits an SPI Command to SX1262 ... And reads the SPI Response from SX1262
We implement the Read Operation for our #NuttX SPI Driver ... So that we can fetch the SPI Response from SX1262
https://github.com/lupyuen/incubator-nuttx/blob/spi_test/drivers/rf/spi_test_driver.c#L210-L233
Let's test #NuttX SPI with #BL602 and Semtech SX1262 LoRa Transceiver
https://www.semtech.com/products/wireless-rf/lora-core/sx1262
IoT Techie and Educator / Apache NuttX PMC