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.

Building error with dsPIC33F

Status
Not open for further replies.

SaraENG

Newbie level 6
Newbie level 6
Joined
Feb 4, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
94
Hello,

I'm working with a dsPIC33F and I'm trying to build a simple project, however I keep getting this error:




Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\g00041723\Desktop\piclab.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPLAB C32 Suite\bin\pic32-gcc.exe" -mcpu=33FJ256GP710A -x c -c "leds.c" -o"leds.o" -D__DEBUG -g -Wall
cc1.exe: error: invalid option `-mcpu=33FJ256GP710A'
Halting build on first failure as requested.




Does anyone have any idea what does this mean and how to fix it?
 

Heya Sara,

It seems you've selected the wrong compiler. The pic32 compiler can't target (i.e. doesn't know about) the 16 bit dsPIC33F family, and hence the cryptic error whinging about the selected CPU after the '-mcpu' directive.

Depending on the version of MPLAB you're running, you select the appropriate compiler/toolchain under (something like) Project/Select Language Toolsuite. For the dsPIC33F series (and assuming you're using the microchip tools), you'll need either the "C30" compiler installed and selected (for the old MPLAB environment) or the "MPLAB XC16" compiler for the newer MPLAB X IDE. All of which is ('generously'..? ;) available from free on the microchip website.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top