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.

Port code from CC2640XL_LAUNCH to CC2640R2DK_5XD (5X5) module

Part Number: LAUNCHXL-CC2640R2

I am trying to port code from microcontroller module CC2640XL_LAUNCH to CC2640R2DK_5XD but I am facing issue in configuration of the ADC.

When Launch module is 7X7 have lot of pins, 5X5 Module only do have 16 pins therefore different board files are attached.

When I browsed the Board Files of the CC2640R2DK_5XD, I found that there is no mention of ADC Functions, so it was showing an error when I tried to configure the ADC.

Is there any guide on how to Port code from Module to 5X5 module, is there any suggestion, way. any guidance would be big help!!

Thank you in advance. 

  • Hello Dinesh,

    I recommend you follow the instructions from this E2E post.  If you still encounter any difficulty, please further provide your board file configurations along with the errors you are observing.

    Regards,
    Ryan

  • I tried doing the same things but it become a mess, however, I am able to connect my device with the smartphone using ble and getting raw values but values are not of analog sensor it seems like a nonrelevant value. I am sharing my board files and main files here in link, please let me know what i am doing wrong.

    Code Link

  • There are a lot of concerns with your code.

    • CC2640R2DK_5XD.h: Setting multiple ADC names to zero, not including ADCBufName/ADCBuf0ChannelName
    • CC2640R2DK_5XD.c: Assigning the incorrect adcDIO (only pins 7 through 14 have analog capabilities) to the adcCompBInput (descending order as shown in the referenced E2E thread) inside adcCC26xxHWAttrs, missing ADCBuf materials

    I highly recommend that you review existingCC2640R2_LAUNCHXL.c/h files and read the Running the SDK on Custom Hardware section of the BLE-Stack User's Guide.  You can also submit custom board designs to SIMPLELINK-2-4GHZ-DESIGN-REVIEWS for review.

    Regards,
    Ryan