Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:44 19 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : F4 Armmite: SPI interface

Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 11:49am 03 May 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 1049
Posted: 01:55pm 03 May 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 8297
Posted: 02:12pm 03 May 2021
Copy link to clipboard 
Print this post

Thanks - I'll check that.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025