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.

BLE Bridge for cc2540 (and not cc2541)

Other Parts Discussed in Thread: CC2541, CC2540, BLE-STACK

Hi Guys,

I got/modified/run the BLE Bridge code, based on cc2541 and all was OK.

But for technical reasons, we decided to pass to cc2540, and then the code doesn't run anymore:

it is stucked in the Phy_reset function. The backtrace is:

Phy_Reset

Phy_init

LL_Init

 osalInitTasks

osal_init_system

main

Is someone know what is the problem here ?

What is the difference between cc2540 and cc2541.

Thanks

Mikael

  • Hi,

    Are you configuration your IAR project to use CC2541 and the corresponding CC2541 stack library?
    The CC2540 supports USB and higher TX power (+4dBm), where as the CC2541 supports BLE & Proprietary RF modes.
    For the full details, refer to the respective MCU data sheets.

    Best wishes
  • I am seeing this same behavior also. I am relatively new to BLE an the CC2540. I did am attempting to use a cc2540-MINIDK. and followed the directions listed here
    processors.wiki.ti.com/.../SerialBLEbridge.
    I did need to change the number of Virtual Registers as indicated and Also need to to roll back from the BLE-STACK 1.4.1.43908 to plain 1.4.0 for the build to complete properly.
    Changed the device to CC2540f256 in the project options and made sure the linker script being used is Projects/ble/common/cc2540/ti_51ew_cc2540f128b.xcl.
    Also edited the buildConfig.cfg file to remove -DCC2541 and add -DCC2540 and -DCC2540_MINIDK defines.

    On execution it ends up in a loop in Phy_RESET, called from Phy_init, LL_init ....
    Any help would be appreciated. -- also replace the CR2032 Cell in the MINIDK just to be sure.

    Greg
  • solved my issue... more scanning of the forums and changing the LIB file for the project. New to IAR and was looking in the project options for the LIB and not the LIB Tab -- duh!
  • Dear Greg,

    Can you please give more details? What did you change ?

    Thank you,
  • It was simple matter of selecting the correct library to link in.  In IAR there is a lib tab in the project fies section,  not under the project options where one might expect to find it in eclipse based IDE's