Hello,
my project becomes more complicated, and require more program memory. I already optimized everything that I can in my code: wrapped my code and SPI, DMA and interrupts files with pragma -Ofast, and let other be optimized by size, but it is not enough for me.
I know that SDcard that I am using, take a lot of functions (according to *.sym) and all these functions take some ITCM memory. In addition I am planning to use LittleFS, USB and Ethernet server that will take next blocks of fast memory.
So, I need a tool to place library functions into flash. I understand that I can go over all core and library and place FLASHMEM before each function.
Please, tell me is there any more clever way, like place any pragma for FLASHMEM at the first like of file to force all entries to go to FLASHMEM, or, any other way?
Thank you!
my project becomes more complicated, and require more program memory. I already optimized everything that I can in my code: wrapped my code and SPI, DMA and interrupts files with pragma -Ofast, and let other be optimized by size, but it is not enough for me.
I know that SDcard that I am using, take a lot of functions (according to *.sym) and all these functions take some ITCM memory. In addition I am planning to use LittleFS, USB and Ethernet server that will take next blocks of fast memory.
So, I need a tool to place library functions into flash. I understand that I can go over all core and library and place FLASHMEM before each function.
Please, tell me is there any more clever way, like place any pragma for FLASHMEM at the first like of file to force all entries to go to FLASHMEM, or, any other way?
Thank you!