Has anyone got ITCM working with GCC under STM32CubeIDE
Hi,
I have spent three days trying to put some real-time FIR filters into ITCM to speed things up.
I have been able to allocate the functions, copy the code from flash to ITCM in the start-up file, but when I run the system the ITCM memory gets changed for no apparent reason. If I single step through the parts where the ITCM memory changes, it doesn't change.
The functions work the first time through, but as the code is corrupted processor registers aren't initialized properly so I get hard faults.
The only working example I can find is one ported to Keil uVision which uses scatter files, much easier than that abominable gcc linker script.
I would post the results of my efforts, but that will take another day and I'm fed up with it.
I would just love to see a working example developed under STM32CubeIDE.
My functions are simple, self contained no input parameters. It shouldn't be hard. It isn't with uVision.
Can anyone help?
Best regards
Rob
