This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
CONSULTA error al compilar
#1
Hola, soy principiante por la robotica, 

Me compre el keyestudio de arduino con 13 proyectos,

el numero 5 MODULO BLUETOOHT

TIENE ESTE CODIGO:
int val; 
int ledpin=13; 
void setup() 

Serial.begin(9600);
 pinMode(ledpin,OUTPUT); 
}
 void loop()
{ val=Serial.read(); 
if(val=='a')
 { 
digitalWrite(ledpin,HIGH); 
delay(250); 
digitalWrite(ledpin,LOW); 
delay(250);
 Serial.println("keyestudio");
}
}

Y ME ARROJA ESTE ERROR:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa7
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xa7
Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.

favor si alguien me puede ayudar.

Gracias.
  Responder
#2
El problema no es el código. El programa no consigue comunicar con la placa.

Lo más típico es no tener bien configurado el puerto com, velocidad o tipo de placa en la barra de herramientas. Has conseguido subir algún programa en las prácticas anteriores?
  Responder
#3
Si se compilaron los proyectos 1-2 y 4 del keyestudio, no hubo problemas.

No se que hacer, gracias por tu información.
  Responder
#4
Comprueba que el tipo de placa y la velocidad de comunicación estén como cuando te funcionó. El puerto COM puede cambiar, puedes desconectar y conectar el Arduino y ver que puerto desaparece y vuelve a aparecer.

Otras posibles causas:
- La placa está apagada
- hay otro programa comunicándose con arduino
- el USB, conector o cable están fallando
  Responder
#5
Buenas,

Siento revivir este post antiguo pero buscando información para el mismo mensaje de error llegué a él y quisiera aportar mi caso.

Tenía la versión 1.6.7 de Arduino y actualicé a la 1.8.9 y a la hora de subir el programa aparecía el mismo error de conexión. Tengo 2 Arduinos Nano CH340G y con ninguno funcionaba. Desinstalé y reinstalé los drivers pero nada. Comprobando que lla configuración del puerto y la placa estaba bien probé a cambiar el tipo de procesador. La opción predeterminada es "ATmega328P" y la cambié a "ATmega328P (Ol Bootloader)" y volvió a funcionar como antes.

Un saludo, espero que sea de ayuda.
  Responder


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
  error al compilar el código homer32 4 1,984 23-09-2019, 01:29 PM
Último mensaje: homer32
  errores al compilar el sketch homer32 3 2,220 02-04-2018, 04:38 AM
Último mensaje: homer32
  error compilar skecth homer32 5 6,646 30-08-2015, 04:07 PM
Último mensaje: homer32
  problema al compilar con la libreria LiquidCrystal_I2C pedro 16 16,025 27-12-2013, 07:29 PM
Último mensaje: pedro