NUCLEO-G474RE BMP183 Output Problem
Re: NUCLEO-G474RE BMP183 Output Problem
Ok you use the STM32 core anyway your sketch is not correct. Try the code I've put above.
Re: NUCLEO-G474RE BMP183 Output Problem
It's always good idea to test SPI separately, w/o sensor connected. Try build-in the IDE loop back test:
_ File/Examples/SRM32duino_Examples/NoNReg/SPI_Loop
_ File/Examples/SRM32duino_Examples/NoNReg/SPI_Loop
Re: NUCLEO-G474RE BMP183 Output Problem
I tried your sketch. It gave same output. Is there any possibility of a problem in library?fpiSTM wrote: Sat May 22, 2021 6:07 pm Ok you use the STM32 core anyway your sketch is not correct. Try the code I've put above.
Re: NUCLEO-G474RE BMP183 Output Problem
It can pass the test. There is no problem.MasterT wrote: Sat May 22, 2021 6:30 pm It's always good idea to test SPI separately, w/o sensor connected. Try build-in the IDE loop back test:
_ File/Examples/SRM32duino_Examples/NoNReg/SPI_Loop
Re: NUCLEO-G474RE BMP183 Output Problem
And you properly wire the sensor on pin D9, D11,D12 and D13 ?
If the SPI loop works so probably an issue with the Library. Maybe SPI clock speed. Seems the max frequency for this sensor is 8MHz as stated here:
https://github.com/adafruit/Adafruit_BM ... pp#L78-L83
but by default max SPI clock speed is set to 4 MHz so this should be correct.
Re: NUCLEO-G474RE BMP183 Output Problem
Did it pass test when connected to D14/D15 ??
Re: NUCLEO-G474RE BMP183 Output Problem
fpiSTM wrote: Sun May 23, 2021 3:34 pmAnd you properly wire the sensor on pin D9, D11,D12 and D13 ?
If the SPI loop works so probably an issue with the Library. Maybe SPI clock speed. Seems the max frequency for this sensor is 8MHz as stated here:
https://github.com/adafruit/Adafruit_BM ... pp#L78-L83
but by default max SPI clock speed is set to 4 MHz so this should be correct.
Yes i wired it like that. Aha yes i think its about frequency. I will check it and write here results.
Re: NUCLEO-G474RE BMP183 Output Problem
Nope it passed D12 D11
Re: NUCLEO-G474RE BMP183 Output Problem
Why i cant change spi freq. How can i set to 8 mhz spi pins? I added this code to void setup:enesert wrote: Mon May 24, 2021 6:59 pmfpiSTM wrote: Sun May 23, 2021 3:34 pmAnd you properly wire the sensor on pin D9, D11,D12 and D13 ?enesert wrote: Sat May 22, 2021 7:18 pm
I tried your sketch. It gave same output. Is there any possibility of a problem in library?
If the SPI loop works so probably an issue with the Library. Maybe SPI clock speed. Seems the max frequency for this sensor is 8MHz as stated here:
https://github.com/adafruit/Adafruit_BM ... pp#L78-L83
but by default max SPI clock speed is set to 4 MHz so this should be correct.
Yes i wired it like that. Aha yes i think its about frequency. I will check it and write here results.
Code: Select all
SPI.begin();
SPI.setClockDivider(6);
Re: NUCLEO-G474RE BMP183 Output Problem
Try:
Code: Select all
// SPI.begin(CS_PIN);
SPI.beginTransaction(CS_PIN, SPISettings(8000000, MSBFIRST, SPI_MODE0));