Summary of Problem: f28069.gel contains error in hotmenu Device_Cal
Boot ROM Version: 0x3fffba: 0x0001Boot ROM Release: 0x3fffbb: 0x1010
In the file f28069.gel, the code for hotmenu Device_Cal() contains the following:
XAR0 = *0x701C; *0x701C |= 0x0008; *0x7014 = *0x3d7c83; *0x7016 = *0x3d7c85; *0x7140 = *0x3d7c8d; ADCREFTRIM *0x7141 = *0x3d7c8f; ADCOFFTRIM *0x714B = *0x3d7c91; *0x714E = *0x3d7c93; *0x701C = XAR0; XAR0 = 0;
I think the Boot ROM addresses given in the code above are incorrect for some (maybe all) of the assignments.
Specifically, the two ADC assignments are incorrect. They should be the following:
*0x7140 = *0x3d7c97; ADCREFTRIM *0x7141 = *0x3d7c99; ADCOFFTRIM
I discovered the above info while single-stepping through the Device_cal function in the Boot ROM in ‘disassembly’ view. Here are the instructions in the Device_cal function in the Boot ROM that set the ADC trim registers:
3d7c94: 761F01C5 MOVW DP, #0x1c53d7c96: 280015AA MOV @0x0, #0x15aa ; sets ADCREFTRIM3d7c98: 28010000 MOV @0x1, #0x0000 ; sets ADCOFFTRIM
The above assembly code shows that the ADCREFTRIM value is 0x15aa and that value is stored in the Boot ROM at address 0x3d7c97.
The above assembly code shows that the ADCOFFTRIM value is 0x0000 and that value is stored in the Boot ROM at address 0x3d7c99.
I expect that all of the addresses are incorrect in the gel file.
I believe there are two copies of the values - one within the code and a 2nd as part of a data table - I need to confirm this.
Doesn't look like the address is correct for the 2nd copy of the values either. We will look into this,- at this point it seems that you are correct.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.