2023-10-12 6:15 AM
Hi, I am trying to integrate Honeywell MPR pressure sensor (which runs over the SPI) with the Nucleo board using the STM32cube IDE. The library and everything else is working fine with the Arduino IDE environment but deploying things over the STM32cube IDE is having an issue.
Upon sending any command to the sensor, I am not receiving anything back from the sensor. Is there a problem in the configuration of the SPI to match the sensor requirement, if yes, then what should i try to adjust ?
Anyone else having the same issue ?
2023-10-12 6:48 AM
The datasheet will have the SPI configuration requirements for CPHA/CPOL. Yes, they need to match or be compatible.
2025-06-04 12:14 AM
Use an oscilloscope and/or logic analyser to see what's happening on the wires; compare and contrast the working (Arduino IDE) and non-working (CubeIDE) cases ...
@aqeel96 wrote:working fine with the Arduino IDE environment but deploying things over the STM32cube IDE is having an issue.
Are you using the exact same hardware in both cases? ie, the IDE is the only difference?
What, exactly, do you mean by "deploying things over the STM32cube IDE" ?
Are you just using CubeIDE as a programmer, or are you completely rebuilding the project?
@aqeel96 wrote:Is there a problem in the configuration of the SPI to match the sensor requirement
You haven't shown your configuration - so impossible to say if there's any problem with it!
As @TDK said, your configuration needs to match the requirements stated in the sensor's documentation.
2025-06-04 5:52 AM
This is a 1.5 year old thread. OP is likely long gone.
2025-06-04 6:28 AM
D'oh! so it is!