2019-09-26 08:48 PM
Hello sir, i am trying to send command to fuel gauge from stm32l476 to get data like voltage,current and temperature of battery but not getting sir.Even sda or scl line unable to see on oscilloscope. i written a code for i2c but not working .please give me suggestion.
2019-09-26 10:28 PM
Did you put the pull-up resistors on the bus? the obvious first check.
Then find a SW GPIO bit bang I2C driver (I shared one on this forum, just not too sure how easy it is to retrieve it), and run it with a debugger.
To check if the GPIO SDA and SCL works, just try it manually through the GPIO registers on the debug watch window.
2019-09-27 03:04 AM
thanks for your reply sir ,pull up resistor already i checked,it is there. you said that 'To check if the GPIO SDA and SCL works, just try it manually through the GPIO registers on the debug watch window' can you tell me more about this?
2019-09-28 06:34 AM
Configure the pins as GPIO outputs, and drive the pins alternately high and low, like you would with an LED
2019-09-29 12:46 AM
Yes sir ,I already done led blinking program on board with the help of Visual GDB in Visual studio.
2019-09-30 09:08 AM
This discussion is closed.
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.