Show Posts
Pages: [1] 2
1  Using Arduino / Installation & Troubleshooting / Arduino Mega2560 does not enumerate with windows7 on: January 13, 2013, 02:59:56 pm
Hello Arduinoers,

As I mentioned in my previous post, I have two Mega2560 boards that were given to me in order to "try" to revive them.

One I guess that the bootloader or fuses corrupted and one that windows does nor recognize. 
Connecting the board to any PC (WinXP, Win7 32bit, Win7 64bit) always give the Micro$oft:


Using a useful tool that allows to display the USB connected devices on your PC (USBView.exe downloaded from the FTDI Utilities page)

I can see that the board that windows does nor recognize, does not enumerate:

     Device Descriptor:
     bcdUSB:             0x0000
     bDeviceClass:         0x00
     bDeviceSubClass:      0x00
     bDeviceProtocol:      0x00
     bMaxPacketSize0:      0x00 (0)
     idVendor:           0x0000
     idProduct:          0x0000

     bcdDevice:          0x0000
     iManufacturer:        0x00
     iProduct:             0x00
     iSerialNumber:        0x00
     bNumConfigurations:   0x00

     ConnectionStatus: DeviceFailedEnumeration
     Current Config Value: 0x00
     Device Bus Speed:     Low
     Device Address:       0x00
     Open Pipes:              0


Any hint how this can be resolved?
  • Is this a Hardware problem? (I'm not sure if the problem started after a student provided the wrong voltage to the Mega or because the student tried to burn a sketch to the bootloader)
    Powering the board, gives life signals:
    • After power, the ON led is ON
    • The LED next to the 13th pin blinks once every time the board is reset
  • Is this bootloader problem?
    • Can't run the loopback test.. the hosting PC does not recognice the board...
    • But the board gives live signals..

What advice can you give me?

I have a JTAGICE3 I got on an ATmell seminar draw, that I was not sure how to use then (AVR is not my strong, I work with ARM processors)
I guess that it is possible to burn the bootloader with it.. but I could not find any hint here in arduino.cc. Do you have any advice on how to use it?

Thanks in advance...

2  Using Arduino / Installation & Troubleshooting / Another Mega2560 that does not upload. on: January 12, 2013, 03:56:11 pm
Hello,

My son is in a group that does robotics in a bunch of projects. When I was helping them, other team had their Arduino Mega2560 that stopped to upload.
I tried to help them, but I could not reach any success, they have replaced the Mega with a second one, and also it did not work, only the third one worked.

  • The first one it may be because some servo was using too much current and stopped to work after the student pressed "burn-butloader" by mistake, and the board was not identified by windows any more... (even changing drivers).
  • The second one, does not finish uploading.

I took both boards home to play with them, when the scenario is: (with the board that does not finish uploading)
  • Windows7 64bit
  • Correct drivers for the Mega, the mega gets identified as it should be (COM port 3, Arduino Mega 2560 R3)
  • The fist time you upload a sketch, it compiles OK and apparently starts to upload it as in the image below:


    Screenshot
  • The second time, the COM port is in use and all fails till I reset the board, disconnect the USB and connect it to a different port on my laptop.
  • Every time the Mega board is powered, the led blinks once (next to pin 13)
  • Running the loop-back test fails (http://arduino.cc/forum/index.php/topic,73748.0.html)

Any hint?

For the second board, after this one works, I guess a new bootloader should be burned in.

I'm relatively new to the Arduino world. (I have a Due that my son is using in his team)

Thanks in advance.
3  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: December 11, 2012, 05:09:03 pm
Ricky
I don't really understand what you are talking about.
The main difference between Arduino IDE 1.X and 1.5.X is that the hard coded stuff in 1.X is brought to the boards.txt and the programmers.txt and the platform.txt.
I have already done some work on this but the Arduino core team does not share their plans and they tend to do things different from how I do things. For instance I had decided to add platform folders under hardware (like teensy does) which contains board.txt files and Arduino core team decided to have hardware/[make]/[technology]/[configuration files].
[make]=Arduino
[Technology]= avr or sam
[configuration files] = boards.txt or programmers.txt or platform.txt.
As a result I need to change my board.txt reading code. I just hate that. smiley-zipper

The core team noted that the whole setup may change. To avoid the frustration of doing more things twice I decided to wait untill an official release is released to see how the core team decided to do it.
Above you explained exactly what I wanted to understand... therefore indirectly you have understand me smiley

I will see if I can work on it,
Please do; the code is available at github. Fork it and go from there. https://github.com/jantje/arduino-eclipse-plugin

hope I'm not getting in over my head..
Why would you?

I guess it can be done
I'm sure it can be done. I think it should even be easier now as the commands are more disclosed and the framework to do it is in-place.

Great, now I'm reading about GIT, before I dive into it smiley
Hope the work is not over my knowledge.. or that I will have enough time to deal with it smiley

- Tailor the programmer and serial console.
I really don't know what you are referring to here.
The idea is to use Eclipse to program the Arduino board and then use the Serial Monitor inside Eclipse as a terminal in the older days.
4  Development / Other Software Development / Re: Some simple examples of using Quantum Leaps’ QP state machine platform on: December 11, 2012, 01:44:15 pm
Happy to see that QP state machine platform is possible with Arduino smiley
... looking forward to see how can I use it

--- Ricky Marek.
5  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: December 11, 2012, 01:42:23 pm
Have problems in setting the plugin with the new Arduino IDE 1.5.1r2,

After installing the plugin, when I configure the Arduino IDE Path, the tool does not accept it. smiley-sad

Also, I'm planning to use Eclipse with the Arduino Due which is an ARM and not an AVR processor...

Any hint?

Yes
1.5.X rZ are beta versions that do not support all boards. It is majorly different in setup and has not yet stabilized.
So in other words I don't support it.
When the stable version comes out I'll look on how to support it.
Best regards
Jantje


I will see if I can work on it, hope I'm not getting in over my head.. I guess it can be done
- Tailor the compiler and linker
- Use the Arduino framework to get the same Arduino IDE look (hide all the stuff the user does not need to deal with)
- Tailor the programmer and serial console.

--- Ricky
6  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: December 11, 2012, 01:22:46 pm
Hello,

Today I got my Arduino Due, so I will be starting to play with it.

Reading through the Arduino site, all the pointers in tailoring Eclipse to the Arduino are for the AVR 8-bit processors and not for ARM, therefore, can someone give a link or a tutorial on how to do it here on the Arduino Due forum?

Thanks in advance and have a nice day!

--- Ricky Marek.

Today I tried again to tailor it via the AVR plugin or Arduino plugin, both are for AVR environment and not the SAM3 smiley-sad

Any one has done this work?.

Atmel Studio 6 is not suitable for me. (I work in mixed platforms, here in a Windows7, and helping my kid under Linux)

Thanks in advance.
7  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: December 11, 2012, 12:08:30 pm
Have problems in setting the plugin with the new Arduino IDE 1.5.1r2,

After installing the plugin, when I configure the Arduino IDE Path, the tool does not accept it. smiley-sad

Also, I'm planning to use Eclipse with the Arduino Due which is an ARM and not an AVR processor...

Any hint?
8  Using Arduino / Microcontrollers / Tailoring Eclipse with Arduino 1.5.1*... on: December 11, 2012, 11:34:23 am
Hello,

Is there a guide how to tailor Eclipse with Arduino 1.5.1 ? (for the due)

The plugin used under Eclipse is for older versions of the IDE smiley-cry

Thanks in advance

--- Ricky
9  Products / Arduino Due / Re: Obscure infinite for loop. on: December 09, 2012, 05:24:23 pm
Just to add some spice on this thread, another differences between AVR and ARM is that ARM is a 32bit processor, so, if you are used to work with char due to program size limitations, now with the Due, I guess you will need to change your habits,

Read here: Efficient C Code for ARM Devices, also here for a different point of view.

Enjoy and have a nice day.

--- Ricky
10  Products / Arduino Due / Re: Servo library for the due... does exist? on: December 09, 2012, 05:13:21 pm
Maybe if it was easier to download files from Github, rather then copy-paste them piece-by-piece these mistakes wouldn't occur... Thanks for your help! smiley
Copy and Paste is one of the great enemies of a programmer smiley

I'm glad you found the problem.

Have a nice day

--- Ricky
11  Products / Arduino Due / Re: Servo library for the due... does exist? on: December 09, 2012, 08:46:58 am
The "Servo" folder is located both in the "C:\Users\Lori\Documents\Arduino\libraries\Servo" and the "C:\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo". And the errors I got are not "File not found exceptions" or similar...

I've also tried removing the library from "C:\Users\Lori\Documents\Arduino\libraries\Servo" and just leaving the "C:\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo" and I'm still getting the same errors...

I guess we both are talking about the "Arduino Due"... , I have added the following files:
- E:\Work\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo\Servo.h
- E:\Work\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo\Servo.cpp
- E:\Work\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo\keywords.txt
- E:\Work\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo\examples\Knob\Knob.ino
- E:\Work\arduino-1.5.1r2\hardware\arduino\sam\libraries\Servo\examples\Sweep\Sweep.ino

Now, from the error messages, it seems that the #ifndef Servo_h in line 45 is giving the hint. Do you have another Servo_h #define in some other place?.

On the Arduino IDE, did you select the correct board, otherwise you will be taking the avr files. (...\arduino-1.5.1r2\hardware\arduino\avr\libraries\Servo)

Just want to help.. I'm also new here, but for me the new files worked as required...

Have a nice day.
12  Products / Arduino Due / Re: Servo library for the due... does exist? on: December 09, 2012, 07:15:28 am
Hello,

I tried using this servo library and I get this error when I try to compile:

Code:
In file included from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 ... (same thing repeated like 100 times) ...
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from sketch_dec09b.ino:6:
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:44: error: #include nested too deeply
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45: error: #include nested too deeply
In file included from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                ... (same thing repeated like 100 times) ...
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:45,
                 from sketch_dec09b.ino:6:
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:53: error: 'servo_t' does not name a type
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:57: error: '_Nbr_16timers' was not declared in this scope
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:76: error: variable or field 'Servo_Handler' declared void
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:76: error: 'timer16_Sequence_t' was not declared in this scope
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:76: error: expected primary-expression before '*' token
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:76: error: 'pTc' was not declared in this scope
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:76: error: expected primary-expression before 'channel'
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:103: error: variable or field 'Servo_Handler' declared void
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:103: error: 'timer16_Sequence_t' was not declared in this scope
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:103: error: expected primary-expression before '*' token
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:103: error: 'tc' was not declared in this scope
C:\Users\Lori\Documents\Arduino\libraries\Servo/Servo.h:103: error: expected primary-expression before 'channel'

I used the Sweep example provided with this library, because I wanted to see if it was working properly... Compiled with IDE 1.5.1r2... Any ideas?

I'm new here also, but it seems that you saved the files in the wrong location.

The Servo.cpp and Servo.h  may need to go to  .../hardware/arduino/sam/libraries/Servo directory and not to ../libraries/Servo directory...

I downloaded the files, located them in the correct place and worked smiley

--- Ricky
13  Products / Arduino Due / Re: Servo library for the due... does exist? on: December 08, 2012, 12:19:19 pm
Was added a few days ago, search  back in this forum and you will find it, but here is the direct link -

https://github.com/arduino/Arduino/commit/db81f52c3a27784fb44ca1ad6c77f9b1f0a4ef7d

Duane B

Excellent, many thanks.

I'm not used to GIT, therefore, how can I download the files? (on my own risk), I guess I need to install this animal (git) and then get the files.

... just now saw the same link in the fourm..
14  Products / Arduino Due / Servo library for the due... does exist? on: December 08, 2012, 10:19:16 am
Hello,

By having on my program the following line:
   #include <Servo.h>

I get the compiler error under the Arduino IDE (1.5.1r2)
   vex_motor.ino:1: fatal error: Servo.h: No such file or directory
   compilation terminated.


The board is an Arduino Due.

Was the Servo library ported to the Arduino Due?... from the warning above, the answer may be no smiley-sad

Any hint?
15  Products / Arduino Due / [Q] AnalogRead with the Due... (response time) on: December 07, 2012, 12:07:53 pm
Hello,

On the documentation for analogRead(pin), it is mentioned that the response time is about ~100usec. Is this the same for the Arduino Due that has a faster clock? ...

Thanks in advance.
Pages: [1] 2