cyrusthevirus
New Member
Program works fine in debug mode, but not in release mode - Where do I start?
So I created a very simple program that just turns on a LED. It works fine in debug mode, but does not work in release mode. I verified the code and stillno luck. I am using a PIC24 on MPLAB.
Any thoughts?
So I created a very simple program that just turns on a LED. It works fine in debug mode, but does not work in release mode. I verified the code and stillno luck. I am using a PIC24 on MPLAB.
Any thoughts?
Code:
//***************************************************/
// Include Header File
//***************************************************/
#include "p24FJ128GA110.h"
//***************************************************/
int main (void)
{
//ANi as digital I/O
AD1PCFGH = 0xFFFF;
AD1PCFGL = 0xFFFF;
TRISB=0b00000000;;
while(1) //run clock
{
LATBbits.LATB6 = 1;
}
}
//end of code
Last edited: