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.

[SOLVED] Proteus 8.1 Arduino Error in compiling

Status
Not open for further replies.
i just use BareboneArduino.DSN and programmed his Atmega328 with Arduino BLINK Example(Attached)
but when compiling herein message appear:
mksketch -C pro328 -N atmega328p -F 8000000 -A "../../../../../../Program Files/Arduino" -O main.cpp ../main.ino
make -f arduino/Makefile all
make[1]: Entering directory `C:/Documents and Settings/beh/Desktop/New Folder/ATmega328P/Debug'
avr-gcc -w -ffunction-sections -fdata-sections -DARDUINO_ARCH_AVR -DF_CPU=8000000 -DARDUINO=105 -mmcu=atmega328p -Iarduino -Os -o arduino/abi.o -c arduino/abi.cpp
ar ru arduino/arduino.a arduino/abi.o
avr-gcc -w -ffunction-sections -fdata-sections -DARDUINO_ARCH_AVR -DF_CPU=8000000 -DARDUINO=105 -mmcu=atmega328p -Iarduino -Os -o arduino/CDC.o -c arduino/CDC.cpp
ar: creating arduino/arduino.a

In file included from arduino/Arduino.h:247,
from arduino/USBAPI.h:33,
from arduino/CDC.cpp:19:
arduino/pins_arduino.h:25:38: error: ../standard/pins_arduino.h: No such file or directory

make[1]: Leaving directory `C:/Documents and Settings/beh/Desktop/New Folder/ATmega328P/Debug'
make[1]: *** [arduino/CDC.o] Error 1
make: *** [main.cpp] Error 2

Error code 2
 

Attachments

  • New Folder.rar
    20.7 KB · Views: 121

Just Let Proteus install old version of Arduino. Then click Check and Check All buttons. Then try to compile the code in Proteus but don't include and header files. I tried without header files and it worked. If Arduino installed by Proteus is replaced by latest version then it won't work. I tried it. Maybe the path of make file is different.
 

Windows 8.1 x64
1. Copy All files from Proteus Arduino directory to Arduino IDE directory (from c:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\Tools\Arduino to c:\Program Files (x86)\Arduino)
2. Run Proteus
3. Click Source Code icon to open source code window
4. Go to System, then Compilers Configuration.
5. Set cursor on row Arduino AVR
6. Click button Manual
7. Select Arduino IDE directory
6. Enjoy
tested on Arduino IDE 1.6.4
 

The problem solved after installing Arduino 1.5.3 instead of update version 1.6.3. May be newer versions is not stable enough!!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top