This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IAR

Hello everybody,

I've got a problem when creating a project with IAR.

I've made a project that works and that I can debug, but when I leave the debug mode I've got a message error that says :

"Chipcon Emulator : Warning : There was xx error(s) when processing SFRs, see Debug Log window for more information."

And when I check the debug log I find this :

"The custom SFR file 'C:\...\8051\config\devices\_generic\io8052.ddf" contains a modification of the factory SFR 'PCON.SMOD0'. This  SFR cannot be found in the used factory SFR file 'C:\...\8051\config\devices\_generic\io8052.ddf" and the definition will be ignored."

Does anyone knows where the problem can come?

Regards,

Lionel.

  • Bonjour Lionel,

    First off, what IAR version are you using? The latest version for IAR 8051 is 8.20.

    It looks like you've not configured your project correctly. Do the following under Project > Options:

    1. Make sure you uncheck the override default checkbox

    2. Select the correct CCxxxx device.

    Now, the debug configuration file (.ddf) should automatically be the correct one for the CCxxxx device you chose in step 2.

    Hope this helps!

    Br,
    ABO 

    --
    PS. Thank you for clicking  Verify Answer  below if this answered your question!

  •  I'm using IAR 8.20.1.

    Overide Default" in Options... -> Debugger -> Setup -> Device Description File is uncheck.

    And I use CC1110F32.i51 which is in "C:\...\IAR Systems\Embedded Workbench 6.4\8051\config\devices\Texas Instruments\".

    But the message still appear.

  • It looks to me like the project is using a generic 8051 architecture debug file (.ddf), but the CCxxxx devices has custom/additional registers in the SFR memory space.

    What does the Device description file field under Project > Options > Debugger > Setup say? It should say something like ".....\config\devices\Texas Instruments\ioCC1110F32.ddf.

    Br,
    ABO 

  • Well the only place I found this file is in Device Description file, but it's inactive because Overide default is unchecked.

    Here's a screen shot of Options->Debuger -> Setup:

    BR,

    Lionel

  • Hmm. Can you try to make a new project for CC1110? Do you get the same error?

    Can you send me your project? (we can do it offline, just add me as a friend on E2E).

    Br,
    ABO 

  • This is the secret incantation I use to make the above problem disappear in EW8051 8.20.2

    1) Remove 'Override default' for Debugger Description File as suggested
    2) Clean project and exit EW
    3) Delete the xxxCustomSfr.sfr file visible in the project directory
    4) Start up again

    This is the first way that worked for me. I am sure there is a shorter way.

    By the way EW8051 8.20.2 fixes some problems, one of which is applicable to the halSetSleepMode function issue.

    There are various IDE productivity improvements in 8.20 compared to 8.11 and earlier. Some are simple, such as the standard keyboard paste shortcut shift-insert finally works in IAR and the project name now appears in the title bar. This is useful if several IDE instances are kept open. 

    Also stepping with the debugger in 8.20 behaves better, even with a high level of optimisation.

    8.20 is not supported by IAR for Windows 8 and upgrading from 8.11 to 8.20 will cause IDE crashes in Windows 8 if you install to the default installation directory. Solution is to install nearly anywhere else except in a directory with privileged permissions.

    John Heenan

  • Sorry, there are a few extra steps to the incantation to fix the problem

    This way will stop the messages but will deny you the ability to examine the SFRs conveniently in 'Register View' when debugging.

    Remove the greyed out DDF (device description file).

    Turn on 'Override default', edit out the file name, and then turn off 'Override default'.

    IAR needs the DDF file when debugging to show register views.

    I guess it is up to TI to fix inconsistencies between files that causes the problem.

    John Heenan

     

     

  • Thks for the help. To complete your answer, here is the reply I get from IAR :

    I believe that the problem is within the menu Project > SFR Setup dialog.

    It is a new feature that was introduced in V8.20.

    If you look in that window then you have a few SFRs with a red question mark in the leftmost column.

    The solution is to delete all those.

    Unfortunately just pressing Delete on them does not work, you have to right-click and select delete in the dropdown menu.

    TI seems to use it in their example projects in combination with having setups for different chip families within the same project.

    A safer way (what we did before V8.20) is to simply use a .DDF file with all the needed SFRs.

    I have made bugreports for the SFR Setup window problems and I hope that we will improve the situation in the coming V8.30 release (summer 2013) and perhaps also as a service pack for V8.20.

    But the correction plans has not yet been cut into stone.

    Anyway, thank you for pointing this out and I hope my explanation and recommended method to fix it helps.