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

SPI chip select/slave select not working #215

Open
kris-toth opened this issue Jan 25, 2022 · 0 comments
Open

SPI chip select/slave select not working #215

kris-toth opened this issue Jan 25, 2022 · 0 comments

Comments

@kris-toth
Copy link

The bug
The slave select doesn't pull down during transfer.

Description

  1. Using pocketbeagle, with robotcontrollib 1.0.5, and an SPI device (RFM26W but doesn't matter)
  2. Running the 'rc_spi_loopback.c' example
  3. using 'rc_spi_init_auto_slave(BUS, SLAVE, BUS_MODE, SPI_SPEED)'
  4. Verified with oscilloscope, that the CS line doesnt move during the program. CS goes high at program start and goes low on exit.

Temporary fix
Temporary fix with 'rc_spi_init_manual_slave(BUS, SLAVE, BUS_MODE, SPI_SPEED, chip, pin)' and manual manipulation of CS with rc_spi_manual_select(BUS, SLAVE, 0) / rc_spi_manual_select(BUS, SLAVE, 1) before/after every spi event.
This way cant use hardware CS.

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

No branches or pull requests

1 participant