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 code to the SaBLE-x

Other Parts Discussed in Thread: CC2650, CC2640

Hello,

am currently working on my Senior Design project and am trying to use the SaBLE-x module in my final design. We have fully prototyped our design and it works as desired on the CC2650 launchpad. We recently got in our PCBs and started programming the SaBLE-x module, but have run into some issues.

I used the XDS200 to program the board with a simple blink program and I was able to control one of the LEDs (could control DIO 1 but not DIO2), but not the other. Similarly I was able to read one of our switches (could read DIO7 but not DIO8) and control one of the I2C lines(could control DIO 4 but not DIO3).

would it be possible for you to get some guidelines for converting CC2650 code to run on the SaBLE-x/ CC2640? So far, I have updated the Board.h file to contain the correct pin designations (LED1 is DIO_1, etc.) and I made sure to change the settings to reflect XDS200 and CC2640 in the properties as shown below. I also ensured that the targetConfigs were set up correctly.

 

  • Link to the SaBLE-x module for reference. The SaBLE-x contains a CC2640

    www.lsr.com/.../sable-x-ble-module
  • Hello Wesley,

    As stated in the CC2640 sticky FAQ, the CC2650 code is binary compatible with the CC2640 - no project settings should be modified. Changing the CPU variant can in some cases result in a build error.

    Your issues seem to be specific to the LSR module board layout which uses the 5x5 package. Have you contacted LSR? Have you stepped through the code with the XDS200 debugger when accessing a non-functioning switch/IO? I would try this as a first debug step.

    Best wishes
  • Hi Wesley,

    have you got it to work?
    I am also using the Sable X on a custom board and i could make it work with the BLE Stack examples for CC2640F128.
    Now i am having some trouble to use the BLE Stack 2.2 exmaples. The IC gets stuck on initialisation.
    If i modify the device to CC2640F128 instead of the pre configured CC2650F128, it give me errors messages while flashing.
  • I make it to work now. The only thing i did was the set the right board on the App.
    Under Project Properties->Build->Advance Options-> Predefined Symbols
    i remove the CC2650xx whatever it was there and added CC2650DK_5XD on it.
    Now it is advertising and the software works. The stack remained as it it only change the App.