How to place some functions from precompiled library (eg. Crypto supplied by ST) into TCMs?
I would like to place some of the functions of ST Crypto library (cmox_crypto) into the ITCM to increase the performance on STM32H750x MCU. I would also like to place some of the associated data (tables) into ITCM or DTCM. However, the functions are provided in the precompiled library (*.a), and code is in .text section. I can place the entire .text into ITCM through linker script, but I'd like to do it selectively and only for some functions.
Will attaching the __attribute__((section(".itcm_text"))) to the functions prototypes in *.h files work?
Even if it does, there are many nested calls there and modifying all references is difficult. Does anyone know a better way of assigning sections to symbols through some linker directives or a script file?
What is the best way to do the same for data?
