I'm trying to determine how to store a precalculated CRC value of my application to flash when I store the application, so that my application can verify the programmed CRC value against the flash contents. I see in NowFlash that I can store to the OTP area (is that the best area for something like this?), but I'm at a loss as to how I would just get a single CRC value stored. Is there any easy way to accomplish this or must I create a binary file from my single CRC value?
You cannot directly program the CRC values, nowFlash accepts one of the following formats (Coff, Intel, Binary, Motorola, elf, Tektronic ) as input.
Can you make it as part of your Application? Create a "data section" for the CRC values and map it to a specific address using linker command file.
In reply to Prathap:
The CRC couldn't be in the application since the CRC I'm calculating is of the application itself. Or am I misunderstanding your suggestion? Thanks,.
In reply to 2001417:
I see a crc_table operator in the linker user's guide which seems like it will accomplish this, so I'll look into that approach.
I'm looking at the Assembly Language Tools User's Guide v4.9 (it is all I can find), but we are using linker version 4.6.4, and my link command file is throwing errors when trying to use crc_table as illustrated in that User's Guide. Is that command supported in 4.6.4? Thanks.
I found a sample linker commad file where we specify a data section, Hope it helps.
Were you able to solve your problem, Please "verify answer" if your issue is been addressed.
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.