Hi again, neverminds.. I had a .C and a .S file with the same name (actually v001.C a= nd v001.S), the system was creating two .o files, overwriting the second, c= ausing this fault. MPLAB should warn the user in this case in my opinion.. Anyway, it's solved now. Many thanks anyway :D I hope it's useful to somebody else thus I'm reportin= g my experience. Cheers, MarI/O >Hi, >I'm trying to set up a Workspace to do some MPLAB SIM sessions on a=20 >virtual PIC32 to experiment with this MPU both in asm and C. > >When I have created the Workspace, I did these steps: > >Project Wizard > Next >Device PIC32MX460F512L >Active Toolsuite: Microchip PIC32 C-Compiler Toolsuite >I enabled Store tool locations in Project >Next >Create New Project File (I specified the path and filename) >Then I created and added two blank source files, one .S and the other .C >I've put in the .C one this small source: > >--- > >#include > >int main(void) { > return 0; >} > >--- > >If I build as a library then no errors, but if I build as a normal=20 >target I get: > >---------------------------------------------------------------------- >Debug build of project `C:\Coding\PIC32\v001.mcp' started. >Language tool versions: pic32-as.exe v1.12, pic32-gcc.exe v1.12,=20 >pic32-ld.exe v1.12, pic32-ar.exe v1.12 >Preprocessor symbol `__DEBUG' is defined. >Sun Oct 23 15:33:21 2011 >---------------------------------------------------------------------- >Clean: Deleting intermediary and output files. >Clean: Deleted file "C:\Coding\PIC32\v001.o". >Clean: Done. >Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe"=20 >-mprocessor=3D32MX460F512L -c -MMD -MF"v001.d" -D__DEBUG "v001.S"=20 >-o"v001.o" -Wa,--defsym=3D__DEBUG=3D1 >Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe"=20 >-mprocessor=3D32MX460F512L -x c -c "v001.C" -o"v001.o" -MMD -MF"v001.d"=20 >-D__DEBUG -g >Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe"=20 >-mprocessor=3D32MX460F512L "v001.o" "v001.o" -o"v001.elf"=20 >-Wl,-L"C:\Programmi\MPLab\MPLAB C32=20 >Suite\lib",-L"C:\Programmi\MPLab\MPLAB C32=20 >Suite\pic32mx\lib",--defsym=3D__MPLAB_BUILD=3D1,--defsym=3D__MPLAB_DEBUG= =3D1,- >Map=3D"v001.map" >v001.o: In function `main': >C:\Coding\PIC32/v001.C:34: multiple definition of `main' >v001.o:C:\Coding\PIC32/v001.C:34: first defined here >Link step failed. >---------------------------------------------------------------------- >Debug build of project `C:\Coding\PIC32\v001.mcp' failed. >Language tool versions: pic32-as.exe v1.12, pic32-gcc.exe v1.12,=20 >pic32-ld.exe v1.12, pic32-ar.exe v1.12 >Preprocessor symbol `__DEBUG' is defined. >Sun Oct 23 15:33:22 2011 >---------------------------------------------------------------------- >BUILD FAILED > >Any help please? I want to play with the PIC32 simulator :-) > >I actually have a Starter Kit board too, but I wanna start from=20 >scratch, and not using that board, but the MPLAB SIM. > >Thanks a lot. > >Cheers, >Mario --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .