Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC24FJ128 Build failed :fake: undefined reference to 'main'

Status
Not open for further replies.

SNTT

Newbie level 1
Joined
Oct 14, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
PIC24FJ128GA006

Urgent!!! Help!!! I am new to PIC24, using MPLAB8.10 with Microchip C30 Toolsuite Microchip ASM30 Assembler (pic30-as.exe) to build my assembly source code, but Build failed...
c:/program files/microchip/mplab c30/bin/bin/../../lib\libpic30-coff.a(crt0_standard.o)(.init+0x1c):fake: undefined reference to `main'
Link step failed.

I put only 3 line in my assembly source code:
MOV.B #0X1E, W1
MOV.B #0X84, W1
MOV.B #0X80, W1

I have no idea why I got this error.
Do I miss out any important setting?
Is it because of my MPLAB version or my language toolsuite do not match or support PIC24?
Or, because I didn't put any configuration in my assembly source code?

In the MPLAB project, I did select PIC24F128GA006 under configuration device and include the header file p24FJ128GA006.h and p24FJ128GA006.inc. The linker script p24FJ128GA006.gld also added.

Is there any ways to solve the 'undefined reference to 'main''???
Please help.....:cry::cry:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top