Ok, so I did that. I also had to have a custom error suppressantt added to my build options, so I now use the "User alternate settings" function. So to add a macro, I found out that I needed to append -D_MACRO_NAME to my build options. My total build options are now
Code:
-D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
But now I get the error
Quote:
Executing: "C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe" /l"c:\mcc18\lib" "18f8520.lkr" "C:\FIRST\code\camera.o" "C:\FIRST\code\ifi_startup.o" "C:\FIRST\code\ifi_utilities.o" "C:\FIRST\code\main.o" "C:\FIRST\code\serial_ports.o" "C:\FIRST\code\terminal.o" "C:\FIRST\code\tracking.o" "C:\FIRST\code\user_routines.o" "C:\FIRST\code\user_routines_fast.o" "C:\FIRST\code\FRC_alltimers.lib" "C:\FIRST\code\FRC_alltimers_8520.lib" "C:\FIRST\code\FRC_library.lib" "C:\FIRST\code\FRC_library_8520.lib" /o"FRC.cof"
MPLINK 3.50, Linker
Copyright (c) 2003 Microchip Technology Inc.
Assertion failed: 0, file ..\..\mplink\LanguageToolShared/mgproc.c, line 873
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
|
Any idea of what's wrong now?