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.

KeyFobDemo Can't be built

Other Parts Discussed in Thread: CC2540

I m starting with the CC2540/1 Mini DKit and I was hoping to make changes to the KeyFobDemo code in order to review the results. However, unlike other projects, I can't build the KeyFob Demo project. When I open workspaces normally, the files appear on the left side in a group and I can select individual ones. However, when I open the KeyFob folder/workspace no files appear on the left side and just he 4 main .c files appear on the right. Therefore, I can't build the project so any changes that I make won't be updated. Any ideas why?

  • Hello Sam,

    Are you using IAR for 8051 v8.20.2 to open KeyFobDemo.ewp? Can you post an IAR screen shot of this condition? Make sure "View-> Workspace" is selected as well.

    Best wishes
  • Hi,

    I'm using IAR for 8051 v9.20.1. When I open a workspace and go to Projects -> ble -> KeyFob, there are 3 folders : Source , CC2540DB and CC2541DB. Both CC2521DB and CC2540DB contain the same file KeyFobDemo.eww (there is no .ewp option when going to Open->Workspace). When I open up that file, the IAR workbench opens up the 4 main files (KeyFobDemo.c, SimpleBLEPeripheral.c, OSAL_SimpleBLEPeripheral.c and SimpleBLEPeripheral_Main.c) but no other files and the workbench information isn't shown on the left. I've attached a screenshot.

  • Hi Sam,

    Note that the BLE v1.4.0 SDK was built/tested with IAR 8.20.2. However, I was able to open & build using IAR 9.10.3, albeit with the IAR project conversion (automatic) and linker file change (manual). I do see the normal KeyFob workspace layout.

    I'm not sure what happened, maybe your EWP file is corrupted. Can you try using another, clean, install of the SDK.

    Best wishes
  • Thanks! What's strange is that all other projects (SimpleBLEPeripheral for example) work properly and I can edit and build and download using the CC debugger. Any reason why just the KeyFob demo is corrupted?
  • Also, when you select Open -> Workspace within IAR, and you move to the folder that you want, should you have options to select ewp files? I was under the impression it was just eww files.
  • I'm not sure, it opened correctly in my SDK. Perhaps it was just corrupted from some other means on your setup. Is it working for you now on a clean setup?

    Best wishes
  • Oops sorry I didn't let you know right away! Yes, it is working properly now. One other questions: Any chance you can check out

    e2e.ti.com/.../426106

    I'm just having some trouble flash programming. Apart from that I should be all set.

    Thanks for your help!