Part Number: BQ27750
Hi there
I created a 'flash filestream' file with all default parameters of a brand new bq27750 from an EVM.
My goal is to reset all defaults of the bq27750 I have soldered into my actual HW (that is not possible to connect to bqStudio).
The flashstream commands ('W', 'C', 'X') are easy enough to implement, and so this seems like a good way forward.
However, the flashstream file output by bqStudio corrupts my device. I know what you are thinking : "he didn't implement the commands correctly".
I am certain they are correct given their descriptions here : http://www.ti.com/lit/an/slua801/slua801.pdf.
That and the fact that, after programming, some of the parameters are correct defaults (i.e. most of ADVANCED CHARGING ALGORITHM block are correct excluding 'termination' config), and some not (PROTECTIONS block are mostly now garbage) tells me the stream handling is good, but the stream is not.
So then, how to move forward? I have a corrupt device. SREC...???
I know how to read SREC files, but the ROM commands of the bq27750 are top secret.
I can glean some ROM commands from the flashsteam file, but not all.
bqStudio has an SREC to Flashstream conversion function (yes, its hidden, but somehow the function appeared for me at a certain point, so I used it).
I convert the 'bq27750_v0_04_build12.srec' file to a bq.fs file, and I can see with ROM commands '0F' which correlate with the SREC data.
The precursor to these commands however, are a bunch of further ROM commands, and executing them doesn't get past the fourth line : 'W: 16 09 02 00' ... the bus just times out.
So it would appear that bqStudio strikes again.
My question : how can I un-corrupt my device? My preferred method would be to execute the SREC file, but naturally I would need to use the ROM mode for this.
Here is the ROM code that is generated by bqStudio. Maybe someone can 'fix' it so that I can execute it.
W: AA 3E 33 00
X: 1000
W: 16 09 00 00
W: 16 0A CC 00
W: 16 09 02 00 -> where it stops
W: 16 0A 00 00
W: 16 00 00 00
W: 16 1A DE 83
W: 16 06 00 00
X: 250
W: 16 00 80 00
W: 16 1A DE 83
W: 16 06 80 00
X: 250
W: 16 09 00 00
W: 16 0A CC 00
W: 16 09 02 00
W: 16 0A B8 00
W: 16 00 80 01
W: 16 1A DE 83
W: 16 06 80 01
X: 250
W: 16 09 00 00
W: 16 0A CC 00
W: 16 09 02 00
W: 16 0A 00 00
W: 16 11 DE 83
X: 400
W: 16 07 DE 83
X: 250
-----
Best regards,
Eugene