Problem with pointer on ARM Cortex M4
This sounds like a simple case of bad linking, because some of your object files aren't up to date, while the prototype of the function has changed.

Try clean away all your .o-files, and rebuild your source.