gpasm extended mode -- MPLAB message
Sivaram Gowkanapalli <[email protected]> Fri, 3 Jun 2011 01:14:00 -0400
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
--_3960fe9d-3560-4cc3-8802-51e1bc11e437_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C I built the below file with gpasm and gplink.=20 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 exten= ded=20 CPU instructions. Therefore=2C your code may not work properly" I used the --extended flag with gpasm and alos used the latest svn version= =20 of gpasm. Just wanted to check if the extended mode of gpasm actually works= . =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/18f44= 55.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 = --_3960fe9d-3560-4cc3-8802-51e1bc11e437_--