How to know the size and ram consumption of the code? is the hex file generated size is the actual size? what is maximum percentage of the flash we should use?
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.
How to know the size and ram consumption of the code? is the hex file generated size is the actual size? what is maximum percentage of the flash we should use?
Pratyush,
Yes, That is actual size. If you want to monitor the RAM or Flash uses at runtime, please take a look at this video:
https://www.youtube.com/watch?v=LwxwJjq2IEg
Thanks & Regards,
Santosh
I had made changes in code which leads to hex file of 230 kb, which I can't able to flash it to the controller. Mentioned controller is having 256 kb ,
- Is there any limitation to use full capacity of flash?
- Is there any reserve flash area for other peripherals?
- Is there any fixed percentage of flash can be flashed?
There is no limitation. You should be able to use full flash. Please check the linker command file for flash configuration. What is the error you are getting?
Also, please take a look at this thread. This faq post goes through all the details about flash configuration.
Hi Santosh,
I have a confusion on CCS memory allocation where it is showing Flash bank 0 and Flash bank 1 having 65534 kb each where in data sheet of TMS320F280049C having total 256 kb of flash.
1. Is there any reserve flash is there where we cant able to flash or see it in CSS.
2. If my code is will over flow from bank 0, will it link to bank 1 or it will throw a error cant be flashed? if this is occur how can we merge 2 banks to single bank for flashing ?
I added up a Screenshot of the memory allocation block.
Pratyush,
There will be linker error is the output section is more than memory available. There is a way to split the output section in multiple memory ranges. Please take a look at this link to understand:
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
Thanks & Regards,
Santosh