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.

RTOS/CC1310: How to active cc1190 in contiki OS?

Part Number: CC1310
Other Parts Discussed in Thread: CC1190,

Tool/software: TI-RTOS

Hi,

We create a new board with cc1310, that plan to use cc1190 to extern the access eange. That board designed is reference the CC1310+CC1190  EU.

We check the document, that just use the below code,

  palnaPinHandle = PIN_open(&palnaPinState, palnaPinTable); /* Set IO muxing for RFC GPOs */
  PINCC26XX_setMux(palnaPinHandle, CTRL_LNA_EN, IOC_PORT_RFC_GPO0);
  PINCC26XX_setMux(palnaPinHandle, CTRL_PA_EN, IOC_PORT_RFC_GPO1);

So, we copy the same method in contiki, but it's not work.

  ti_lib_ioc_port_configure_set(BOARD_IOID_C11_LAN_EN, IOC_PORT_RFC_GPO0, IOC_STD_OUTPUT | IOC_PORT_GPIO);
  ti_lib_ioc_port_configure_set(BOARD_IOID_C11_PA_EN, IOC_PORT_RFC_GPO1, IOC_STD_OUTPUT | IOC_PORT_GPIO);

Have any ideal how to do ? Thanks!!

Regards,

Kevin

  • Hi Kevincy,

    The IO Controller module (IOC) from DriverLib not the same thing as the PIN driver. What you essentially want is to mimic the PINCC26XX_setMux() function. You can inspect the source code for PINCC26XX_setMux() if you have downloaded the SimpleLink SDK for CC1310. The source file can be found under <SDK root>/source/ti/drivers/pin/PINCC26XX.c.

    I've quickly glanced over the source file, and it seems like PINCC26XX_setMux() calls the static function PINCC26XX_setIoCfgMux(), which in turn modifies a register. Should absolutely be doable to do yourself in Contiki. The HW register definitions can be found in DriverLib, i.e. ti_lib.

  • Hi Edvard,

    Thanks your comment.
    Function "ti_lib_ioc_port_configure_set" seems work on contiki, it seems like "PINCC26XX_setMux". I think my problem is on RF setting, not setMux issue. So we reference the configuration with "SmartRF studio", and change my rf setting in contiki and it work.

    Currently, we can transfer data between two device. But we found the signal seems not good than "not use cc1190", and signal range seems not be extend. Have any ideal? Thanks!!

    Regards,
    Kevin
  • I found my frequency seems incorrect, when I fix it, the signal range have be improve.