At 15.02 2012.06.05, you wrote: >My thought first too but then I looked in the assembler examples in the MP= LAB=20 >C32 Suite which indeed does include ".h" files. Yes, there are A LOT of defines in the ASM sources of PIC32. PS: for example, take a look at the assembly source crt0.S It #include (but that # is a comment for the assembler!!) then = uses e.g. register k0 and _CP0_STATUS (just to name two) which without p32xxxx.h= will generate errors (k0 doesn't exist natively for the assembler, it's either $= k0 or $26, and _CP0_STATUS either, it's a macro that expands to $11,0). So in order to use the assembly sources for the PIC32 you see around, or ev= en crt0.S, p32xxxx.h must be really included.. yes I now see it's a C source, = this is really puzzling. :( However, are you able to assemble lines of code like this? (not in C inline= asm, but in a separed asm source file that you like with your other C object fil= es): mfc0 k0,_CP0_STATUS if you do, then p32xxxx.h has been someway included, else the only syntax t= hat works for the assembler would be either: mfc0 $k0,$11,0 or mfc0 $26,$11,0 that's "native" (i.e. without defines or macros) MIPS32 assembly. ;) NOTE: SREGs are linked as memory locations, they are not part of the includ= e's. With kind regards, Mario > >/Ruben > >> At first it seemed that you were using C, but now it is clear that you >> are using assembly. >>=20 >> The files with extension ".h" are intended for the C language, the >> assembler will not understand them. >>=20 >>=20 >> Isaac >> =20 >>=20 >>=20 >> Em 5/6/2012 08:24, Electron escreveu: >> > PS: it appears that: >> > >> > #include >> > >> > is not even included, as # is used for comments (!).. but if I open th= e >> p32xxxx.h >> > file with a text editor I can see that is full of such #include's=20 >.. this is >> puzzling: >> > different assembler is in use, options, or what? >> > >> > Thanks, >> > Mario >> > >> > >> >> Hello, >> >> I've tried as: >> >> >> >> #include >> >> >> >> and >> >> >> >> #include "p32xxxx.h" >> >> >> >> and >> >> >> >> .include >> >> >> >> and >> >> >> >> .include "p32xxxx.h" >> >> >> >> but it doesn't include it.. it includes it only if I use the full pat= h=20 >> >> and use / instead of \ (I'm on a Windows machine), but then it fails= =20 >> >> on the sub-includes of course. >> >> >> >> I've Set The Language Tool Locations, default search path for=20 >> >> Assembler Include, where p32xxxx.h is physically located ( in my=20 >> >> system it is C:\Utility\Coding\MPLab\MPLAB C32 Suite\pic32mx\include = )=20 >> >> with and without a trailing ; but it doesn't include it. :( >> >> >> >> What can I do more? >> >> >> >> Thanks, >> >> Mario >>=20 >> --=20 >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >Ruben J=F6nsson >AB Liros Electronic >Box 9124 >200 39 Malm=F6 Sweden >www.liros.se >Tel +46 40142078 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >--=20 >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .