- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Best Regards,
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please send me some sample program that may help me to write program using assembly as well as using C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To check program memory means you want to confirm whether the CRC of program Flash in hex file is same as CRC of p-flash after downloading/ flashing hex into controller.
In this way you are checking the physical memory is damaged or not.
Things you need to do is.
Write down your own routine to calculate CRC of p flash with an algorithm (CRC-16 or CRC-32).
Calculate CRC of hex file using srec tool using same algorithm (CRC-16 or CRC-32).
Append CRC at particular address in hex file. (You can place calculated CRC at unused p flash area )
Now at run time your own routine will calculate CRC of p flash. You should have added a logic to compare calculated CRC with stored CRC at particular address.
Refer below link for reference.
Hex file CRC calculation using Srecord tool :
https://embdsysbasics.blogspot.com/2018/12/hex-file-checksum-calculator-using.html?m=1