Go Down

Topic: attiny85 con arduinoISP en arduino-1.0.5 [INFO] (Read 1 time) previous topic - next topic

curro92

Hola,
tenía un sketch para usar un attiny85 para ahorrar energía en modo watchdog; lo compilaba  en arduino-002 .
Ahora he intentado compilarlo con arduimo-1.0.5, y me ha dado un montón de errores que los copio al final.
Buscando en la red, encontré la solución, que consiste en añadir un fichero llamado "Arduino.h" dentro de cores/tiny/ y que contenga el texto
   
Code: [Select]
#include <WProgram.h>
Desaparecieron los errores.
Lo pongo por si le sirve a alguien.

Code: [Select]

error: Arduino.h: No such file or directory
error: 'boolean' does not name a type
error: 'byte' was not declared in this scope
error: 'OUTPUT' was not declared in this scope
error: 'pinMode' was not declared in this scope
error: 'INPUT' was not declared in this scope
error: 'HIGH' was not declared in this scope
error: 'digitalWrite' was not declared in this scope
error: 'delay' was not declared in this scope
error: 'millis' was not declared in this scope
error: 'digitalRead' was not declared in this scope
error: 'LOW' was not declared in this scope
error: 'INPUT' was not declared in this scope
error: 'pinMode' was not declared in this scope
error: 'f_wdt' was not declared in this scope
error: 'OUTPUT' was not declared in this scope
error: 'HIGH' was not declared in this scope
error: 'digitalWrite' was not declared in this scope
error: 'delay' was not declared in this scope
error: 'millis' was not declared in this scope
error: 'digitalRead' was not declared in this scope
error: 'LOW' was not declared in this scope


curro92

#1
Nov 20, 2013, 06:42 am Last Edit: Nov 20, 2013, 06:51 am by curro92 Reason: 1
Hola,
Parece que el core de attiny que yo tenía instalado era antiguo. Ahora he encontrado este otro
https://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0017.zip
Lo he probado en Linux Mint y en xp,  funciona bien.
Contiene "cores", "bootloaders" y "Prospective Boards.txt"
Hay que editar "Prospective Boards.txt" y crear un nuevo fichero "boards.txt" con los boards que nos interesen.
En el directorio hardware de Arduino he creado una carpeta "attiny" donde he copiado el nuevo "boars.txt", "cores" y "bootloaders"



davisss


davisss

Me estoy encontrando un problema al querer grabar un attiny85 con arduino.Me tira este error al carga un archivo de ejemplo (blink). avrdude: usbdev_open(): did not find any USB device "usb". Estoy buscando información pero no consigo salir de este bucle .


gracias.

curro92


Lisergio

Creo que podría ser , que no encuentra el grabador ...
Has activado la opción arduino as ISP en el entorno arduino?

Go Up