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.

CC2340R5: host_test DEMO test failed

Part Number: CC2340R5

Hi

I am currently testing RSSI, but the results are poor. Then I used host_test_LP_EM_CC2340R5_freertos_ticlang in simplelink_lowpower_f3_sdk_7_20_01_10 to measure the waveform signal.

However, after updating the simplelink_lowpower_f3_sdk_7_40_00_64 version, there is no response to sending HCI instructions. Is there any difference?

Have a good day.

Preston

  • Hi Preston,

    Thank you for reaching out. I have tested the host_test project available in the 7.40 SDK and it is working well on my side. After flashing the board, did you physically reset it? If not, then could you try resetting it through the reset pin (by pressing the reset button next to the Type C port) and try again? If this still doesn't work, then could you share the output log that is present in btool when you attempt to send HCI instructions?

    Best Regards,

    Jan

  • Hi Jan,

    It still doesn't work after I reset it.

    This is the log output from btool:

    [1] : <Info> - 09:24:24.048
    Port opened at 2024/2/29 上午 09:24:24
    --------------------------------------------------------------------
    [2] : <Tx> - 09:24:24.186
    -Type : 0x01 (Command)
    -OpCode : 0xFC1D (HCIExt_ResetSystemCmd)
    -Data Length : 0x01 (1) byte(s)
    Type : 0x00 (0) (Chip Reset)
    Dump(Tx):
    0000:01 1D FC 01 00 .....
    --------------------------------------------------------------------
    [3] : <Error> - 09:24:26.216
    Message Response Timeout
    Name = HCIExt_ResetSystemCmd
    OpCode = 0xFC1D
    Tx Time = 09:24:24.186
    --------------------------------------------------------------------
    [4] : <Warning> - 09:24:26.217
    Device Reset Timeout
    Device May Not Function Properly
    --------------------------------------------------------------------

    Before this, I used uart2echo_LP_EM_CC2340R5_freertos_ticlang to test the serial port, which can be sent and received normally

  • Hi,

    Got it. Thank you for confirming. Are you using the host_test hex flie included in the SDK? If so, then could you try importing the host_test project, building the project locally, and flashing your locally generated image?

    Best Regards,

    Jan

  • Hi Jan,

    I am currently importing the host_test project in CCS,and flash my generated image.I didn't use the hex file.
    Is there any problem about the log?

    Best Regards,

    Preston

  • Hi Preston,

    Got it. The log you are seeing is typically seen when the device if flashed with host_test, but not reset before being connected to btool. Are you using an LP-EM-CC2340R5 or a custom board?

    Best Regards,

    Jan

  • Hi Jan,

    I use LP-EM-CC2340R5, and CC2340R52 is marked on the chip.

    In addition, I checked syscfg and found that the device view is configured with CC2340R5RKP.

    Best Regards,

    Preston

  • Hi Preston,

    That is strange. I would expect the project to work. Can you zip up the host_test project  in your work space and share it with me along with the compiled image? I would like to try to reproduce this behavior on my side.

    Best Regards,

    Jan

  • host_test_LP_EM_CC2340R5_freertos_ticlang.zip

    Hi Jan,

    This is my host_test project,please try it.

    Best Regards,

    Preston

  • Hi Preston,

    Has the project been modified in any way? It is not building on my end. I have imported an unmodified host_test to my workspace, built it successfully, tested it, and exported it. I have attached the archive to this message. Can you test using this project? The compiled image can be found in the project as well.

    3426.host_test_LP_EM_CC2340R5_freertos_ticlang.zip

    Best Regards,

    Jan

  • Hi Jan,

    The demo you provided can be tested normally.

    Best Regards,

    Preston