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

options for file source.c

While working on a project we can add many groups under it and under every group we can add lot of file. For example under project LPC2378 (C:\Keil\ARM\Boards\Keil\MCB2300\Blinky) there are groups named Startup Code, System Calls, Source Code, Documentation. Again under Startup Code there is startup file i.e. LPC2300.s and under System Calls there are Retarget.c and Serial.c files and under Source Code there are Blinky.c, LCD_4bit.c etc.,

If I right click on Blinky.c file and click on Options for file Blinky.c, under Properties tab there is Memory assignment section where there are options for Code/Const, Zero Initialized Data, Other Data . If I select different selections like ROM1, IRAM1, IRAM2 after defining their range for Code, Zero Initialized Data, Other Data, how will it effect my program? Will the memory for that particular file will be stored as per the selection? Please let me know

Thanks in advance

Parents
  • For example if I have lot of Zero Initialized Data, then in the options if I am selecting an external RAM for ZI after defining the range in RAM1, then I am taking off load from my internal RAM and ensuring smooth run? am I correct

    In one of application, I have lot of ZI data (dynamic allocation), so I have tried to do the above setting, but the required memory is not allocated.

    So i just want to know the correct usage of Memory Assignment in the options settings

    After this selection, do I need to make changes in startup file or somewhere else?

Reply
  • For example if I have lot of Zero Initialized Data, then in the options if I am selecting an external RAM for ZI after defining the range in RAM1, then I am taking off load from my internal RAM and ensuring smooth run? am I correct

    In one of application, I have lot of ZI data (dynamic allocation), so I have tried to do the above setting, but the required memory is not allocated.

    So i just want to know the correct usage of Memory Assignment in the options settings

    After this selection, do I need to make changes in startup file or somewhere else?

Children
No data