Summary of Problem: f28069.gel contains error in hotmenu Device_Cal
File: controlsuite\device_support\f2806x\v120\f2806x_common\gel\f28069.gel
Device: TMS320F28069
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.
Please advise.
Eric
Eric,
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.
Regards
Lori
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.