Other Parts Discussed in Thread: MSPM0L1304, , BQ79616
Tool/software: CCS Theia (IDE), MSPM0L1304 (host MCU)
I am trying to program the OTP on the BQ79616-Q1, following the instructions on page 82 of the BQ79616 datasheet. I am unable to get a response from the BQ79616 when trying to read OTP_PROG_STAT[DONE] after programming. This is the order in which I am doing things:
1. Write to OTP_PROG_UNLOCK1A-D in one write.
2. Write to OTP_PROG_UNLOCK2A-D in one write.
3. Read OTP_PROG_STAT[UNLOCK].
4. Write to OTP_PROG_CTRL[PAGESEL][PROG_GO] = 0x03 in order to select page 2.
5. Do the OTP programming by writing to the desired NVM registers.
6. Wait 100 ms.
7. Try to read OTP_PROG_STAT[DONE] to make sure that OTP programming is done -- this is where I am unable to get a response from the BQ79616.
Please let me know if additional information would help. I can share the code used if needed.