AnsweredAssumed Answered

Modyfing/replacing C funtion during STM32 work

Question asked by k.jakub on Dec 17, 2012
Latest reply on Dec 17, 2012 by Clive One
I'd like to implement simple DSP job on my STM32F4 discovery board. I wish to have possibility to change it during STM32 work without flashing program memory. Can I do that?

It's like I compile some C funtion to my library, send it to target (via usb), who will update/substitute DSP processing function to the new one saving in into the SRAM. C language recognise function as an address of its beginning, right? I would implement like two SRAM spaces for two functions I will switch between them every time new one is completely copied into memory.

STM32 will constantly gather some input data (but NOT from USB-key), process it with my DSP function and sent it back to Codec that I will add to my target, don't worry about hardware now.

Outcomes