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.

LP-CC2652R7: How can the CCS main application read the adc value read by SCS?

Part Number: LP-CC2652R7

Tool/software:

I added these two lines to the scs export code, and they have values ​​when debugging.

=======================================

volatile uint16_t sensorDataBuffer[BUFFER_SIZE];
volatile uint8_t writeIndex = 0;

=======================================

Then I added these two lines in the main application of ccs, but they have no value.

=======================================

extern volatile uint16_t sensorDataBuffer[BUFFER_SIZE];
extern volatile uint8_t writeIndex;

=======================================

I made sure the code for both scs and ccs are working fine.

I just want to know how to get the adc value read in scs.

Thanks,

Gasen

  • Hi Gasen,

    It would appear that you are attempting to add SCS project resources to a non-SC integrated example.  Inside of the SCS GUI, go to Code Generator -> "View output directory" and select the scif_how_to_use.html document.  This will open instructions for adding all of the SCS resources you need to integrate the SC code into your existing CCS project.  You can also read the Firmware Framework Description from the SCS Documentation.

    Regards,
    Ryan