XC16 may use stack frame with lnk-ulnk that copies stack pointer W15 to W14. However, it may still use W14 in code and ulnk resulted in W15=0 for my code which (fortunately) caused a reset! Unchecking compiler option -g "Generate debug information" made l..
↧