The same hex file can't be used to program Cy8c5666 and cy8c5667 because there is a field Device ID in hex file which is unique to each part number. This is explained at page# 79 of this PSoC5LP Programming Spec available at this link:
Thanks for the answer, and in a second thought because the device is analog and code you must define the CPU in the hex file.
I will look at the data sheet thanks for the pointer
I have NO problem to read the device type and set the right device in the compiler.
We will update all the CPUs to the same one and will use only one HEX file for the programing
Thanks a lot