Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Programming Questions / Re: stk500_recv(): programmer is not responding when programming bootloader on: January 22, 2012, 02:02:17 pm
Are you using the ArduinoISP sketch with Arduino 1.0 by any chance? I recently chased down a problem I was having very similar to yours - avrdude "writing..." to about 96%, then failing. This thread has the details.

Try using a pre-1.0 Arduino IDE (0022 or 0023) to build and upload ArduinoISP. Alternately, the user Coding Badly is offering a patched version of ArduinoISP in that thread that should work with 1.0.

Yes!! I'm using 1.0!! I will try an older version and contacting Coding Badly. If I solve the problem I will post in this thread.
32  International / Español / Re: stk500_recv(): programmer is not responding on: January 22, 2012, 08:42:54 am
Hazlo con el IDE de arduino, te vas a Burn Bootloader -> Arduino as ISP

Fue lo primero que hice. Despues lo hice desde linea de comando para ver con más detalle el error que daba.
33  International / Español / Re: No puedo programar Atmega328 con ArduinoISP on: January 22, 2012, 07:19:48 am
Ya descubrí el problema. El cristal que estaba usando estaba fallado. Pero ahora tengo un problema diferente:


# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex"
avrdude: writing flash (32670 bytes):

Writing | ###############################################    | 94% 0.01savrdude: stk500_recv(): programmer is not responding


He iniciado un nuevo hilo para preguntar sobre esto así no mezclamos las cosas.
34  International / Español / stk500_recv(): programmer is not responding on: January 22, 2012, 07:18:10 am
Estoy tratando de programar un nuevo chip atmega328 en una breadboard como se indica en http://arduino.cc/en/Tutorial/ArduinoToBreadboard

He probado hacerlo con y sin cristal (con la configuración correspondiente) y en ambos casos obtengo el mismo error:


# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex"
avrdude: writing flash (32670 bytes):

Writing | ###############################################    | 94% 0.01savrdude: stk500_recv(): programmer is not responding

35  Using Arduino / Programming Questions / stk500_recv(): programmer is not responding when programming bootloader on: January 22, 2012, 07:14:16 am
I am trying to burn the arduino bootloader as described in http://arduino.cc/en/Tutorial/ArduinoToBreadboard

I've tried with crystal and with no crystal with the same result:


# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex"
avrdude: writing flash (32670 bytes):

Writing | ###############################################    | 94% 0.01savrdude: stk500_recv(): programmer is not responding


Any ideas please?
36  Using Arduino / Programming Questions / Re: ArduinoISP on: January 22, 2012, 07:06:34 am
Semi solved the problem.

The problem was a bad crystal. The arduino ide programmed the fuses to use crystal oscilator, but the crystal was broken. I replaced it and it started detecting the chip, but the write process aborts. I tried also with a 8Mhz crystal-less setup with exactly the same result.

# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex"
avrdude: writing flash (32670 bytes):

Writing | ###############################################    | 94% 0.01savrdude: stk500_recv(): programmer is not responding


I think it is better to start a new thread with this issue.
37  International / Español / Re: No puedo programar Atmega328 con ArduinoISP on: January 22, 2012, 05:18:59 am
Si es 328 necesitas cambiar la signature, no es la misma que el 328p

Es un Atmega328P-PU. De todas formas, ejecutando a mano el avrdude para poder ver bien los mensajes, dice que la signature que lee es:

avrdude: Device signature = 0x000000

38  Using Arduino / Programming Questions / Re: ArduinoISP on: January 22, 2012, 04:56:02 am
Quote
avrdude: Device signature = 0x000000

Usually an indication that the target is not powered, the wiring between the programmer and the target is not correct, or that the target is not correctly clocked.

How are you powering the Decimilia?  Do you have GND connected between the Decimilia and the Mega?


The heartbeat blinks, the I think the gnd is connected.

39  International / Español / No puedo programar Atmega328 con ArduinoISP [CANCELADO] on: January 21, 2012, 05:35:00 pm
Estoy tratando de programar un Atmega328 usando como programador un Arduino Decimilia (Atmega168). He grabado el programa, cableado el chip a una breadboard tal como se indica en http://arduino.cc/en/Tutorial/ArduinoISP Pero me da este error:  avrdude: Yikes!  Invalid device signature.

He lanzado el avrdude en línea de comando para quitar los -q -q y así ver más detalles. El resultado es este:


avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -carduino -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


¿Alguna idea de qué puedo hacer?
40  Using Arduino / Programming Questions / Re: ArduinoISP on: January 21, 2012, 04:20:04 pm
Quote
May be the Arduino ISP program does not work correctly in a the Arduino Mega (Atmega 1280)?

That is a possibility.  Try the latest version from here...
http://code.google.com/p/mega-isp/


Can't compile this program (arduino 1.0)

The error is this:

In file included from /usr/lib/arduino/hardware/arduino/cores/arduino/Arduino.h:212,
                 from ArduinoISP.cpp:56:
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:36: error: expected unqualified-id before numeric constant
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:37: error: expected unqualified-id before numeric constant
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:38: error: expected unqualified-id before numeric constant


Edit: resolved the problem: Arduino 1.0 defines the names for SCK, MOSI, MISO, etc. I replaced the constants on the program and it compiled ok but with the same result.

Calling avrisp in command-line, the response is this:


# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf  -patmega328p -carduino -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.
41  Using Arduino / Programming Questions / Re: ArduinoISP on: January 21, 2012, 03:17:15 pm
Quote
To use the arduino as programmer under Linux I added a 10uF capacitor between reset and gnd pin to avoid resetting when the port is openned.

Immediately after uploading the ArduinoISP sketch?


I write the program as usual. Then I add the capacitor and from this moment, the chip cannot be reset. If I try to upload a new program without unplug the capacitor, the writting fails.
42  Using Arduino / Programming Questions / ArduinoISP [closed] on: January 21, 2012, 03:00:55 pm
Hello. I am trying to program a new atmega238 chip.

I've got an Arduino Decimilia board and and an Arduino mega. I replaced the decimilia's chip with the new atmega328, written the program ArduinoISP from the examples. I selected "Arduino as ISP" in programmer, and selected Arduino Duemilanove with Atmega328 as board.

The connections are like in the tutorial: http://arduino.cc/en/Tutorial/ArduinoISP

When I lounchs "burn bootloader" from the menu, the response is

avrdude: stk500_recv(): programmer is not responding

I tried this from Linux and From Windows. To use the arduino as programmer under Linux I added a 10uF capacitor between reset and gnd pin to avoid resetting when the port is openned.

May be the Arduino ISP program does not work correctly in a the Arduino Mega (Atmega 1280)? Any ideas on how to find the problem?

Edit: I connected the heartbeat led and it does not blink. Then, I decided to use the decimilia as programmer, but connecting the new chip in a breadboard.

With the decimilia the heartbeat does blink OK. But When I try to burn the bootloader I receive this error:

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.
43  International / Español / Re: No puedo cargar bootloader con programador paralelo on: December 19, 2011, 04:25:43 am
Pero el programador hecho con un arduino debería funcionar.

Si usas Linux o MAC, ponle un capacitor de unos 10uF entre el conector de RESET y GND para que no se te resetee al abrir el puerto.
44  International / Español / Arduino que pierde el programa on: December 19, 2011, 04:14:12 am
Tengo una placa al parecer 100% compatible con adruino decimilia.

Resulta que hace tiempo había notado algo raro. Tenía un medidor de consumo de memoria y cpu conectado por USB al PC, hecho con el arduino. Y de vez en cuando notaba que al encender la PC el arduino perdía el programa. El bootloader estaba
bien pero el progarma no arrancaba. Lo reprogramaba de nuevo y todo perfecto hasta después de un tiempo.

Yo pensaba que era la PC que mandaba alguna basura por el puerto serie y hacía creer al bootloader que iba un programa, pero después noté también que si lo desenchufaba y enchufaba varias veces provocaba el problema de la pérdida del programa.

Entonces pensé que sería problema de algún transitorio en el momento de conectar o algo así, pero ahora me parece que he descubierto que el problema se produce al desconectarlo y bajar la tensión. Si tengo un programa corriendo que maneja unos leds y desenchufo el transformador de los 220, la tensión baja de a poco durante unos segundos y hasta se ve que parpadea el led de POWER. En esa condición el programa se pierde SIEMPRE.

Un detalle: he probado hacer lo mismo a un arduino mega 1280 y no pasa. El programa no se pierde. ¿Puede ser problema del atmega?

Yo había pensado ponerle algún capacitor más pero si el problema es al perder la corriente no se solucionaría así. ¿Alguna idea de qué puedo probar?
45  International / Software / Re: Problema con delayMicroseconds() en Arduino0022 on: February 07, 2011, 03:27:14 pm
Voy a probar esa libreria, gracias.
Tienes una pagina donde den ejemplos de como implemantar esa libreria?
Sí, puedes descargar la última versión y un ejemplo aquí:
http://alejandro-anv.blogspot.com/2011/02/biblioteca-para-teclas-del-arduino.html
Entonces ya esta resuelto el problema de delayMicroseconds() ?

Pues... sencillamente cambié de biblioteca. Todavía quisiera saber por qué dejó de funcionar la otra.
Pages: 1 2 [3] 4 5