SPI Hifive 1 Rev B


#21

Sorry, I posted somewhat outdated link. Here is the correct one: https://github.com/espressif/esp-at/blob/ca5c45177574aef909e749b0c95dd84b188a8ec9/main/interface/hspi/at_hspi_task.c

0x41 byte: https://github.com/espressif/esp-at/blob/ca5c45177574aef909e749b0c95dd84b188a8ec9/main/interface/hspi/at_hspi_task.c#L348-L350

0x42 byte: https://github.com/espressif/esp-at/blob/ca5c45177574aef909e749b0c95dd84b188a8ec9/main/interface/hspi/at_hspi_task.c#L314

You can also see a HiFive1 example here: https://github.com/riscv-rust/riscv-rust-quickstart/blob/5ff7048687e807b52d3df0d05dd0729a7c52bf79/examples/spi_wifi.rs#L61-L91


#22

Ah, this helps greatly. I will make my assembly code follow the Rust example. The github “download as ZIP” button kept giving me an older version that did not have the “A” “B” stuff in it.