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 EW 8051 Error Message: Unable to open lnk51ew_ccXXXX

Team,

I am about to post a question and an answer regarding an error message that I have worked on before and stumbled across again recently and I want to share this information outside of my 'sent box'.

When building/compiling the rf_modem -rfusb_cc1111 code example from CC USB Firmware Library and Examples (Rev. C): http://www.ti.com/litv/zip/swrc088c, if you receive the following error:

The problem is simple, the linker cannot find the linker command file and to save you some time on where this setting in IAR is located and where it is located on your hard drive most likely, I will walk you through this in my next post.

  • Team,

    This answer is specifically tailored for the CC1111-F16 (16kB of Flash), however this applies to any device supported by IAR.

    You can find the linker configuration setting here: Project->Options->Linker->Config(tab)->Linker configuration file and click on the ‘…’ button to browse.

    Then navigate to the following location for the 8051 linker configuration file: $TOOLKIT_DIR$\config\devices\Texas Instruments\lnk51ew_cc2530F256_banked.xcl

    For me personally the full file path was: C:\Program Files\IAR Systems\Embedded Workbench 6.0_1\8051\config\devices\Texas Instruments\lnk51ew_cc1111F16.xcl

    You might need to edit the "Embedded Workbench 6.0_1" portion of that link depending on the directory name where you have IAR EW 8051 installed.

    This file is enumerated for me because I have several instannces of IAR installed for other devices (ARM, MSP430).

     

  • Thanks, Austuin, but there's a better way to handle this.

    When you open the rf_modem project in IAR, you will most probabaly get a message saying that the project is old and that IAR will try to update the project files. the problem is that this update won't do everything for you.

    Go to the Project Options --> General Options and set up the project as shown below.

    Note in particular the device. It should be CC1111F32. Click the "..." button to locate the device file in <IAR_install_dir>\8051\config\devices\Texas Instruments\. Set code model to Near, data model to Large and calling convention to XDATA stack reentrant.

    Next, go to the Linker options. REMOVE the tick in the override default check box. The default linker file will now be used.

    Next go to the Debugger options. Again, REMOVE the tick in the Override default checkbox.

    Close the options dialog window and rebuild the project. The project should now be built without eny errors or warnings.