I am programming in the MPLAB X IDE development environment
Use PIC microcomputer is PIC24FJ1024GB610.
When executed in debug mode, the LED will light up normally.
However, the LED does not light when writing hex file in normal mode.
LED control uses PIN_G13
What is on your MCLR pin?.
This needs a pull up resistor.
When in DEBUG mode, this pin is controlled by the debug hardware. When
in release mode, you need to pull it up. 22K to the supply.
What version of MPLAB X?. There have been (several) issues with particular
versions not correctly handling this on particular chips.
I would get rid of _all_ your clock setup fuses. You have several that seem
to conflict with one another. Just use #use delay to select the clock:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum