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.

CCS/CC2650STK: CC2650 Project Zero Problem

Part Number: CC2650STK
Other Parts Discussed in Thread: SYSBIOS, CC2650, CC2640R2F, CC2640

Tool/software: Code Composer Studio

Hi all,

I am using CC2650STK for ADC sampling and digital signal processing. The method I used is integrate the sensor controller task with BLE project zero. Due to the memory requirements for the signal processing, I modify  "#define FLASH_PAGE_LEN  0x1000" in cc26xx_app.cmd to "#define FLASH_PAGE_LEN 0x4000". Otherwise, the error will exist when I compile the files. 

However, when I use breakpoints to debug the project, it seems that the project can run beyond "BIOS_start();". Then, When I suspend the project project in CCS, CCS will return "Can't find a source file at "/db/vtree/ademars/git_trees/avala-v/src/ti/sysbios/family/arm/m3/Hwi.c" " and code stop at "2A00                cmp        r2, #0" or "D0FD                beq        $C$L526", which is shown in picture below. 

So, how to fixed so that the BLE project can run as normal.

Software and desktop development I used:

CCS 8.1 

TI ARM Compiler v5.2.6

TI-RTOS 2.20.01.08

TI BLE SDK 2.2.1

  • Hi,

    why did you change FLASH_PAGE_LENGTH? I'm not sure that's a parameter that you can change without causing the device to just flat not work.

    When it's equal to 0x1000, did it not fit on the device?
  • Yes, when it equal to 0x1000, it will not fit with my project. The reason might be that I have too much variables. The minimal value of page size that won’t cause errors during complie stage is 0x2500. I think that it might reasonable, because cc2650 has 128KB flash memory.
    If change the page size is not legal for this BLE project, how can fixed it? Because I need about 10KB for initializing the globale variables.
  • Hi,

    Yeah I would not change the size of flash page length.

    If you want, please report to me the error that you receive when it's equal to 0x1000. I believe what is happening is you are just running out of flash space because of the flash limitations of the CC2650.

    Other than moving to the CC2640R2F which has more application flash availability because the BLE Stack and TI-RTOS kernal are in ROM, there wouldn't be a "fix" so to speak for your current situation if you are indeed running out of flash.
  • Picture above shows the error when page size is equal to 0x1000. 

  • Yep, you're out of memory. You would either need to trim your application down or move to evaluate the CC2640R2F which also has more up to date software support via the SimpleLink CC2640R2F SDK as well as SimpleLink Academy: dev.ti.com/.../
  • Sorry, I still has some questions. Is that means that 128KB Flash memory is not enough for my application? Line 130 error will be eliminated after I reduce the use of variables for signal processing, however line 121 error still exist. Actually, these errors occur when I integrate my application with cc2650stk BLE Project Zero. It works well on TI-RTOS previously. Another TI employee told me I can modify link command file and reload the application, is that possible for solving these issues?
  • In the CC2640/CC2650, the 128kb flash is used by the TI-RTOS kernel, the BLE Stack libraries and the BLE Stack app code and then you have whatever you've added. This is using too much flash. You can look at the resulting .map file to see what memory is being used where to get an idea of how much your application code is taking.

    Please point me to the post you are referring to where another TI employee told you to edit the linker file.
  • Hi Boyuan,

    The code will not fit into the available flash memory. You cannot modify the linker file to change your flash page size and have it fit in the device. You will need to either shrink your code, or look to use the CC2640R2F.