Assembler and options

Legacy OSTC's
Post Reply
agreenhill
Posts: 2
Joined: Tuesday 26. March 2013, 03:03

Assembler and options

Post 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?
heinrichsweikamp
Posts: 4446
Joined: Sunday 13. May 2007, 18:07

Re: Assembler and options

Post 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
agreenhill
Posts: 2
Joined: Tuesday 26. March 2013, 03:03

Re: Assembler and options

Post 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.
Post Reply