Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic device code #8

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

drbh
Copy link

@drbh drbh commented Apr 13, 2024

This is a work in progress and am opening for visibility and help.

This PR aims to add a example for the nrf24 via SPI and essentially is a port of https://github.com/rtxm/rust-nrf24l01 that avoids std and uses the ch32-hal types.

WARNING: I really don't know what I'm doing so please excuse any silly mistakes***

Status

Currently I can build and flash the device but do not get the expected functionality.

When emitting I often get the following error NrfError::MaxRetries and when listening the values do not seem to be realistic.

At the moment I am not sure how to best proceed and determine where the issue is, any insight from other CH32/embedded devs would be super helpful!

Please let me know if I can provide any more information.

commands to build/flash

cargo build --release --bin spi-nrf24 && wlink -v flash --enable-sdi-print --watch-serial target/riscv32ec-unknown-none-elf/release/spi-nrf24

Refs

@andelf
Copy link
Contributor

andelf commented Apr 30, 2024

I'll check this when I get an NRF24L01 module. (already ordered one 😁)

@andelf
Copy link
Contributor

andelf commented May 5, 2024

After some investigation, IMHO, you might need to try https://github.com/astro/embedded-nrf24l01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants