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.

.bqfs programming, set full access unseal key in bq27510-g2

Other Parts Discussed in Thread: BQEVSW, BQ27510-G1

Hi All,

I had tried to program the FG using .bqfs. The unit is sen into ROM mode and then followed by the commands in the bqfs. We are using C# for the programming and the USB to I2C communication using a separate kit. 

We are trying to Ensure Device is not sealed from a firmware perspective. These are the steps:

    1. Read ControlStatus
    1. Write 0x00 in register 0x00 and 0x01
    2. Read back register 0x01
    1. If bit 5 is set, send Unseal key
    2. If bit 6 is set, send Full Access Unseal key
    3. If both keys are required, send Unseal key first then Full Access Unseal key

How will we be able to send Unseal Key and Full Access Key? is there a guide in doing this? please note we are not using bqEVSW and the EV2300 as we are to developing a programming software which could program multiple ICs instead of running multiple software.

Any help is greatly appreciated.

Thanks,

Kat

  • Hi Kat,

    When you use Flashstream to generate your bqfs file, you can use a command line option to include the unseal and go to ROM command sequence.

    For example, try this:

    DOS> FlashStream.exe bq27510-G1_v1_23.senc -comments -gotorom -checkversion:10052301

    It will add the following stuff to the top of your bqfs file:

    ;--------------------------------------------------------
    ;Unseal device
    ;--------------------------------------------------------
    W: AA 00 14 04
    W: AA 00 72 36
    W: AA 00 FF FF
    W: AA 00 FF FF
    X: 1000
    ;--------------------------------------------------------
    ;Go To ROM Mode
    ;--------------------------------------------------------
    W: AA 00 00 0F
    X: 1000
    W: 16 00 04
    W: 16 04 83 DE
    W: 16 64 65 01
    X: 200

    You will also notice the following pre-pended at the top of the dffs file:

    ;--------------------------------------------------------
    ;Verify Existing Firmware Version
    ;--------------------------------------------------------
    W: AA 00 01 00
    C: AA 00 10 05
    W: AA 00 02 00
    C: AA 00 23 01

    This is useful to ensure you don't accidentally program a G2 dffs file onto an IC with G1 or G3 firmware, which would be bad.  By using the bqfs file, you don't need this check since you are programming both the dataflash and the instruction flash, so you know they are compatible.