Skip to main content
Srinivas Gopal
Associate II
February 13, 2018
Question

Gas Gauge(STC3115) Initialization on a custom board

  • February 13, 2018
  • 1 reply
  • 1547 views
Posted on February 13, 2018 at 17:22

I am trying to get STC3115 working on a custom board based on STM32L476VX MCU. The battery used for the custom board is RJD3555. After initializing the I2C interface, the gas gauge always fails to initialize. Any help on this matter would be greatly appreciated

Thanks,

Srinivas

#stm32l4 #stc3115
This topic has been closed for replies.

1 reply

Andrew Neil
Super User
February 13, 2018
Posted on February 13, 2018 at 17:39

http://www.st.com/en/power-management/stc3115.html

 

So, before starting on your custom board, have you built basic familiarity & functionality with one of the listed evaluation options:

http://www.st.com/content/st_com/en/products/evaluation-tools/solution-evaluation-tools/psu-and-converter-solution-eval-boards/steval-isb014v2.html

 

http://www.st.com/content/st_com/en/products/evaluation-tools/solution-evaluation-tools/sensor-solution-eval-boards/steval-wesu1.html

 

the gas gauge always fails to initialize

So what, exactly, does that mean?

How have you proven basic I2C comms ?

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.
Srinivas Gopal
Associate II
February 13, 2018
Posted on February 13, 2018 at 18:25

The first I2C communication is for initialization of STC3115, there is no other peripheral connected to the MCU via I2C, Is there a way to test I2C comms before initializing the gas gauge?

Thanks,

Srinivas

Andrew Neil
Super User
February 13, 2018
Posted on February 13, 2018 at 18:46

Srinivas Gopal wrote:

I2C, Is there a way to test I2C comms before initializing the gas gauge?

Go on - this is basic I2C stuff.

Have you read and understood chapter 7 of the datasheet - which describes the I2C interface, Register Map, etc ?

  • Does the chip correctly ACK its address?
  • Can you read the ID register?
  • Can you write to a register, and read-back what you wrote?

Have you studied the evaluation resources I linked above?

Have you 

studied the support documents on the Product Page, linked above?

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.