Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
rei-vilo opened this Issue · 2 comments

2 participants

Rei Vilo Ricklon
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

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

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

Ricklon ricklon closed this
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.