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.

CC2652R7: To add CoAp server functionality to RCP example

Part Number: CC2652R7

hello,

I would like to add a CoAP server function to the TI RCP example.
I simply added the related functions from another example with CoAP server functionality to TI RCP example.

However, I am getting library reference error as below.
How can I add CoAP library in CCS?

thanks.

makefile:184: recipe for target 'NAMA_rcp_LP_CC2652R7_tirtos7_ticlang.out' failed

undefined first referenced
symbol in file
--------- ----------------
otCoapAddResource ./rcp.o
otCoapMessageGetCode ./rcp.o
otCoapMessageGetToken ./rcp.o
otCoapMessageGetTokenLength ./rcp.o
otCoapMessageInitResponse ./rcp.o
otCoapMessageSetPayloadMarker ./rcp.o
otCoapMessageSetToken ./rcp.o
otCoapNewMessage ./rcp.o
otCoapSendResponseWithParameters ./rcp.o
otCoapStart ./rcp.o
otEXPECT ./rcp.o
otEXPECT_ACTION ./rcp.o
otMessageAppend ./rcp.o
otMessageFree ./rcp.o

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "NAMA_rcp_LP_CC2652R7_tirtos7_ticlang.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [NAMA_rcp_LP_CC2652R7_tirtos7_ticlang.out] Error 1
gmake[1]: Target 'secondary-outputs' not remade because of errors.
gmake: *** [all] Error 2
makefile:174: recipe for target 'all' failed

  • Hi,

    RCP should just implement the radio (and MAC) layer, the CoAP is an application layer construct.

    Instead of the RCP itself, I would recommend enabling the RCP's host (e.g. otbr-posix) with CoAP.

    On the otbr-posix, you could run something like "ot-ctl coap <coap commands>"

    Thanks,
    Toby

  • Hi toby,

    I installed otbr on host and RCP on CC2652R7 to configure thread network using spinel protocol.
    But the problem here is, we connected the sensors on our board to the RCP via I2C.

    Therefore, to collect sensor data from otbr using CoAP, RCP must have a CoAP server.

    If I look at the TI example, I can see that libopenthread_mtd.a contains CoAP.
    I want to create only CoAP library like this or add only CoAP source to the RCP examples.
    We seek your advice in this regard.

    thanks, jg