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

Possible bug in uVision 2.31 (C51 7.01)

Hi all,
Could someone please check the following behaviour of uVision 2.31 (C51 7.01)?

If in the Options for Target... dialog you switch from the "Target" tab to the "Device" tab and then back to the "Target" tab, some of the options are lost.

For example, if the device is a SAB80C517A from Infineon, the "Use On-chip Arithmetic Unit" and "Use On-chip XRAM" check boxes are unchecked.

Thanks in advance,

Jose

  • Just switching between the tabs doesn't seem to do it.

    However, if I change the device - eg from Triscend TE502 to TE505 - that does cause the 'Use multiple DPTRs' and 'Use On-chip XRAM' options to be cleared (and maybe others - I didn't check).

    This is not a new behaviour: in previous versions, the Device & Target options were separate dialogues, but changing the Device had the same effect.
    I'm not sure that the behaviour is entirely unreasonable: changing the device is a pretty fundamental change, and could well invalidate some of the Target settings anyway! (eg, whether or not multiple DPTRs are available to be enabled!)

  • "changing the device is a pretty fundamental change, and could well invalidate some of the Target settings anyway!"

    Yes, it can be fundamental change but if I don't change device anyway why is changed Target option same way as the Default button?

    If I forget this behaviour and click by mistake on the Device Tab than I quickly use "Cancel" button.

    It's not critical but it is a bug I mean.

    Vaclav

  • Andrew, Vaclav,
    I've double checked and I can confirm that the settings are resetted by just clicking the Device tab. It happens in two different installations of the C51 package.

    In my case, even the Xtal setting is changed to 18.0 from the 16.0 which I use in my project. The off-chip code and xdata memory settings are not changed, by the way.

    It may happen only with certain Devices, I'll investigate further.

    Jose

  • As I said, I don't see this behaviour if I just view the 'Device' tab - only if I actually change the device

  • This problem will be corrected in the next (7.02) release.

    Jon

  • "This problem will be corrected in the next (7.02) release."

    Jose surmised that this may apply to only certain devices; this seems likel, as he can reproduce the problem, but I didn't see it.

    Would you care to elucidate on this?

    And while you're there, please could you make the ESC key work in this dialogue?!

  • Andrew,
    the problem is (step-by-step).

    1. Open "Option for Targets 'xxx' "
    2. In openned window is activated Target Tab as first.
    3. Set different properties than is default settings in "Device database" for your Device type if you haven't set it at the moment.
    (Different Xtal frequency as Jose mentioned,...)
    4. Click on Device Tab and immediately click back on Target Tab.
    5. If you'll find some changes against the prevoius settings in Target Tab than you have same behaviour as Jose and me.
    (In my case, it set default "Database" settings for my device type)

    You can use ESC (or "Cancel" button) to conserve your original Target Tab settings.

    I don't think that it is problem "only certain devices..."

    Jon,
    thank you for the good message.

    Vaclav

  • "You can use ESC (or "Cancel" button) to conserve your original Target Tab settings."

    The ESC key does not perform the 'Cancel' function; it is simply ignored :-(

    "I don't think that it is problem 'only certain devices...'"

    I tried it with the Triscend devices, and I had no problem so long as I didn't actually change the device

  • "The ESC key does not perform the 'Cancel' function; it is simply ignored :-("
    True. I want to described that behaviour of Cancel button is same as ESC in another similar dialogues under Win32 because I have another W98SE language mutation than English and I hadn't been sure with English Win version (My "Cancel" is named "Storno"). Certainly, if ESC will perform the Cancel function it would be fine.

    "I tried it with the Triscend devices, and I had no problem so long as I didn't actually change the device"
    Triscend on my PC :
    if I apply my procedure above, it change Xtal to 40MHz and do unchecking of "Use multiple DPTR reg." and "Use On/chip XRAM" while "Memory model", "Code Rom Size" and "OS" give back previous settings what is same as for my Dallas,... .
    My conclusion is: Keil uV2 2.31 (W98SE) installation (on my PC !!!) change Xtal to max. and uncheck all device depended Check boxes. It all hold for first click to "Device Tab" and immediate click back to "Target Tab" only.

    Vaclav