FAQ_How to correctly compare the program code in BlueNRG-12 with the original production program code
[Copy link]
Author: Weisheng CHEN, ST engineer
Click to download the pdf document to view:
FQA-正确比较BlueNRG-12中程序代码和原始生产程序代码的方法.pdf
(554.24 KB, downloads: 3)
Keywords: Hex file, BlueNRG-1/2, FLASH content change
Question: How can I compare the code in the BlueNRG-1/2 Flash with the original production code to confirm if the flash content has been overwritten?
Background: Some customers report that the content in BlueNRG-1/2 is overwritten. They compare the original production hex file with the hex file read from BlueNRG-1/2. Some customer engineers use a text comparer to compare the files. This works when the two hex files have the same format, but it does not work when the two hex files have different formats (as shown in the figure below, both hex files are legal, but the number of valid code bytes in each line is different).
Original compiled code: Each text line contains 16 bytes of code
Code read back from Flash : Each text line contains 32 bytes of code.
Answer from ST engineer: The correct way is to use the programming tool "BlueNRG-1 ST-Link Utility" provided by ST . The steps are as follows:
1. Open the tool "BlueNRG-1 ST-Link Utility"
2. Click "File->Open file" in the toolbar to open the first hex file to be compared.
3. Select “File->Compare [...] with another file” in the toolbar to open the second hex file to be compared.
4. The differences between the two hex files will be highlighted in the tool interface.
|