Page 1 of 1
Assembler and options
Posted: Tuesday 26. March 2013, 03:22
by agreenhill
Apologies if this topic has already been posted. I’m trying to build the code using MPASM v5.46 (from MPLAB IDE v8.86) and it fails to build ADC_RTC.asm complaining of labels not defined, symbols not defined, etc.. I have had a little experience with PICs, but have never used multiple assembly files. Is there some trick to get the assembler to check all files before failing? Am I not using the correct assembler or are there some options I need to supply?
Re: Assembler and options
Posted: Tuesday 26. March 2013, 14:49
by heinrichsweikamp
Hi,
There are some files needed. Add only the main.asm to the source files, the others are included from the main. Make sure to add the linker script and the .lib files (Build options -> project -> Directories -> Library search path)
Regards,
Matthias
Re: Assembler and options
Posted: Tuesday 26. March 2013, 23:20
by agreenhill
Doh, should have checked that one. When I changed toolsuites to the C18 it automatically moved all the .asm files into the source folder! Thanks for that, all works well now.