Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Arduino Due (Read 10298 times)
Wayne MxKind
Newbies
*
Offline


Posts: 6
Joined: May 15th, 2013
Arduino Due
May 29th, 2013 at 12:23pm
Print Post  
I have tried to use Debugger with the Arduino Due micro. But I have not succeeded to download the program, because the avrdude 1.5.2 does not recognize the cortex-s3 processor. Has somebody added this processor to avrdude.conf?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Due
Reply #1 - May 29th, 2013 at 4:23pm
Print Post  
Hi Wayne,

You need 1305.21 of visual micro from our DOWNLOADS (Beta Channel) on codeplex to compile Due and 1.5.2 . 


However 1.5.2 support is still beta for another week or so, the debugger should also be supported by then.

Thanks

  
Back to top
IP Logged
 
Wayne MxKind
Newbies
*
Offline


Posts: 6
Joined: May 15th, 2013
Re: Arduino Due
Reply #2 - May 29th, 2013 at 5:50pm
Print Post  
The problem is that even the version 1305.21 uses avr-dude.exe. It should use bossac.exe to program the Arduino Due.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Due
Reply #3 - May 29th, 2013 at 7:32pm
Print Post  
For upload it uses whatever is defined in the arduino boards.txt entry for the board you select, which "Due" board are you selecting from the boards list?.

Can you please confirm that tools>options>visual micro>application locations>arduino is set to the path to arduio 1.5.2

Please also switch on Tools>options>visual micro>compiler>verbose and email the output to info [at] visualmicro.com. 

Please check the dates of the dlls in the visual micro program files folder, they should all be roughly the same date/time?

Thanks
« Last Edit: May 29th, 2013 at 7:33pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Dennis Hill
Junior Member
Developer
**
Offline


Posts: 20
Location: US
Joined: Mar 24th, 2013
Re: Arduino Due
Reply #4 - May 29th, 2013 at 7:59pm
Print Post  
I have a Due and all works well except the int's.

Debug can get a bit shady when working with the Due timers too.
  
Back to top
 
IP Logged
 
Wayne MxKind
Newbies
*
Offline


Posts: 6
Joined: May 15th, 2013
Re: Arduino Due
Reply #5 - May 30th, 2013 at 4:55am
Print Post  
The board is Arduino Due (Programming port). It works fine with the program bossac.exe, which one Arduino system uses to program the Due version. Visual Micro system uses avrdude.exe. The output is listed here:

n/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 uino_due_x/linker_scripts/gcc/flash.ld" _due_x_dbg/HelloWorld.map" -o g/HelloWorld.elf" dbg" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group g/syscalls_sam3.c.o" g\HelloWorld.cpp.o" g\LiquidCrystal\LiquidCrystal.cpp.o" no_due_x/libsam_sam3x8e_gcc_rel.a" g/core.a" -Wl,--end-group
n/arm-none-eabi-objcopy" -O binary g/HelloWorld.elf" g/HelloWorld.bin"
Binary sketch size: 11048 bytes (2% of a 524288 byte maximum) (0.32 secs)
Uploading to I/O board using 'arduinoisp'
"C:\temp\arduino-1.5.2-windows\arduino-1.5.2\hardware\tools\avr\bin/avrdude" nf" -v -v -v -v -pcortex-m3 -cstk500v1 -P\\.\COM17 -b9600 o_due_x_dbg\HelloWorld.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "

avrdude: AVR Part "cortex-m3" not found.

Valid parts are:
  t10  = ATtiny10        [C:\temp\arduino-1.5.2-windows\arduino-1.5.2\hardware/tools/avr/etc/avrdude.conf:16880]
  t9   = ATtiny9         [C:\temp\arduino-1.5.2-windows\arduino-1.5.2\hardware/tools/avr/etc/avrdude.conf:16836]
  t5   = ATtiny5         [C:\temp\arduino-1.5.2-windows\arduino-1.5.2\hardware/tools/avr/etc/avrdude.conf:16792]
  
Back to top
 
IP Logged
 
Dennis Hill
Junior Member
Developer
**
Offline


Posts: 20
Location: US
Joined: Mar 24th, 2013
Re: Arduino Due
Reply #6 - May 30th, 2013 at 1:17pm
Print Post  
Tim@Visual Micro wrote on May 29th, 2013 at 7:32pm:
For upload it uses whatever is defined in the arduino boards.txt entry for the board you select, which "Due" board are you selecting from the boards list?.


If you select "Due" from the boards list it should upload using bossac.exe. Mine does; here is a screenshot:
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Due
Reply #7 - May 30th, 2013 at 2:50pm
Print Post  
Hello,

Please UnTick "Tools>Upload using Programmer"

Because you have ticked this menu item the upload is re-routed to the selected programmer which you have set as ArduinoISP which will attempt to use avrdude.

Thanks
  
Back to top
IP Logged
 
Wayne MxKind
Newbies
*
Offline


Posts: 6
Joined: May 15th, 2013
Re: Arduino Due
Reply #8 - Jun 1st, 2013 at 6:07am
Print Post  
Thanks a lot. Now the debugging works. The Arduino Due version has enough memory for this system.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint