I have two issue
1. In FreeFRTOS’ documentation to demo PIC24 is:
As with all the ports, it is essential that the correct compiler options are used. The best way to ensure this is to base your application on the provided demo application files. In particular the ‘Omit Frame Pointer’ option within the MPLAB C30 optimisation dialogue must be checked.
But when I open demo in version 5.1.1 and 5.1.2 I see options:
"-fno-omit-frame-pointer -g -Wall -DMPLAB_PIC24_PORT -mlarge-code -mlarge-data -O1 -fno-schedule-insns -fno-schedule-insns2"
so we have "NO" omit-frame-pointer… (-fno-omit… vs. -f-omit… ) it seems be confusing a little bit.
Which is correct?
2. Assuming -fno-omit-frame-pointer is correct what is reason to use that option?
I am asking for just academic reason, I suspect is something connected with context switch? I try understand limitations of this port.
From documentation of compiler for example instrict function: __builtin_return_address can not use -fomit-frame-pointer, but not other warnings or limits in documentation (DS51284H).