Hi experts,
In customer board and code, I found a very interesting correlation between ADC and Flash. In start-up codes, customer samples one ADC channel 1024 times and averages the results in order to find the offset of this channel. And for the first case, they have following calculated result: 1537 ADC code. And I also screenshotted the map file of the project as below:
And in the VmaxPower_SCI file, I modified the codes as below, moved one NOP instruction
So this file's text size will decrease 1 as below fig shown. However, we can also find from the below figure that the ADC code is also changed (From 1537 to 1572):
Similarly, I also modified the codes to let the file's text size increase 1 as below fig shown. And can also find from the below figure that the ADC code is also changed :
Please help explain the reason behind the above phenomenon, thanks!
BR,
Will