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?
Hi
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.
Best RegardsPrathap
~~~ If a post answers your question, please mark it with the"Verify Answer" button. ~~~
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,.
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.
5224.Linker_Command_File.zip
Were you able to solve your problem, Please "verify answer" if your issue is been addressed.