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

compiling of P89C669 based code

Dear all,

I want to compile and execute P89C669 based code for its 51MX feature. can any body guide how I can compile it?

Harshad

  • Hello,

    You need the PK51 package from Keil to compile code for the 51MX architecture.

    When you select P89C669 in uVision, it automatically selects CX51 compiler. To enable the "extended" features of MX addressing, you need to change the START_MX.A51 file, included in your project (copied from .\Keil\C51\Lib\). But one advice: don't use the "Configuration Wizard" in uVision3 to change this file... Do it by hand, reading the comments in the file itself (it's straightforward to do it). Using the Wizard, I got wrong updated values in the file, compared to what I've configured in the wizard... Maybe Keil will correct this in the future (???).

    Best regards,
    Carlos.

  • Maybe Keil will correct this in the future (???).

    Have you contacted Keil support and given them access to a project, including the values you specified in the wizard?

  • Hello,

    No, I haven't. I usually don't use "graphical wizards", I prefer to do things by hand... experience tells me it's the safest way to do it... :)

    Also, I usually use uVision2 and AFAIK, it doesn't support that type of configuration wizard.

    I eventually e-mail Keil support with a project reporting the situations I got, when I have some time...

    Regards,
    Carlos.

  • Thank you carlos

    So, first I need to purchase PK51 from keil. Do you have any cost effective source for PK51 or I need to purchase it directly from Keil?

    Harshad

  • hello

    Don't know... When I got to the company I'm currently working, they had already bought the PK51 package, so I don't know prices and where to buy it, sorry...

    regards,
    Carlos.

  • So, first I need to purchase PK51 from keil. Do you have any cost effective source for PK51 or I need to purchase it directly from Keil?
    I'd try 8052.com I tend to recall something about a discount.

    Whatever "cost effective source" you may find, do not bexpect miracles. If you find a 'deep discount' please report the thief to Keil.

    Erik