Show Posts
Pages: 1 2 3 [4]
46  Products / Arduino Due / Re: Atmel Studio With Arduino Due on: March 01, 2013, 03:48:23 pm
Hello arduino2012, I give you a fair warning. This stuff is not for the heart-fainted. The whole architecture of the software is totally different to the previous Arduinos like 328 amd Mega. While reading the data sheet (>1400 pages!) for the SAM3X8 even the single parallel IO scared the heck out of me. It took me several hours (working with AVR/PIC for some years now) to fully anderstand the rationale of the SAM I/O.

Not before the user has taken a approach of some in-depth programming, he realises what our italian overlords have created with the convinience of the Arduino IDE...
47  Products / Arduino Due / Re: Compiling Error for DUE, but not for MEGA ? on: March 01, 2013, 03:25:52 pm
This is the code of reent.h of Ver.1.5.2

Line 489..495 states:
/* Only built the assert() calls if we are built with debugging.  */
# if DEBUG
#  include <assert.h>
#  define __reent_assert(x) assert(x)
# else
#  define __reent_assert(x) ((void)0)
# endif


If the touch-stone "DEBUG" is omitted the compiler grumbles. Maybe a bug in your version because this feature hasn't been fully tested.
48  Products / Arduino Due / Re: Compiling Error for DUE, but not for MEGA ? on: March 01, 2013, 01:41:58 pm
c:\programme\arduino-1.5.2\hardware\tools\g++_arm_none_eabi\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/reent.h:490: error: #if with no expression

The Error is outside of your sketch. Head honcho g++ tells you that the file reent.h which is to be used for compiling code for the SAM3X is botched. So the message ensues. Have you messed in this file before?
This file is not used for the Atmega Mega so no error occur.




Hope this helps,

Transistorfips
49  Products / Arduino Due / Customizing Atmel Studio6 for the Due auto-erase bootloader on: February 27, 2013, 09:06:18 am
Hi guys,

because I want to use Atmel-Studio6 instead of the Arduino IDE (way to much restrictions for me ;-) I have built a little tool - a batch job which erases and flashes the Due automatically. So no more pushbutton work has to be done. Also the the functionality of Bossac is now embedded in the ATmel IDE toolbar.
Maybe someone can use this tool, too.

Howto:
1.Create a batch-file
Create a batch-file, name it Arduino_Due.bat
C&P these lines:

- - - - - - - - - cut here - - - - - - - - -
@echo Automatic erase-button for flashing Arduino Due with ATMEL-Studio, (c) Transistorfips 2013
@echo off
::Set COM port, filename + pathname for the file to be flashed.
::Example: set flashfile=C:\ARM_ARDUINO\Dir1\Dir2\debug\hello_world.bin


set flashfile=C:\ARM_ARDUINO\Versuch\Test2\GETTING-STARTED2\GETTING-STARTED2\Debug\GETTING-STARTED2.bin
set comport=%COM14
mode %comport%:1200,N,8,1,P
C:\bossa\bossac.exe --port=%comport% %flashfile% -U false -e -w -v -b  -R
- - - - - - - - - cut here - - - - - - - - -

Please read and follow the instructions in the batch file when using it. Unfortunately I haven't found a correct syntax for relative variables like $(ProjectDir)Debug\$(ItemFileName).bin or so. So the full path name must be hard coded instead. If you find out how to set a relative target name usable in a batch file then please let me know.



2.
Make a Directory c:\bossa. Copy the command line tool "bossac.exe" (not the file with the same name used by the windows version, this won't work) and the new batch file "Arduino_Due.bat" in the directory.




3. Embed the bootloader sequence in Atmel Studio6
Click Tools -> External Tools...
Select Title:
Bossa

Select Command:
C:\Bossa\Arduino_Due.bat
(make sure path, file etc is correct)

Atmel Studio has created a new item now, bossac can be used from the "Tools" menu. If you want to have a funky little button in the toolbar also (yes!!) then do step 4 additionally.




4. Make a new button for Atmel Studio
Find the "build toolbar" in the toolbar (the buttons the code is crunched with).
On the left edge right-click the arrow for the "build toolbar options". The pull-down menu appear.
Select "Customize..." In the pop-up window select the tab "commands".
Click the radio button for "Toolbar". Select "Build" from the corresponding drop-down menu.
Click "Add Command...".
In the left box, select "Tools" in the categories menu. The right box now is filled with selectable commands.
Find "External Command 1" and click it.

Now a new button in the build toolbar has been created and Bossac is ready to use. If you want to change the position inside the toolbar then re-open the command tab and use the up/down buttons for positioning. Be sure the appropriate item is selected.

http://img703.imageshack.us/img703/4779/buttonbossa2.jpg



Enjoy!
50  Products / Arduino Due / Re: SAM 3X8 + AVR_Studio + Hello World on: February 26, 2013, 07:56:15 am
Hello frosty,

I'm playing with the command-line parameter now for a while. Testing them in the dosbox won't work. It seems params like $(ItemDir), $(ItemFileName) or $(ItemExt) aren't visible "outside" of Atmel Studio. I taylored a small batchjob to run this weired 1200baud chip-erase thing which could be started by a click of a funky little button in the tool bar but the nonrecognizalicious command line crap thwarted my idea. Bummer.

Any idea?
51  Products / Arduino Due / Re: SAM 3X8 + AVR_Studio + Hello World on: February 24, 2013, 08:30:25 am
I found a solution how to handle these stuff.

Atmel faciliates the usage of preprogrammed so-called modules, components, drivers and services which are part of the Atmel Software Framework. There are more then 10 examples for the Arduino Due available. I opted for the getting-started example and it worked fine.

The next step is to put the code in the controller...

Here is a link how to use the ASF:
52  Products / Arduino Due / SAM 3X8 + AVR_Studio + Hello World on: February 23, 2013, 10:46:17 am
Hi,
I'm tinkering with Atmegas for some years now. Got myself a DUE to sneak in the SAM91 stuff but it seems its heck a lot magnitudes more complicated then I expected. Even a simple blink.c with AVR-Studio6 (I'm not in the Arduino IDE vy much since its lack of capabilities) at the moment is tricky. Does someone have a good source project where to start?


Joachim, Germany
53  Products / Arduino Due / Re: AVR Library with Arduino Due? on: February 22, 2013, 11:59:01 am
Have you found out more? Maybe I'm in front of the same thing...
54  Products / Arduino Due / Re: Uploading with Atmel Studio 6 on: February 22, 2013, 11:47:49 am
Hi, I found this engblaze project (probably everyone knows it) using the arduino standard programmer for the 8bit machines wit AVR-Studio5 and 6. Is there a chance to adapt the code for the 16U2 to the Due to run it with avrdude or bossa so it will work out of the IDE without a additional command line thing?
55  Using Arduino / Installation & Troubleshooting / Re: DUE: USB Keyboard demos doesn't work on: February 13, 2013, 12:25:56 pm
Hello Louis,
success!
Thank you for your help.

When Nick asked me about the output messages of the IDE  (though I stated in the first post everything is fine) I had the slight suspicion that there is something completely wrong outside my influence.
Now I can do further usb tinkering. Are you, Nick or Louis in the "USB business"?
Have some years of AVR/PIC tinkering now but USB is still black art...

Anyway, thank you, guys.
56  Using Arduino / Installation & Troubleshooting / Re: DUE: USB Keyboard demos doesn't work on: February 13, 2013, 10:15:27 am
Hi,
I repeated the prob with the KeyboardMessage example (I have Version 1.5.1r2 of the arduino IDE).
The IDE gives:

Erase flash
Write 10208 bytes to flash

[Then the verify progress bars appear]

Verify 10208 bytes to flash
Verify successful
Set boot flash true
CPU reset.

As always, the Icon changes from "Arduino GPS-Camera" to "Arduino Due" with the warning triangle. Also it is not possible to install a Windows7 driver since the button "update driver..." in the update driver dialog is disabled.

57  Using Arduino / Installation & Troubleshooting / Re: DUE: USB Keyboard demos doesn't work on: February 13, 2013, 05:01:15 am
Yep, uploading works. I simply load the example and shift it to the uC.
When the uC is erased the device is recognised as a GPS Camera. I wonder what's going on here. I'm using IDE with Ver 1.5. All is set by default.
58  Using Arduino / Installation & Troubleshooting / DUE: USB Keyboard demos doesn't work on: February 12, 2013, 02:48:28 am
Hi,
I have both an Arduino Due and a Taijiuno Clone for one week now. When I connected the Due to my Win7 machine the first time it was recognized as a Due and as a keyboard dependent on the connector.

Now I played with some sketches including USB KeyboardLockout and KeyboardMessage but the Due isn't beeing recognized as a keyboard anymore. When connected to the PC I find in the control panel->devices tab the devices Arduino Due Programming Port (COM14) and a Arduino Due with a warning triangle. I tried to fix this but a specific(?) driver could not be found. Similar behaviour is for the clone.

Any idea what's going on here?
Pages: 1 2 3 [4]