It seems that the LUT component is not working either. Instead of a sine wave, it produces a random output. An up-down counter produces a triangular signal at the output of the PWM.
Can you post a simple project file that demonstrates this issue and we will investigate.
Since the last update (PIC_CAL_SPI.c), the compiler crashes with an error message.
What error message are you getting, again can you provide a project file and the .msg.txt file that is generated so we can investigate.