How to configure memory in a VS Code Zephyr project?

Hello,

How to configure memory in a VS Code project?

I want to configure memory regions, such as non-initialized RAM memory region size.

For example, in IAR environment I used to use the linker configuration file (.icf).
How to do the same thing with NRF Connect for VS Code?


Environment: Visual Studio Code
RTOS: Zephyr
SDK: 2.5.0
Used part: NRF5340

Best regards,
Pablo

Parents Reply
  • Thanks Hung,

    The info you sent is very useful.
    In my case I don't care if the data is retained between reboots, instead, I have a large buffer in RAM and I don't want the uC to waste time and energy initializing it every startup.

    So I defined:

    __noinit    FIFOData    data_Buffer[BUFFER_SIZE];    // samples buffer

    My question is:

    where is the "noinit" region size defined?

    Is it possible to resize it?

Children
Related