First of all I need to say I develop application for embedded device based on cortex m4.
I have functions that are common for bootloader and main application. For now I compile source files 2 times once for bootloader and app. But I am running short on space for dual bank dfu and I would like to have those functions only once in ROM. Any idea how can I achieve this?
EDIT:
Using functions pointers maybe danger in some cases, check on my problems - Using pointer functions - 2 seperate applications on 1 device