This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CCM usage in KEIL

Hi All,
Currently using KEIL 4 for my development. I am using STM32F427, my application is 210KB but the available SRAM is 192KB. I wanted to use 64KB CCM, how to use and define that CCM in KEIL. Kindly guide with examples how to use the CCM in KEIL.

Parents
  • Thanks for capturing my post, just tried a piece of code as follows and started looking into Memory window to check whether the values are stored

    #include "stm32f4xx.h"

    char buf[16] __attribute__ ((section(".ccm")));

    void main(void)
    { int i;

    for (i=0;i<16;i++) { buf[i] = i; }

    }

    But it doesn't show any values in the Memory Window, as you suggested I updated the scatter file. Could you guide on this.

Reply
  • Thanks for capturing my post, just tried a piece of code as follows and started looking into Memory window to check whether the values are stored

    #include "stm32f4xx.h"

    char buf[16] __attribute__ ((section(".ccm")));

    void main(void)
    { int i;

    for (i=0;i<16;i++) { buf[i] = i; }

    }

    But it doesn't show any values in the Memory Window, as you suggested I updated the scatter file. Could you guide on this.

Children
No data