Datasheet

www.ti.com
Appendix G
(b) New error codes returned to VB
(c) Added codes for Programming/Compare Srec errors
(d) Config errors
(e) The VER byte in the devices instruction flash does not match errors
(f) New Error codes corresponding to PKTSpec Error codes
(g) New Generic error codes
(h) EVSW error codes reserved 50006000
(i) VB_ERR_CALIBRATION_IN_FIRMWARE errors
(j) All error codes below 65536 are reserved for use by TI Austin
(k) User defined error codes must be above 65536
15. modGGDF
(a) ReadGGModeDataFlashConstant()
(b) ReadDataFlash()Reads a data flash row
(c) UpdateDataFlashInt()This function updates a single data flash item at a specified offset. The
native units and internal storage are specified in the data sheet for the given subclass item.
(d) CompareBytes()
(e) WriteDataFlash()This function does not delay after writing DF. This delay must be done and must
be included in calling function
(f) WriteGGModeIntegerVerify()Writes an Int to DF at nOffset. It returns the array of the verified
written data for use by the calling procedure.
(g) WriteGGModeVerify()Writes an entire row to DF. It returns the array of the verified written data
for use by the calling procedure
(h) WriteDate()
(i) WriteMfgData()Write manufacturer data
16. modIssues
(a) GetDevVer()
(b) ImplementGGModeWorkarounds()
(i) SMBus block read must return 14 bytes, firmware needs a write before it operates properly
(ii) Board offset calibration needs to be done because hardware/EV board has too much variance
and there is no good value that can be used.
17. modResourceHeaderConstants defined for resource IDs
18. modROMDF
(a) Data flash related constants
(b) SMBus Commands
(c) The file structure
(d) LoadDFImage()Load the DF image from file
(i) Read the data from the file
(ii) Validate
(e) WriteDataFlashInROMMode()Erases and writes data flash from a file
(i) Program Flash disable integrity to take care of power failures
(ii) Write the DF with checksum verify
(iii) Write the program flash back to normal with readback/verify
(f) ReadDataFlashInROMMode(arrow)Reads entire data flash and writes it to a file
(i) Read the device version instruction from Program flash
(ii) Write the file
(g) ReadDFRow()Reads a row of data flash. The data is read into an array where the row data
begins from the offset specified.
(h) WriteDFRow()Writes a row of data flash. The data is specified as an array and the row data
begins from the offset specified.
(i) MassEraseDF()Erases entire data flash
(j) WriteAllDF()Writes entire data flash in the array of bytes
(k) ReadAllDF()Reads entire data flash to the array of bytes
(l) ProgramFlashPreCondition()For power failure protection first store first 64 instructions and then
corrupt integrity word(erase)
(m) ProgramFlashReadRow()Read a Row of Program Flash
(n) ProgramFlashWriteRow()Write a Row of Program Flash.
(o) ProgramFlashCompareRow()
49
SLUU397A February 2011 Revised May 2011 Programming Guide
Submit Documentation Feedback
Copyright © 2011, Texas Instruments Incorporated