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.

LAUNCHXL-CC1350-4: Cache as RAM not working

Part Number: LAUNCHXL-CC1350-4

Dear TI Experts,

One of my customer need more ram in their project with CC1350, so I send them the CC2640R2's guide of using the cathe as RAM, however, there are two building errors as below:

Could you kindly give some advices? Is there any working demo for Cache as RAM of CC1350 or CC1310? Thanks a lot.

     1、Error[Lp011]: section placement failed  
                        unable to allocate space for sections/blocks with a total estimated minimum size of 0x42e4 bytes (max align 0x8) in <[0x11000000-0x11001fa0]> (total uncommitted space 0x1fa1). 

     2、Error[Lp012]: the address of "ti_sysbios_family_arm_m3_Hwi_Module_State_0_excActive__A" was needed when computing compressed initializers  
                        for section .data_ti_sysbios_family_arm_m3_Hwi_Module__state__V (release_prm3.orm3 #179), but that address hasn't been set yet, since the  
                        size of the compressed initializers are needed in order to set it 

  • In order to use the 8KB Cache RAM, you would have to use the address space by pointing to the address.
    Step1:
    in your main.c file add the header:
    #include "driverlib/vims.h"
    And define
    #define RAM_BUFFER_ADDRESS 0x11000000 //address of VIMS GP-RAM
    Step2:
    Then call
    VIMSModeSet(VIMS_BASE, VIMS_MODE_DISABLED);
    Before,
    /* Start BIOS */
    BIOS_start();
    Step3:
    Then you can use the GPRAM via a pointer:
    uint8_t *ptr = RAM_BUFFER_ADDRESS;
    And write/read your data from this pointer.

    For an example useage, you can refer to the file (nvocop.c) part of the CC13x0 SDK. This is a NV driver file which uses the 8K cache RAM for compaction. See the function compactPage().
  • Dear Suyash,
    Thanks a lot for your detailed explain. It's helpful. I'll aks customer to try it again.