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.

CC1310: How to interchange Peripheral resources between the SCS and M3

Part Number: CC1310

Dear Team,

Could you help handle the situation:  Peripherals need to exchanged between the SCS and M3.  (Eg, When ADC value reached threshold, SCS will turn over the ADC control to M3)

We've tried to re-initialize the peripheral using by SCS in M3 , but failed. Thanks.

  • Hi, I would recommend that you do one of the Sensor Controller trainings:
    software-dl.ti.com/.../sc_01_project_from_scratch.html
    In this training, you are first building the project with Sensor Controller Studio, then importing it to CCS and setting up the control either via HWI/SWI or tasks.
  • Hi FredG,

    this is not the info that I am asking. The question is that, for the peripheral that we initialize to be used by SCS, when needed, I need to transfer the peripheral control authority back to M3 core.
    We're pretty good using SCS to control ADC and SPI. Just can't transfer the control to M3 Core.
  • Can anyone try similar scenario? It's common question for those using SCS. Thanks.
  • Ok, yes you can access most perpherials through the cc13xxware Driverlib.

    For each rtos installation, there is a document describing the Driverlib. I recommend you read this.

    On my installation it is located here:
    [drive]:\ti\tirtos_cc13xx_cc26xx_x_xx_xx_0x\docs

    one example: The 12bit ADC driverlib registers can be found in the hw_aux_anaif.h file.[drive]:\ti\tirtos_cc13xx_cc26xx_x_xx_xx_xx\products\cc13xxware_2_04_03_17272\inc

    Write  to the appropriate registers whch corresponds to the SCS project you have by using HWREGs.
    (the list file of your SCS project contains the commands listing of your project). 

  • FredG,

    Could you send a private massage of your email. I think there is misunderstanding for the scenarios. I'd like to contact you directly on this. Thanks.
    (We've been very successful using SC to control peripheral, the issue here is to transfer the control authority back to M3 when needed. We tried to reinitialized the SC and reinitialize the peripheral to M3, but failed.)
  • Hello Louis,

    Are you using TI-RTOS?

    I believe this should work. Here are some pointers for what you need to consider:

    • Peripheral Sharing
      • Enable Peripheral Sharing resource.
      • place fwAcquirePeripheral(PERIPHERAL_ADC); in start of task code.
      • place fwReleasePeripheral(PERIPHERAL_ADC); in the end of your sensor controller task where you will hand over the adc control from sensor controller to CM3.
    • TI-RTOS ADC Driver:
      • Make sure to close the ADC driver before starting the sensor controller task again.
      • Look at the implementation in "Shared IO Pins" where the UART TI-RTOS driver and the sensor controller  UART emulator share IO pins.
    • Before Sensor Controller Task restart:
      • call scifResetTaskStructs to reset task structs.
      • call scifReinitTaskIo to set up IOs for sensor controller again.