Search found 6 matches

by jh2399
Mon Aug 08, 2022 7:50 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Re: Problems with SPI (Nucleo L476RG)

Just as a test, I created a voltage divider to run the 4 outputs (CS, SCLK, MOSI, MISO) of the Arduino through so that it would output 3.3V instead of 5V and SPI and the sensor still worked just fine :( . I was really hoping that when I converted the output to 3.3V it would cease to work.
by jh2399
Fri Aug 05, 2022 7:21 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Re: Problems with SPI (Nucleo L476RG)

Oh no.. So I knew the sensor was supposed to be 3.3V, but I (erroneously) thought Arduino output 3.3V on it's output pins. So you're saying the sensor I have should have never worked with the Arduino in the first place without a voltage divider or a LLC, correct? And the fact that it did means the m...
by jh2399
Fri Aug 05, 2022 4:06 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Re: Problems with SPI (Nucleo L476RG)

Yes, I have the I2CEN pin grounded. I have tried changing the speed to 300 KHz as with a prescaler of 256, would result in a speed of 312.5 KHz. I didn't try higher as the datasheet for the sensor says it needs 1MHz or lower on SCLK. I also tried using SPIMODE3 (CPOL=1, CPHA=1), as the sensor suppor...
by jh2399
Fri Aug 05, 2022 2:24 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Re: Problems with SPI (Nucleo L476RG)

jh2399 , if you're using multimeter, then you won't get any useful data. You need something that can detect high frequency signals. As you can see on graph from data analyzer, there was only about 25us (microseconds, not milli) burst on SCLK. Yeah sorry, that's my mistake, I wasn't thinking clearly...
by jh2399
Thu Aug 04, 2022 6:45 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Re: Problems with SPI (Nucleo L476RG)

I don't have a logic analyser but if I remove the sensor from the equation and probe the outputs from the board I'm getting nothing on SCLK and MISO, MOSI is constantly HIGH, and the CS pin is behaving as expected. Any idea as to why it's behaving in this way? Edit: By "getting nothing on SCLK ...
by jh2399
Wed Aug 03, 2022 9:16 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17919

Problems with SPI (Nucleo L476RG)

Hi, I'm quite new to STM32 boards and figured I would start with STM32duino and get a good grasp of things before moving on to STM32Cube. I have been struggling off and on now for the past few days to get SPI to work with my board and a magnetometer sensor (PNI RM3100). I found a sample sketch on Gi...

Go to advanced search