Get build errors from Keil CA51 compiler in PSoC Creator when including cydevice.inc and cydevicekeil.inc assembly files

Question: Why we can't include cydevice.inc and cydevicekeil.inc assembly files in same source file?

 

Answer:

 

   

  

The cydevice.inc and cydevicekeil.inc assembly include files cannot both be included into the same assembly source file. This is because they both define some of the same EQU values, which the Keil assembler does not allow.

 

 

 

 

Include only the cydevicekeil.inc assembly file in your assembly source files. This version of the file contains all of the correct names for the PSoC3 device.