Skip to main content
Mohamed Aymen
Associate III
May 21, 2026
Question

STPM34 SPI Communication Issue at Startup – Measurements Stuck at Zero Until Board Restart

  • May 21, 2026
  • 2 replies
  • 133 views

Hello Team,

 

We are currently investigating an issue related to the SPI communication between the STPM34 sensor and the STM32F4 microcontroller.

At system startup, all values measured by the STPM34 remain stuck at zero. Even when voltage and current are injected using an OMICRON test bench, no measurement values are received or displayed.

Several tests were performed:

  • If we power up the system and confirm that the issue is present, then electrically restart only the board containing the STPM34, the communication recovers correctly and the measured values are no longer stuck at zero.
  • We also soldered wires on one of the SPI buses (SPI1). Since there are two STPM34 devices on the board, two SPI instances are used to communicate with each sensor. The purpose was to verify whether the communication between the sensor and the STM32 was correctly established.
    • Interestingly, simply soldering wires on this SPI bus makes the issue disappear for this instance. However, on the second SPI instance, which was not modified, the issue is still present.

After reviewing the STPM34 datasheet, we noticed that in section 5 – Typical Application Example, resistors and capacitors are recommended on the communication lines. Currently, these components are not implemented on this board.

MohamedAymen_0-1779354220582.png

 

Could the absence of these recommended resistors/capacitors on the SPI lines explain this startup communication issue or unstable behavior with the STPM34?

Thanks,

Aymen

2 replies

Mohamed Aymen
Associate III
June 9, 2026

Hello,

 

Why am I no longer able to view the previous replies?

 

Aymen

Peter BENSCH
ST Technical Moderator
June 9, 2026

Because the community was switched to another platform this morning, and all content from the last about 28 days still need to be migrated. This should be completed over the next few days.

See announcement for details.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Mohamed Aymen
Associate III
June 10, 2026

Thanks Peter, for your response, I'll wait for the migration to be completed

 

Aymen

Karl Yamashita
Principal
June 10, 2026

In some devices the MISO may be an open collector output and not push-pull design, so you may need a pull-up resistor on the MISO line. You can quickly verify using the STM32 internal pull-up on the other device that you didn’t solder wires to. If it works, then you should add some external pull-ups especially if running at a high bus speed..

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source