2025-01-09 05:43 AM - last edited on 2025-01-09 07:03 AM by Andrew Neil
While programming the STPMIC1A with the USBSTICK – I2C to USB interface, I logged the I2C communication with an oscilloscope. This showed a command "Write, 66, DC 0C" that was send to the STPMIC just before the command to write the shadow registers to the NVM ("Write, 66, B9 01").
Exact logged I2C communication:
Write, 66, F8 EC 1A C2 08 FA 00 0E 33,
Write, 66, DC 0C,
Write, 66, B9 01,
However I was not able to found such command "DC 0C" on the STPMIC documentation.
Could you please explain what is this command used for? Is this command necessary when we are programming the STPMIC via the microprocessor in the application?
Thank you very much.
2025-01-19 10:55 PM
Dear Valeria,
the software GUI is just to evaluate the programmability of the STPMIC1 but with some bug.
My suggestion is to write manually the NVM content to avoid mismatch from what the STPMIC1 is accepted due to the firmware inside the USB interface and the GUI.
66 is needed for the USB interface, you can ignore it, see below (if well understood):
0xF8=EC
0xF9=1A
0xFA=C2
0xFB=08
0xFC=FA
0xFD=80 and not 00 (GUI bug always change in 00)
0xFE=0E
0xFF=33
some addresses are reserved, so you don't need for normal operation
Let me know
Regards,
Vincenzo