I recently discovered the mystery why I can't have the delay_ms function work is because my compiler optimization is on and I should turn it off; however, I encounter error messages after building the whole code... What should I do, I really need the delay_ms function at the same time avoiding compromise in the other code...