Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
My understanding is that I have to use "const" or the compiler won't put it into Flash. I also understand that it has to be set to a value as well - which in my case makes for a very large hex or cyacd file since FW_SIZE is 56320.
Later, I define a pointer to the flash area (its type is to match the functions that it is passed to): unsigned char *Firmware; Then the following line generates the warning: Firmware = &FW; The Firmware pointer is then passed to CyBtldr_ParseHeader and CyBtldr_ParseRowData
assignment discards 'const' qualifier from pointer target type
Your link helped. I had tried declaring as a pointer to constant data but then the two functions that use the pointer caused the same error. I had to change them to being passed a pointer to constant data, then it worked. Would have been a problem if I didn't have their source code!