RE: gpasm extended mode -- MPLAB message
Sivaram Gowkanapalli <[email protected]> Fri, 3 Jun 2011 02:33:53 -0400
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
--_7a8be7db-9912-42a1-a251-2f1cfb60e507_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Marko=2C Added to bug tracker: http://sourceforge.net/tracker/?func=3Ddetail&aid=3D3= 310962&group_id=3D41924&atid=3D431665 ThanksSiva > Date: Fri=2C 3 Jun 2011 08:54:08 +0300 > Subject: Re: gpasm extended mode -- MPLAB message > From: [email protected] > To: [email protected] >=20 > No. Comparing the COFF help file from MPASM 5.40 against gpcoff.h=2C > flags F_ABSOLUTE and F_EXTENDED18 seem to be missing from the COFF > file headers. Maybe Microchip has added them at some point but gputils > has not been updated. These changes in COFF may be part of the changes > Microchip did while they stopped using COD files. >=20 > I think you should add this to the tracker at sourceforge. If not a > patch with test cases=2C a bug report at least. >=20 > Marko >=20 > On Fri=2C Jun 3=2C 2011 at 8:14 AM=2C Sivaram Gowkanapalli > <[email protected]> wrote: > > > > Hello=2C > > > > I built the below file with gpasm and gplink. > > > > But=2C when I import the test.cof file into MPLAB=2C MPLAB > > complains with a message of "The Extended CPU Mode Configuration > > bit is enabled=2C but the program that was loaded was not built using e= xtended > > CPU instructions. Therefore=2C your code may not work properly" > > > > I used the --extended flag with gpasm and alos used the latest svn vers= ion > > of gpasm. Just wanted to check if the extended mode of gpasm actually w= orks. > > > > =3B =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D test.asm begin > > =3B Build commands > > =3B gpasm --extended --object test.asm > > > > =3B gplink --map --object --output test.hex test.o > > =3Bmessage: using default linker script "/usr/local/share/gputils/lkr/1= 8f4455.lkr" > > > > errorlevel 0 > > list p=3D18f4455 =3B set processor type > > list n=3D0 =3B supress page breaks in list file > > include <p18f4455.inc> > > include <coff.inc> > > =3B Instruction set extension and Indexed Addressing mode enabledd > > CONFIG XINST =3D ON > > > > vars udata 0x00 > > _temp res 1 > > > > RESET_VECTOR CODE 00000h =3B Reset and Interrupt Vectors > > pagesel start > > goto start > > MAIN CODE > > global start > > start > > > > lfsr 2=2C 0xff > > movlw 0xff > > =3Bmovff WREG=2C_temp > > movwf _temp=2CACCESS > > incf _temp=2CF=2CACCESS > > incf _temp=2CF=2CACCESS > > incf _temp=2CF=2CACCESS > > pushl 0x1 > > > > end > > =3B=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D test.asm end > > > > Thanks > > Siva > > >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: [email protected] > For additional commands=2C e-mail: [email protected] >=20 = --_7a8be7db-9912-42a1-a251-2f1cfb60e507_--