2025-01-24 11:42 AM
I am working on a project with the STPM3x chip. We have a custom PCBA that does not appear to be working. I am able to communicate with the chip via SPI. I can set the gain registers and read them back. However, the voltage and current measurements are not correct/existent. I can read them in but they make no sense. Doesn't matter if I have power applied to the chip or not they come back erroneous. We copied the board design from the evaluation board. The code works with the evaluation board so I'm confident the firmware is correct. I did notice on pin 27, we connect to VCC (3.3V) and it looks like on the evaluation board that shouldn't be but I can't imagine that is causing poor measurements. Curious if I could get an FAE at ST look over the design and see if they seen something I don't.
We are using a different crystal than the eval board but I imagine if I can read/write registers than the crystal is not the issue. I imagine the crystal is used to generate a clock for the digital section of the chip.
I will also point out when trying to reach the measurements everything seems erroneous not even uncalibrated.
Happy to send PCB layout, schematics, or whatever else you may need to help us out. Thank you in advanced.