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.

Having problems using host_test for DTM.

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: LAUNCHXL-CC2650, , CC2640R2F, CC2650, CC2640

Tool/software: Code Composer Studio

I have been following swra530: 

using LAUNCHXL-CC2650 on ble_sdk_2_02_00_31 and I also tried using LAUNCHXL-CC2640R2 on simplelink_cc2640r2_sdk_1_30_00_25. I changed the predefined symbols in host_test according to the document flashed the launchpad and tried connecting it to btool through RS232 level translator. Btool was not able to connect to the launchpad through the serial adapter. once more,  when testing the voltage on both DIO2 and DIO3 I found, its 3.3V. I would expect the Rx port (DIO2) on the Launchpad to be 0 V being a receiver terminal.

What am I doing wrong?

  • Are you able to run/execute DTM commands using the XDS110 USB/UART User port with BTool or HCITester?

    Best wishes
  • Yes I am but only through the USB. I would like to use this set up to test my own device and I need to connect to it through its Tx/Rx pins which are different so at first I think I need to be able to connect using the launchpad and a COM port.
  • Hi,

    I have tested CC2640R2F DTM with Anritsu BLE Tester and it works. Do you use a USB to RS232 converter, then connect the UART pins to DIO2 and DIO3 of CC2640R2 Launchpad?

    - kel
  • Markel thanks,
    Yes.
    How did you test it? did you compile it for the launchpad or use you own device? which SDK version are you using?
    which version of host_test are you using?

    I see something strange on the launchpad, although DIO2 is defined as an input pin set to low after PIN_init is called it turns into an output pin and is 3.3V.
  • Hi,

    I used the host_test example program from CC2640R2 SDK 1.30 and followed the instructions at swra530. You need to connect the UART pins as mentioned at the "Hardware Setup for the CC2650LP in RS232 Mode".

    - kel
  • Hi,
    I know about the way to connect the pins but since when host_test runs on the launchpad it outputs 3.3v on a Rx pin I don't want to burn anything. could you upload your host_test.hex file so I will try it? assuming its for the launchpad.

    Thanks,

    Amir
  • Hi,

        It is for the CC2640R2F Launchpad. See, attached.

    host_test_cc2640r2lp_app.rar

    - kel

  • Markel thanks,

    using the file you sent I also see 3.3V on DIO2, I guess your translation board is very forgiving if it works on your launchpad. Could you please test with a DVM DIO2 before connecting to the translation board/RS232 and let me know what you find?

    Thanks again,

    Amir

  • Hi,

    I did the CC640R2F DTM with Anritsu BLE Tester at a work environment several times. I am not able to do DIO2 testing as you have requested. What I can tell you is that it works because, my team has been using the host test dtm mode hex file for months for testing.

    So, if you are having problem at your end means either you have problem with RS232 connection or not sending the correct DTM commands over UART. How do you send DTM commands to CC2640R2 Launchpad? What tool do you use?

    - kel
  • Markel Thanks for your help!!

    No need to test the DIO2. I figured it out, I didn't notice that not all the jumpers are there on P4. Don't know how I missed it.
    Not clear in the photo but very clear in the explanation.
    So sorry about this.

    Thanks,

    Amir
  • Markel,

    I now need to do the same for the R1 as well so I repeated the steps with the CC2650 Launchpad and version ble_sdk_2_02_00_31 and it didn't work. This time I'm sure I removed the Jumpers properly :) 

    as I already managed (thanks to your help) to do the same with the CC2640R2 launchpad and appropriate version. I also tried then using the ble_sdk_2_02_01_18 and same result (seems like DIOD2 is set to output and DIOD3 set input).

    Were you successful in the past using the R1 for testing with these versions as well or did you just work with the R2?

    Do you happen to have a host_test working DTM version for R1 (CC2650 launchpad) as well?

    Thanks a lot for you help,

    Amir

  • Hi,

    I have only made the DTM work for CC2640R2 Launchpad. I used the "Configuring the CC2640 for Bluetooth® Direct Test Mode" doc as guide.

    The "Configuring the CC2640 for Bluetooth® Direct Test Mode" doc is for CC2650, so it should work with CC2650 Launchpad.

    - kel
  • Thanks however it is a different SDK and it unlike the R2 doesn't work for me and now that the R2 works I know its not related to the jumpers and connection method so the question, is there any one it did work for?

    I think there is a bug in the pin init or something. If I choose instead of the pins 2/3 pins 8/9 it works on these pins however on 2/3 it doesn't. not sure why.

    All you need to see that the pins don't get initialized properly is a DVM.



    Thanks,

    Amir

  • Hi,

    Anyway, wait for a TI Engineer to reply. At host_test_cc2650lp_stack remove POWER_SAVING predefined symbol and then try again.

    - kel
  • Hi Amir,

    Which CC2650 LaunchPad Revision are you using? It should be listed on the silkscreen near the rocket. On revision 1.2, there was a misprint in the silkscreen that switched DIO2 and DIO3. The correct order of pins from top is 3V3, DIO23, DIO3, DIO2.

    If you are not using a Rev 1.2 LaunchPad, I would check the jumpers between the device and the debugger again. You should only have jumpers on 3V3 and GND. Depending on the LaunchPad revision, the jumpers could be in different places.
  • Hi,

    I'm using 1.2....

    THANKS!!!!

  • Hello Amir,

    Please let us know if there are any other roadblocks or questions that arise. Thank you for all your patience working through this with us.

    -Amanda