When I run it with above codes, led blinky in 500 second, not 500 milisecond.
when I have noticed that, I changed Delay_us(500) instead of Delay_ms(500). That was true.
As a result, I dont know how to solve this problem. I think osillator settings may be wrong.
In addition, at the screenshot above there is configured a value for the watchdog timer. I'm not familiar with this IDE, but you should check if this implies on activating it.