Skip to main content
Visitor II
January 3, 2019
Question

problem related flash memory access of fuel gauge through stm mcu

  • January 3, 2019
  • 2 replies
  • 1015 views

Hello all,

I am working on one project and for that i have one battery and fuel gauge (BQ27742-G1).

which is connected to mcu through i2c wires. Now i have Golden files for fuel gauge and i need to write this memory to fuel gauge flash space but through programming. so i think as i have knowledge first i have to access mcu flash memory and write all flash file of fuel gauge to mcu flash memory and transfer this mcu flash data to fuel gauge through i2c. but i do not know how to do this things as i do not have any experience of flash access, read and write hex code. i think i need to use pragma syntax for operation..can you please guide me how to do this and how can i make program. if possible please give me code refrence for same. Please reply me as soon as possible.

Thanking you,

Regarads,

Reena Patel

    This topic has been closed for replies.

    2 replies

    Visitor II
    April 4, 2020

    Hello all

    we're very interested in the questions you asked? Would you have obtained solutions?

    We have the same problem. We would like to save the Fuel Gauge learning data on the STM32 (Qmax and Ra table) in order to be able to reload it after a reset. 

    Did you get any solution ?

    Thank you in advance. 

    Best regards

    Samuel Garziera

    Super User
    April 4, 2020

    There are several ways to do this:

    https://csl.name/post/embedding-binary-data/