|
Forum Index : Microcontroller and PC projects : F4 Armmite: SPI interface
| Author | Message | ||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8297 |
I'm having a bit of a problem interfacing a nRF24L01+ to the F4. It's powering up ok. If I connect a logic analyzer I can see that I'm sending properly formatted data to it but nothing sensible is coming back - it has the right number of bytes but that's all. Connecting another nRF24L01+ (not tried swapping them yet) to a Micromite backpack seems to work. I can read and write registers. That's using mode 0. I've not tried the LA on this setup yet. Interestingly, the data received on MISO while sending is identical to the data received when reading the register later, which makes sense, but it's just a bit for each byte of data sent. I've tried both mode 0 and mode 1 with various settings on the LA. I even tested the F4 for modes 2 and 3, but apparently it doesn't work in these modes. The only major difference I can see is that the Micromite runs the SPI at 1MHz, which the F4 doesn't do so I'm using the next one down. However, this shouldn't make any difference at all in theory. It's early days yet and there are other things I can try, but before I get too bogged down has anyone any experience of using SPI on the F4? I'm probably missing something really stupid... Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1049 |
SPI works OK with the W25Q16 flash. They share the SPI so make sure the F-CS is high otherwise it might be corrupting the SPI. AppendixE in the manual has some test code for the flash to prove SPI is OK. F4 H7FotSF4xGT |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8297 |
Thanks - I'll check that. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |