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.

porting cc2650 to cc2640

Other Parts Discussed in Thread: CC2640, CC2650, LAUNCHXL-CC2650

hi,

I am porting cc2650 project zero to cc2640 and encounting some problems. I have a cc2650 launchpad, and replace the cc2650 chip with cc2640, then flash the project_zero_stack_cc2650.out & project_zero_app_cc2650launchxl.out to launchpad. After reset the board, i can't search the "Project Zero" using other bt devices.when i press the btn-1, the uart output some log shows that the interrupt and clock module works well, but the ble stack & some part of TI rtos doesn't work.what's the problem? could someone help me?Also, if i download some sample project without BLE STACK such as adcsignalchannel_CC2650_LAUNCHXL, it works well.

PS, the same image file downloaded to the launchpad with cc2650 is normal. do i need to change something when porting cc2650 project to cc2640 ? 

  • attatch the total log of project_zero on launchpad with cc2640. it is serially less then the log when run on cc2650.
    ----------------------
    #000001 [ 0.016 ] INFO: (project_zero.c:376) Initializing the user task, hardware, BLE stack and services.
    #000002 [ 8.583 ] INFO: (project_zero.c:1422) Button interrupt: Button 0//i press the BUTTON here.
    #000003 [ 8.741 ] INFO: (project_zero.c:1422) Button interrupt: Button 0
    #000004 [ 10.312 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
    #000005 [ 10.480 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
    #000006 [ 10.907 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
    #000007 [ 11.058 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
    #000008 [ 109.449 ] INFO: (project_zero.c:1422) Button interrupt: Button 0
    #000009 [ 109.623 ] INFO: (project_zero.c:1422) Button interrupt: Button 0
    #000010 [ 110.236 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
    #000011 [ 110.430 ] INFO: (project_zero.c:1422) Button interrupt: Button 1
  • Hello,

    Can you provide some more details about the specific issues that you are encountering? Also, did you replace the CC2650 with a 7x7 CC2640 using the exact same layout as the LAUNCHXL-CC2650? I would recommend running the SimplePeripheral example for the LaunchPad and follow the HW troubleshooting tips on the BLE Wiki verify your board is functioning without any HW issues.

    Best wishes
  • Dear JXS:

    yes, we replace an pin to pin 7*7 cc2640, and I try the SimplePeripheral example, and i still can't search it by other bt device and it dosen't output any log. As it is the lanunchpad, i think there is no HW issues with it unless the cc2640 is broken down.
    I replace the cc2640 just to verity that whether the cc2650 project can run on cc2640 without any change. Let's talk about our custom board now which encounting many problems. our custom board is cc2640, it can be identify\erase\Program by Flash Programer 2-1.7.4 successfully. But when using CCS 6.2.0 to debug, it comes error with log below:
    ------------
    Error connecting to the target:
    (Error -242 @ 0x0)
    A router subpath could not be accessed.
    The board configuration file is probably incorrect.
    (Emulation package 6.0.407.3)
    ---------sometimes comes error with log below:
    Error connecting to the target:
    (Error -2131 @ 0x0)
    Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
    (Emulation package 6.0.407.3)

    But when I use the IAR IDE, and build the same project(SimplePeripheral), it can download and run successful in our board!!!(when use IAR, i have to update firmware of xds110, otherwise it can't identify the cc2640)

    I use the xds110 debugger in launchpadxl, we fly the TMS/TCK/TDO/TDI/RST/GND/3.3V to our custom board.

    PS: we hope use CCS to develop and debug our project.

    So, what's the problem? SW or HW? could you give some advice? Thanks so much!
  • The CC2650 and CC2640 are binary compatible for BLE SW. There is really no need to the exercise with the LaunchPad to verify this. Based on your description above I would say your problem is due to either:
    1. Poor soldering (pins not connected, EGP not connected, pins bridged together
    or:
    2. Damage of the chip when handling and soldering for example caused by ESD

    For your custom board it sounds like a configuration issue with CCS. Does it work when you use a (unmodified) Launchpad?

    Cheers,
    Fredrik
  • Dear Fredrik:

    en, now I do not verify cc2640 anymore.

    when used a unmodfied launchpad with nothing changed to CCS configuration, it is ok everytime. And when use Flash Programer 2 to our custom board, it sometimes failed at Erase/Program, perhaps 20%. does it means our connection from xds110 to cc2640 not very good?
  • That sounds like either your connection is not very good, or you have another signal integrity issue on your board (for example poor ground connections). If you share your layout I can take a quick look at it.

    How long wires are you using for the JTAG?
  • our JTAG wires is about 15cm. I'm sw and i have no layout, does schematic diagram works? ground is connected well between xds110 and cc2650.