Skip to content

Add -DMPIDE=23 Pre-Processor Option for gcc and g++ #227

Closed
rei-vilo opened this Issue May 31, 2012 · 2 comments

2 participants

@rei-vilo

Either

  • Replace -DARDUINO=23 by -DMPIDE=23

or

  • Add -DMPIDE=23 along -DARDUINO=23

for gcc and g++ as in

/Applications/Mpide.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++    
-c  -g  -Os  -w  
-fno-exceptions  -ffunction-sections  -fdata-sections  -mmcu=atmega328p  -DF_CPU=16000000L  
-DARDUINO=23  -DARDUINO=     
-I/var/tmp/sketch_may31a   
-I/Applications/Mpide.app/Contents/Resources/Java/hardware/arduino/cores/arduino    
/var/tmp/sketch_may31a.cpp  
-o  /var/tmp/sketch_may31a.cpp.o
@rei-vilo
rei-vilo commented Jun 1, 2012

Editing boards.txt and changing

uno_pic32.compiler.define=-Danything_you_want::-Danything=1

for

uno_pic32.compiler.define=-DMPIDE=23

don't seem enough.

New compiling trace still shows -DARDUINO=23 as in

/Applications/mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  
-O2  -c  -mno-smart-io  -w  -fno-exceptions  -ffunction-sections  -fdata-sections  -G1024  -g  -mdebugger  
-Wcast-align  -mprocessor=32MX320F128H  -DF_CPU=80000000L  
-DARDUINO=23  -D_BOARD_UNO_  -DMPIDE=23   
-I/Applications/Mpide.app/Contents/Resources/Java/examples/1.Basics/Blink   
-I/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32   
-I/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/variants/Uno32    
/var/tmp/Blink.cpp  -o  /var/folders/95/

Where does the -DARDUINO=23 come from?

@rei-vilo
rei-vilo commented Jun 1, 2012

See #230 Partial Fix for Add -DMPIDE=23 Pre-Processor Option for gcc and g++

@ricklon ricklon closed this Jun 4, 2012
@KeithV KeithV pushed a commit that referenced this issue Mar 21, 2014
@rei-vilo rei-vilo See #227 Add -DMPIDE=23 Pre-Processor Option for gcc and g++
Former-commit-id: fdf1028
6dad669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.