Other Parts Discussed in Thread: BQSTUDIO, , BQ40Z50-R2, BQ40Z50-R1
Hi,
I've generated the golden image and trying to flash it to my microprocessor. Here's the first several lines generated:
W: AA 3E 33 00
X: 1000
W: 16 09 00 00
W: 16 0A 00 00
W: 16 09 02 00
W: 16 0A 00 00
W: 16 00 00 00
W: 16 1A DE 83
W: 16 06 00 00
I realized that after loading the first line, it enters the ROM mode automatically. Thus, after the first time, if I run it again it was not able to detect the slave address 0xAA and just got stuck there (sending NACK through I2C bus). The problem could not be solved even if I tried to power it again. I have a few questions related to that:
1. Does the device go to ROM mode when it enters the third line? I've seen some documents online saying to enter ROM mode I need to write 0x0F00 to 0xAA which means I should see a line like W:AA 00 00 0F in the generated file, but I didn't. Even without doing that, did my device go to ROM mode automatically when it runs the third line?
2. If the problem is because my device went to ROM mode, then is there anyway for me to exit the ROM mode (without using bqstudio as the chip has already been soldered to the custom board)? I've tried sending W: 0x16 0x08 0x00 0x00, but if I try to run some command to 0xAA address after that command it still didn't work.
3. Does the device has to go to ROM mode in order to flash the golden image to the processor?