We are using c166 compiler version 4.05. When we add the line sfr SYSCON1 = 0xF1DC; to the include file which "should" already have it defined, we get error C155: 'SYSCON1': invalid base address. How do we access this sfr without an error? Thanks
Thanks to Jon for the reply. However, we are using uVision2 V2.05, and have included the MOD167 directive. We are using the c161csjx.h include file to build software for an Infineon C161JC controller, which uses this register for power moding. I believe there may be an unreported problem here, is there any other way to access this sfr for this chip?
Are you using a PK166 or a PK161? Jon
Pk161
Hmmmm, When Infineon launched the C161, they asked us to make a low-cost, restricted kit that was limited in the SFR space. As the 161 became more popular, they started adding more SFRs and this caused the compiler to break. I'm certain this is corrected in the latest release. Download the latest update from http://www.keil.com/update and that should fix the problem. Jon