This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cypress FX2 and Keil

Hi guys, I am using keil C51 to do the program and debugging the cypress FX2 ezusb chip.
In my project options I selected Cypress FX2 as the device type.
Should I add an include file in my .a51 file?
Also, if I need to add one instruction at location 0043h, how do I do it?
I tried CSEG 0043h, keil says syntax error.
I am new to both cypress fx2 and keil.

Parents
  • Jack, I am coding in assembly.

    Unless you have a very good reason to do so I'd strongly recommend 'C'!

    I am still trying to find if include files have to be added to my .a51 file.

    If you want to reference anything not declared in that a51 file then yes - assuming you want declarations of the SFRs (special function registers) you'll need to track down the appropriate file, either in the Keil installation directory structure or at the chip manufacturer's website.

    Selecting the 8051 derivative type in the project options does little apart from populating the default memory space sizes that are passed to the linker.

Reply
  • Jack, I am coding in assembly.

    Unless you have a very good reason to do so I'd strongly recommend 'C'!

    I am still trying to find if include files have to be added to my .a51 file.

    If you want to reference anything not declared in that a51 file then yes - assuming you want declarations of the SFRs (special function registers) you'll need to track down the appropriate file, either in the Keil installation directory structure or at the chip manufacturer's website.

    Selecting the 8051 derivative type in the project options does little apart from populating the default memory space sizes that are passed to the linker.

Children