This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ34Z100-G1: FlashStream SLUA801 - can't compile programm; Python Script?

Part Number: BQ34Z100-G1
Other Parts Discussed in Thread: BQ34Z100

I hope I will be able shortly to create the Golden Image (I am still in the Optimizing/Learning Phase). Now I am planing to port the golden Image to my (nanoPi air) PI and from there over I2C to flash the golden image onto the bq34z100.

On one thread Onyx Ahiakwo wrote, that it is possible.

I have to use the flashstream format. (Go to the golden image tab of bqstudio and you will see the option to extract a dffs or bqfs file. The bqfs contains the instruction flash and data flash. The dffs contains only the data flash. You can use either or, but the dffs will save you time as it contains less data. To program the flashstream files using your host uC, pls reference attached app note. www.ti.com/.../slua801 )

I've copied those 3 files into my Linux/PI and tried to compile it. But I get lots of warnings and errors and can't compile it correctly.

Do you have an instruction on how to compile those 3 files on a linux?

Or maybe better already have a compiled version of it for Linux?

What's with the https://git.ti.com/cgit/bms-linux/bqtool/tree/bqtool.c?id=8cb7732fea5f28b3f9dce733bc1c59fce1dca6b0

Maybe with Python it could be easier to resolve this? Does anyone have a flashStream Python Script?

Thanks alot

  • Hello Benjamin,

    The app note slua801 should be used as a reference to make your own updater for flash stream files. It may take some edits to get it working depending on your MCU.

    I'm not aware of any pre-made parser for flash stream files using Python, it should be fairly straight forward using a Python I2C library and reading the .fs file.

    Sincerely,

    Wyatt Keller

  • I've just found this little programm. I am not really good in programming, but this seems to do what I need. A small C Programm to flash the GoldenFile from a NanoPi to the BQ34Z100 via I2C?

  • Hello Benjamin,

    You can always use the TI toolchain to program with flash stream or srec files.

    I am not familiar with the nanoPI MCU, if it can program it in C then the application note can be used. Or you can examine how the program works and write your own in Python.

    Sincerely,

    Wyatt Keller