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.

CC2640: CCS "Can't find a source file" debug error for chipinfo.c

Part Number: CC2640
Other Parts Discussed in Thread: , CC2650

Hello,

We are following this tutorial for implementing the ADC on our board.

https://dev.ti.com/tirex/explore/content/simplelink_academy_cc2640r2sdk_4_40_00_32/modules/sensor_controller/sc_01_project_from_scratch/sc_01_project_from_scratch.html#create-scs-project

We are using the CC2640F128 on our own board. Six of the analog input are connected to force sensors.

Sensor Controller Studio works fine. We are able to run all of the code in the tutorial and it shows the ADC output in the graph view.

We followed everything up and through "Solution 1 - HWI"

The tutorial was beginning to not make much sense once it got to migrating the SCS project into CCS, so we just followed what it said.

The program appears to debug and run on our board, but runs into this error when paused:

We tried solving the error by adding one of these to the Source Lookup Path, I highlighted the two that we tried:

Here's where we did this:

After making this addition to the Source Lookup Path, the error went away but now it enters this loop whenever we pause it:

This happens regardless of which file we add to the Source Lookup Path, although the code looks slightly different within each chipinfo.c file.

We are just wanting to see the DIO data. What can we do? We appreciate any help.

  • Hi,

    First, you have added the proper C file. Adding the wrong C file would not break the code - because the C file is only use by the IDE to help you understand the machine code.

    With that said, the issue seems to come from an incompatibility between the code an the device. Which device are you using? You are mentioning CC2640 in all your posts but here the code is for CC2640R2F.

    Would you like to share a picture of your device / development board?

    Best regards,

  • To Clement:

    We are using the CC2640F128. We could not find any example code for this board (Such as from an SDK or the Resource Center) so we were not sure if perhaps it should be able to run the same code that was written for the CC2640R2F. Here are two pictures of our board:

  • Hi,

    The issue is coming from an error between CC2640 an CC2640R2 - You are using CC2640 (the product page is here)

    Please review the getting started guide. For this device you need to download TIRTOS for cc26xx-c13xx and the BLE Stack (here).

    Generally speaking CC2650 an CC2640 are binary compatible, it may help your researches :)

    I hope this will help,

    Best regards,