You are on page 1of 7

6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun

About
Recent Works Are On http://thinkcreate.us/
search
skip to content ↓

Think Create | Deqing Sun


My ideas, researches and gadgets

Home
My gadgets
Uncategorized

Debug Arduino with Proteus


by seer on Oct.17, 2011, under Uncategorized

Arduino is easy to use. But it may be hard to debug. Here is a simple tutorial of debugging it in Proteus.

Arduino IDE can generate hex and elf files of the sketch in verifying process. But in default they will be built in the temporary
folder of the system which is hard to be found. I found a way to change the build path of the Arduino to make it much easier to
be found.

First the actual location of the preference file is described in another preference file in “arduino IDE path/lib/preferences.txt”. I
think the Arduino just inherits it from processing, so the location described is the Processing’s one. But Arduino’s file is in the
similar path.

Then open the right preferences file. And add the build path you want.

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 1/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun

Then the build file of the sketch will appear here.

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 2/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun

So we can create a Proteus project and add an ATmega328. Set the program file correctly and adjust the clock frequency to
16M.

Finally you can start you project, switch file to your sketch and set breakpoints as you wish to debug the program freely.

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 3/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun

Update: BareboneArduino in Proteus from Cooper Maa

9 Comments for this entry

Sugianto
February 1st, 2012 on 3:32 am

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 4/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun
Where could I get the arduino files?
I download arduino proteus design from tinyurl.com/3lncep3 then I open it using Portable Porteus Professional 7.6 and I
run it, but it shows error like this:

x Unable to open HEX file ‘Blink\Blink.cpp.hex’


! [AVR LOAD] No program code loaded
x Real Time Simulation failed to start

could you help me?

seer
February 1st, 2012 on 1:43 pm

edit setting of the AVR chip by double click it. Compile your Arduino project and find the hex file, then change the file
location in Proteus to it.

Sugianto
February 8th, 2012 on 9:36 pm

Yeah it works!
Thank you!
Anw for any of you wants to download the software full and clear step by step here
:http://www.4shared.com/file/DAUDcW80/Proteus_78.htm

Sugianto
February 8th, 2012 on 9:55 pm

But why I cannot design it in ARES?


After I compile and simulate in Proteus, it cannot be saved….

Sugianto
February 8th, 2012 on 10:01 pm

Do you have any idea why it cant be saved?

serjio
April 25th, 2012 on 6:13 am

what about running proteus on mac?

seer
April 26th, 2012 on 9:37 am

PlayonMac can run Proteus perfectly.

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 5/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun

vickra
December 7th, 2014 on 8:38 pm

hey, i have 1 quest,


what language in avr and language arduino is same?.

i want to study about arduino procesing until work.. are you have easy circuite example to start study,, maybe is circuite
to controlling 4 motor servo. thanks..

vickra
December 7th, 2014 on 8:39 pm

make Atmega 8535

Leave a Reply

Name (required)

Mail (will not be published) (required)

Website

Leave comment

No soy un robot
reCAPTCHA
Privacidad - Condiciones

RSS feed for this post (comments) TrackBack URI

Hi! Welcome to Think Create | Deqing Sun!


Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the
RSS feed. See ya around!

My Portfolio

Recent Posts
Import data from spreadsheet to quickbooks with emulated keypress
Debug STM32 with VScode
nRF51822 with Arduino development
WebBluetooth With CC2541
Blink an LED the hard way
Phosphorescent message card
Google Glass controlled flashlight
Plastic push-in rivets fastened laser-cut box
ftdi processing

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 6/7
6/3/2020 Debug Arduino with Proteus « Think Create | Deqing Sun
Google glass talks to Arduino and Raspberry Pi

Browse by tags
Categories
My gadgets
Uncategorized

Meta
Log in
Valid XHTML

Looking for something?

Use the form below to search the site:

Search keywords Find it

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll
A few highly recommended websites...

IndarKness
My flickr

Archives

All entries, chronologically...

August 2017
July 2017
November 2016
November 2014
February 2014
December 2013
November 2013
October 2013
July 2013
January 2013
October 2012
May 2012

Powered by WordPress. Theme: Pixel. Sweet icons by famfamfam. Back to top ↑

www.thinkcreate.org/index.php/debug-arduino-with-proteus/ 7/7

You might also like