cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo F413ZH Honeywell MPR sensor STMcube IDE issue

aqeel96
Associate

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 ?

4 REPLIES 4
TDK
Super User

The datasheet will have the SPI configuration requirements for CPHA/CPOL. Yes, they need to match or be compatible.

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Super User

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.

 

How to insert source code.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

This is a 1.5 year old thread. OP is likely long gone.

If you feel a post has answered your question, please click "Accept as Solution".

D'oh! so it is!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.