Hi William, I regularly use following: WORD at 0x2007 __CONFIG = _CP_OFF & _WDT_OFF & _BODEN_ON & \ _PWRTE_ON & _HS_OSC & _CPD_OFF; for PIC12F and PIC16F lines, and following: code char at 0x300000 CONFIG1L = 0x24; // USB, /2 post (48MHz), /5 pre (20 MHz) for PIC18F line.
Best Regards, Vaclav > ------------ Původní zpráva ------------ > Od: William Fletcher > Předmět: [Sdcc-user] configuring microchips in the really high memory spaces > Datum: 08.9.2009 05:03:29 > ---------------------------------------- > Hi all, > I have been meaning to ask this for a while. > > > > Anyone know how to get microchip config information into the source code ? > Using: const uint16__at (0x30000) <configword> ... > doesn't seem to work for this chip (some sort of assertion failure > when making the*.lst file) > This does work for chips that have the config bytes at the end of > program memory. > i.e const uint16__at (0x8000) <configword> ... > > > Current Workaround: > I import the *.cod file into Mplab then set the configuration > manually, them program, then read back and save the *.hex file for > production. > > Thanks in advance. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user