Search found 5 matches
- Sat May 23, 2020 10:39 am
- Forum: Libraries & Hardware
- Topic: [Solved] SPI slave data loss with Raspberry Pi at 100k baud
- Replies: 11
- Views: 10693
Re: SPI slave data loss with Raspberry Pi at 100k baud
I finally found the problem, and as I was suspecting, it indeed was a stupid mistake from my part: In the kernel modules, I was registering the interrupt for the rising edge, although it should have been the falling edge: request_threaded_irq(request_pin_irq, send_spi_message, NULL, IRQF_TRIGGER_RIS...
- Thu May 21, 2020 9:17 pm
- Forum: Libraries & Hardware
- Topic: [Solved] SPI slave data loss with Raspberry Pi at 100k baud
- Replies: 11
- Views: 10693
Re: SPI slave data loss with Raspberry Pi at 100k baud
SPI on the Raspberry Pi has some known peculiarities https://www.raspberrypi.org/forums/viewtopic.php?t=19489 Excerpt Attaching a logic-analyzer to the "relevant" lines on the RPI (Enable, MISO,MOSI,Clock as well as the interrupt line plus signal on the Can-bus itself) showed that there w...
- Wed May 20, 2020 6:22 pm
- Forum: Libraries & Hardware
- Topic: [Solved] SPI slave data loss with Raspberry Pi at 100k baud
- Replies: 11
- Views: 10693
Re: SPI slave data loss with Raspberry Pi at 100k baud
If you are polling the data, do not use delay(), the reception part may not be delayed by any means. You should test first the software with a simpler setup, e.g. try to interconnect two bluepill boards. RasPi has 5V output, the STM has 3.3V input... Thanks for your tips! The Raspberry Pi has 3.3V ...
- Wed May 20, 2020 4:44 pm
- Forum: Libraries & Hardware
- Topic: [Solved] SPI slave data loss with Raspberry Pi at 100k baud
- Replies: 11
- Views: 10693
Re: SPI slave data loss with Raspberry Pi at 100k baud
Thanks for your response! Well, I was hoping I could get around that since I don't have one yet. Will look into ordering one though. Does that mean you suspect the SPI implementation in the Pi or STM32 to have any quirks? I was hoping that since they work for other people / other peripherals, the is...
- Wed May 20, 2020 2:28 pm
- Forum: Libraries & Hardware
- Topic: [Solved] SPI slave data loss with Raspberry Pi at 100k baud
- Replies: 11
- Views: 10693
[Solved] SPI slave data loss with Raspberry Pi at 100k baud
Hi all, I'm trying to use an STM32F103C8T6 on a generic 'Blue Pill' type board as an SPI slave to a Raspberry Pi, but I just cannot get it to work at any reasonably high data rate. I've spent days trying all sorts of combinations, but in vain. I'm desperately hoping you guys can help me out :| :) In...