510-770-1417 | info@reachtech.com

by Reach Technology, a Novanta Company
Support > Frequently Asked Questions > My application needs to determine when to update bitmaps, fonts, and firmware stored in a module. Can I query for a timestamp or other information? Once I know an updated is needed, are there options for running BMPLoad from a script or command line?

My application needs to determine when to update bitmaps, fonts, and firmware stored in a module. Can I query for a timestamp or other information? Once I know an updated is needed, are there options for running BMPLoad from a script or command line?

We use the CRC of the Flash storage space as an indicator of the contents. BMPload provides this value when you either program the files into a display module directly or when you create a .BIN file for use later. If the CRC of the Flash space is different than that of the .BIN file, you know the contents are different. Your application can use the “*CEXT” command to get the CRC of the FLASH space. Your application can then compare this to the known CRC of the proposed .BIN file (the CRC value received from BMPload when creating the .BIN file). If they are different, the application can then download the recommended .BIN file. You can use this In-System-Programming Application Note for an example of code that downloads a .BIN file. The App Note describes a command-line utility, but the same method can be used inside of an embedded application. You could port this application to your environment. You would need to add the CRC comparison step at the beginning to determine if the Flash needs to be updated.