As a check used "//" to commented out the #pragma statements and still out of sync. 2009/12/28 Justin Richards : > Sometimes using the sim in MPLAB the program pointer arrow is out of > sync with the code that is about to be executed. > > Often this is fixed with a "Build All" or a restart of MPLAB. > > But now it is consistently 2 lines out. =A0ie The Program pointer is > pointing 2 lines above the actual code that is executing. > > I recently added the following so I could increase the size of a > structure and as there are two #pragma directives it seemed to be the > culprit. =A0The structure is pasted below. > > Very frusting, anyone experienced this or know a fix. > > Cheers Justin > > > #pragma idata App_Conf_Section > //The pragma fixes the following error > //Error - section 'App_Conf_Section' can not fit the section. Section > 'App_Conf_Section' length=3D0x00000114 > //I can now use all 256 bytes in the config section of EEPROM > > APP_CONFIG AppConfig > ; > #pragma idata Remaining_Sect > //The pragma fixes this error > //Error - section 'App_Conf_ > > > > typedef struct _APP_CONFIG > { > =A0 =A0IP_ADDR =A0 =A0 MyIPAddr; > =A0 =A0MAC_ADDR =A0 =A0MyMACAddr; > =A0 =A0IP_ADDR =A0 =A0 MyMask; > =A0 =A0IP_ADDR =A0 =A0 MyGateway; > =A0 =A0IP_ADDR =A0 =A0 PrimaryDNSServer; > =A0 =A0struct > =A0 =A0{ > =A0 =A0 =A0 =A0unsigned char bIsDHCPEnabled : 1; > =A0 =A0 =A0 =A0unsigned char bInConfigMode : 1; > =A0 =A0} Flags; > =A0 =A0IP_ADDR =A0 =A0 SNTPServerAddr; > =A0 =A0WORD =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0HTTP_PORT; > =A0 =A0WORD_VAL =A0 =A0SerialNumber; > =A0 =A0IP_ADDR =A0 =A0 SMTPServerAddr; =A0 =A0 // Not used. > =A0 =A0IP_ADDR =A0 =A0 TFTPServerAddr; =A0 =A0 // Not used. > =A0 =A0BYTE =A0 =A0 =A0 =A0NetBIOSName[16]; > =A0 =A0 =A0 =A0cj =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CronJob[8]; > =A0 =A0 =A0 =A0BYTE =A0 =A0 =A0 =A0 =A0 =A0tz_offset; > =A0 =A0 =A0 =A0BYTE =A0 =A0 =A0 =A0 =A0 =A0tz_text[4]; > =A0 =A0 =A0 =A0BYTE =A0 =A0 =A0 =A0 =A0 =A0LCDMsg[2][16]; > =A0 =A0 =A0 =A0BYTE =A0 =A0 =A0 =A0 =A0 =A0BeatServerURL[25]; //www.pickl= edeye.com > =A0 =A0 =A0 =A0WORD =A0 =A0 =A0 =A0 =A0 =A0HeartBeatDelay; > } APP_CONFIG; > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist