Show Posts
Pages: 1 [2] 3 4 ... 32
16  Products / Arduino Due / Re: Arduino Due and LSM303DLHC. More I2C issues? on: March 31, 2014, 01:09:10 pm
Given that this LSM303 library was built for AVR devices, I'd recommend you to change in LSM303.h
the line:  #include <Arduino.h>   for #include <variant.h> . Sadly I don't have a device at hand to help you more.
Good luck.
17  Products / Arduino Due / Re: SAM ICE <--> Arduino Due on: March 31, 2014, 11:58:22 am
You have to create/open an Arduino DUE project. Here an example:

File->New->Example Project.
-Click on Kit.
-Click on latest ASF version like (3.9.1) .
-Click on Arduino Due/X.
-Select the Getting-Started Application on SAM - Arduino Due/X example.
-Accept the CMSIS license agreement.
-After the project is loaded you will see ATSAM3X8E device in the tool bar. You will see also 'No Tool' in the right.
-Click it and then select your debugger. It should shows up you SAM-ICE (serial number I guess) if it is connected to your computer.
-Select JTAG.
-Press F5.
Once your project is loaded to your DUE, you will see the led L (13) blinking. The sample puts another led to blink (Pin 9 I guess)

And that's it. If everything goes OK, you should have loaded a project to DUE using SAM-ICE. Regards!

18  Products / Arduino GSM Shield / Re: Arduino GSM Shield + Yun on: March 31, 2014, 09:24:36 am
I guess you are using IDE 1.5.6-r2. I do not have a Yun but I tested some GSM examples using IDE 1.5.5-r2  with Yun as board and all they compiled w/o errors. You may should try with 1.5.5-r2 and see.
19  Products / Arduino Due / Re: Arduino Due and LSM303DLHC. More I2C issues? on: March 31, 2014, 08:24:27 am
Try this:

#include <Wire.h>
#include <LSM303.h>

LSM303 compass;
LSM303::vector running_min = {32767, 32767, 32767}, running_max = {-32768, -32768, -32768};

void setup() {
  compass.init(LSM303DLHC_DEVICE, LSM303_SA0_A_HIGH);

void loop() {;
  running_min.x = min(running_min.x, compass.m.x);
  running_min.y = min(running_min.y, compass.m.y);
  running_min.z = min(running_min.z, compass.m.z);

  running_max.x = max(running_max.x, compass.m.x);
  running_max.y = max(running_max.y, compass.m.y);
  running_max.z = max(running_max.z, compass.m.z);
  Serial.print("M min ");
  Serial.print("X: ");
  Serial.print(" Y: ");
  Serial.print(" Z: ");

  Serial.print(" M max "); 
  Serial.print("X: ");
  Serial.print(" Y: ");
  Serial.print(" Z: ");
20  Products / Arduino Due / Re: Is it true that SCL0 & SDA0 have 1k pull-ups, but SCL1 & SDA1 do not? on: March 30, 2014, 11:03:21 pm
Just in case, here other info:

Regarding the I2C1 pins:
70 and 9 are the physical pin numbers for SCL1(PA18) and SDA1 (PA17).
71 and 70 are the digital pin numbers for SCL1(PA18) and SDA1 (PA17).

For a reference in the forum, look at Graynomad's DUE pinout diagram:

For Atmel references:
See Table 4-3 (page 19) of Atmel doc11057

For Arduino reference:
See DUE schematic:

Regarding the pull-up resistors:
For I2C0 you don't need pull-up resistors.
For I2C1 you need pull-up resistors. I have used 1K ohm without problems.

21  Products / Arduino Due / Re: Arduino Due Core and USARTClass.h on: March 30, 2014, 06:10:02 pm
Hello Mainian,

The USARTClass files (.h,.cpp) are part of the Arduino IDE 1.5.X. You can find them in the following path:


Here also a link related to your topic:

I hope that can be of help.
22  Products / Arduino Due / Re: bash: ./arm-none-eabi-g++: No such file or directory on: March 28, 2014, 12:06:21 pm
Check at this:
23  Products / Arduino Due / Re: bash: ./arm-none-eabi-g++: No such file or directory on: March 27, 2014, 10:18:47 pm
Hello AntennaSmith,
Your verbose output is truncated and incomplete. Please, try to post the error lines so we  can help you to determine the problem.
24  Products / Arduino Due / Re: Weird communication issue on: March 25, 2014, 08:20:10 am
So, this concludes that all pieces of hardware work fine, individually.

If the problem is not your hardware, what about if you post your code?
Have you also tried to send the data -let's say- TX2/RX2 from/to other TX/RX port of DUE?
25  Products / Arduino Due / Re: visualmicro vs. JETAG adapter on: March 24, 2014, 10:49:06 pm
Like the same people from Visual Micro says, VM debugger plugin "...cannot be relied upon for use with sensitive and dangerous projects". Also, after the 14 days trial, you'll have to pay $29 for 1 machine license. For debug you'll need Arduino, Visual Studio and Atmel Studio. You can't debug dynamic C++ classes.

On the other hand, SAM-ICE is a $100 JTAG emulator that only needs Atmel Studio to program/debug Arduino DUE and it is endorsed by Atmel itself.

Some times, trying to resolve a communication issue I just open the ELF file generated by Arduino IDE and open it into Atmel Studio (file->open->open object file for debugging),  then put a breakpoint at the key functions and try to locate where the problem could be located.

Remember that visual micro and SAMICE work the opposite of the Arduino intention to enable the user to develop applications quickly by hiding detail low level control details in the API. The choice will depend on your interests/needs/goals. If you only want to explore a bit more of how DUE works, get visual micro but if you are more oriented to troubleshoot, develop or design applications based on SAM microcontrollers, like Rob says, SAM-ICE is your best option.
26  Products / Arduino Due / Re: Noob for: Arduino DUE --- MPU-9150 --- MPU9150Lib on: March 24, 2014, 03:10:02 pm
27  Using Arduino / Sensors / Re: Weird initial values using Serial on: March 21, 2014, 08:05:32 pm
Can you try in the Arduino IDE  Tools->Fix Encoding and Reload? (You must save first your sketch). Regards.
28  Products / Arduino Due / Re: Library Problem With IDE V1.5.1r2 And Due on: March 21, 2014, 07:06:10 pm
So far-using Windows 7-the Wire library for SAM runs OK in my DUE (both controllers TWI0 and TWI1).  The twi.c file you mention belongs to AVR. That's why is linked with avr/io.h. I know it because the AVR TWI is located under a utility folder unlike the SAM TWI which is under \libsam\source.  This happens after import the Wire library using IDE 1.0.X.
Solution: Close your IDE 1.5.X, delete the Wire folder from your ...\Arduino\libraries\, open again yout IDE 1.5.X and run your sketch. Regards!

EDIT: If you need to use the AVR Wire library, just run your sketch (you don't need to import the library). This works for me with 1.04 and newer.
29  Products / Arduino Due / Re: ArduinoDue AtmelStudio JTAG on: March 21, 2014, 03:32:30 pm
Yes. With SAM-ICE (~US$100) you can load the Atmel Studio examples. You also will need the adapter ARM-JTAG-20-10 (~US$7).
30  Products / Arduino Due / Re: I need help with an example. on: March 21, 2014, 03:24:43 pm
Hello yariv3G,

It looks like you have set the wrong board in the IDE 1.5.X. Verify the following:
Tools->Board->Arduino Due (Programming Port).

-Be sure your Waveforms.h is located a:

And finally...
rename t_sample as sample.

Pages: 1 [2] 3 4 ... 32