Hacking.MiniBootloader History

Hide minor edits - Show changes to markup

June 02, 2010, at 12:35 AM by Equipo Traduccion -
Changed lines 58-60 from:

(Nota del Traductor): en el artículo original en ingles el procedimiento se describe tal cual lo he traducido al Español, también puede verse en las fotos cual es el resultado. Personalmente no entiendo como el autor puede cortar los pines para posteriormente introducir en ellos el cable fino, me parece mas sencillo soldar los cables a los pines y el montaje debe funcionar exactamente igual.

Es buena idea utilizar cola caliente (la que se aplica con pistola) para asegurar todo en su sitio. Es muy fácil hacerlo pinchando los dos segmentos de 3 pines en el cable del ISP (asegúrese de que cada uno está en su sitio) y añadiendo unas gotas de pegamento (cuidado de el cable del ISP).

to:

(Nota del Traductor: en el artículo original en ingles el procedimiento se describe tal cual lo he traducido al Español, también puede verse en las fotos cual es el resultado. Personalmente no entiendo como el autor puede cortar los pines para posteriormente introducir en ellos el cable fino, me parece mas sencillo soldar los cables a los pines y el montaje debe funcionar exactamente igual).

Es buena idea utilizar cola caliente (la que se aplica con pistola) para asegurar todo en su sitio. Es muy fácil hacerlo pinchando los dos segmentos de 3 pines en el cable del ISP (asegúrese de que cada uno está en su sitio) y añadiendo unas gotas de pegamento (cuidado de no pegar el cable del ISP).

Changed lines 66-67 from:

Ten en cuenta el orden de los cables relativo al filamento rojo en el cable del programador. Cuando la el filamento rojo está en la parte superior y el cable esta en la parte mas alejada del conector, las correspondencias de los colores son blanco (MISO), verde (SCK) y amarillo (RESET). En la imagen siguiente, con el filamento rojo en la parte inferior, los colores de los cables son: negro (GND), azul (MOSI) y rojo (+5v).

to:

Ten en cuenta el orden de los cables relativo al filamento rojo en el cable del programador. Cuando el filamento rojo está en la parte superior y el cable esta en la parte mas alejada del conector, las correspondencias de los colores son blanco (MISO), verde (SCK) y amarillo (RESET). En la imagen siguiente, con el filamento rojo en la parte inferior, los colores de los cables son: negro (GND), azul (MOSI) y rojo (+5v).

Changed lines 98-99 from:

Para instalar un gestor de arranque alternativo necesitas un programa llamado AVR Studio. Puedes descargarlo [[http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725| aquí]. Desafortunadamente AVR Studio solo existe para el sistema operativo Windows. Sin embargo puedes utilizar las instrucciones para cargar el gestor de arranque del micro ATmel168 en Mac OS/X.

to:

Para instalar un gestor de arranque alternativo necesitas un programa llamado AVR Studio. Puedes descargarlo aquí. Desafortunadamente AVR Studio solo existe para el sistema operativo Windows. Sin embargo puedes utilizar las instrucciones para cargar el gestor de arranque del micro ATmel168 en Mac OS/X.

Changed lines 111-112 from:
  1. Un programa hecho por ti mismo. El fichero .hex debe estar almacenado en una carpeta dentro del mismo directorio en que se encuentra la carpeta en la que se almacenan nuestro sketches.
to:
  1. Un programa hecho por ti mismo. El fichero .hex debe estar almacenado en una carpeta dentro del mismo directorio en que se encuentra la carpeta en la que se almacenan nuestros sketches.
June 02, 2010, at 12:27 AM by Equipo Traduccion -
Changed lines 98-101 from:

To install an alternative bootloader, you will need a piece of software called AVR Studio. Download it from here. Unfortunately, AVR Studio only exists for the Windows environment. However, you can use the instructions for bootloading the Atmel168 on Mac OS/X.

Run AVR Studio. Press cancel to skip the opening screen.

to:

Para instalar un gestor de arranque alternativo necesitas un programa llamado AVR Studio. Puedes descargarlo [[http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725| aquí]. Desafortunadamente AVR Studio solo existe para el sistema operativo Windows. Sin embargo puedes utilizar las instrucciones para cargar el gestor de arranque del micro ATmel168 en Mac OS/X.

Ejecutar AVR Studio. Apretar el botón "cancel" para salir de la ventana de entrada.

Changed lines 104-105 from:

Press the Con button. It is the tiny little button labeled "CON" that looks like a little chip. Then, select the type of ISP that you are using: in this example, AVR ISP Mk II.

to:

Pinchar en el botón "con", es un pequeño botón que parece un pequeño chip. Después seleccionar el tipo de ISP que estás utilizando (en este ejemplo AVR ISP MkII).

Changed lines 108-112 from:

You will see the firmware upload dialog box, as shown below. Confirm that all the settings are as shown in the dialog. In the field "input HEX file", browse to the file you want to upload. This can be either:

  1. A new bootloader
  2. A program of your own. The .hex file will be stored in the applet folder within your Arduino sketch's folder.
to:

Aparecerá una nueva ventana como la que se muestra a continuación. Marca los parámetros tal como se muestran en la imagen. En el campo "input HEX file" introduce el fichero que quieres cargar. Este puede ser:

  1. Un nuevo gestor de arranque.
  2. Un programa hecho por ti mismo. El fichero .hex debe estar almacenado en una carpeta dentro del mismo directorio en que se encuentra la carpeta en la que se almacenan nuestro sketches.
Changed lines 115-119 from:

Press the "Program" button. You should see some activity in the status window. Press "Verify" if you want to confirm that everything is OK. Disconnect the ISP by removing its USB cable from the computer. If you want to play it safe, remove power from your Arduino. Disconnect the ISP header from your breadboard.

Your Arduino Mini is now bootloaded!

to:

Pulsar el botón "Program". A continuación deberías ver algo de actividad en la ventada de estado. Pulsa "Verify" si quieres asegurarte de que todo ha ido bien. Desconecta el ISP quitando el cable USB del ordenador. Si quieres actuar con seguridad quita la alimentación de tu Arduino. Por último, desconecta el conector del ISP de tu placa entrenadora.

Tu Arduino Mini ya tiene cargado el gestor de arranque!

June 01, 2010, at 07:00 PM by Equipo Traduccion -
Changed lines 84-90 from:

Plug the USB cable from the ISP into your computer now. You should see two green LEDs light up on the programmer. Note: you should not have anything plugged into pins 11-13 of the Arduino. This may interfere with the operation of the programmer.

From this point on, the instructions are exactly the same as those for bootloading any Atmel 168 microcontroller. You can use the instructions elsewhere on this site, or continue on.

How to load the bootloader using Arduino environment?

You can now bootload the Arduino using the Arduino environment. Open Arduino on your computer, set the type of board you are using (Arduino Mini), open the Burn Bootloader menu and choose your programmer. (In this example, AVRISP MkII.)

to:

Conecta el cable USB desde el ISP a tu ordenador. Verás dos LEDs verdes encendidos en el programador. Nota: no debe haber nada conectado a los pines 11, 12 y 13 de la Arduino, esto puede interferir en el trabajo del programador.

A partir de este punto las instrucciones son, exactamente, las mismas que para grabar el gestor de arranque de cualquier otro microcontrolador ATmel168. Puedes usar las instrucciones de esta página o continuar leyendo.

Como cargar el gestor de arranque usando el IDE de Arduino.

Ahora puedes cargar el gestor de arranque de Arduino utilizando el entorno de desarrollo instalado en tu ordenador. Abre el IDE Arduino en tu ordenador, establece el tipo de placa que estás usando (Arduino Mini), abre el menú "Burn Bootloader" y selecciona tu programador (en este ejemplo el AVRISP MkII).

 
Changed lines 94-100 from:
   

Unlike regular Arduino programming, you don't have to press the reset switch. The programmer resets the Arduino for you. This will install (or restore) the original Arduino bootloader. However, this is of little benefit, unless you are trying repair the bootloader, or your mini somehow came without one.

How to load the bootloader using AVRStudio?

to:

A diferencia de la programación no es necesario apretar el botón de reseteo. El programador resetea la Arduino por ti. Esto instalará (o restablecerá) el gestor de arranque original. Sin embargo, esto es de poca utilidad a menos que estés intentando reparar el gestor de arranque o que tu Arduino Mini, de alguna manera, te llegara sin uno.

Como cargar el gestor de arranque usando AVRStudio.

June 01, 2010, at 06:39 PM by Equipo Traduccion -
June 01, 2010, at 06:21 PM by Equipo Traduccion -
Changed lines 64-67 from:

Note that the pins on the ends are not connected to anything - I did this so that the header would be exact length of the Arduino Mini, making it easier to align. Note the order of the wires relative to the red strand on the programmer cable. When the red strand is on the top, and the cable is on the far side of the connector, the colors are white (MISO), green (SCK) and yellow (RESET). In the picture below, with the red strand on the bottom, and the ribbon cable on the near side, the cables are black (GND), blue (MOSI) and red (+5V):

to:

Nótese que los pines de los extremos no tienen conexión, lo he hecho así para que el conector tenga, exactamente, la misma longitud que la Arduino Mini, siendo así más fácil de alinear. Ten en cuenta el orden de los cables relativo al filamento rojo en el cable del programador. Cuando la el filamento rojo está en la parte superior y el cable esta en la parte mas alejada del conector, las correspondencias de los colores son blanco (MISO), verde (SCK) y amarillo (RESET). En la imagen siguiente, con el filamento rojo en la parte inferior, los colores de los cables son: negro (GND), azul (MOSI) y rojo (+5v).

Changed lines 70-71 from:

Mount your Arduino Mini on a breadboard, as shown (note that you will have to remove the LED on pin 13 during programming):

to:

Monta tu Arduino Mini sobre una placa entrenadora, como se muestra a continuación (ten en cuenta que tendrás que quitar el LED del pin 13 durante la programación).

Changed lines 74-75 from:

Line up the male header with 12 pins along the side of the Arduino Mini, so that it lines up with the pins. The Power, Reset and Ground wires should line up. (Note that the LED has been removed.) It should look like this:

to:

Alinea el conector macho de 12 pines con el lateral de la Arduino Mini. Los cables de POWER, RESET y GND deben coincidir con los correspondientes pines en la placa. Debe verse así (el LED se ha quitado):

Changed lines 78-79 from:

Here is a view from above:

to:

Visto desde arriba:

Changed lines 82-83 from:

If you are using a USB adapter with your Arduino Mini, plug it into your computer now. If you are not, plug in whatever power source you are using. The Arduino must be powered for ISP to work.

to:

Si estás usando un adaptador USB con tu Arduino Mini conéctalo a tu ordenador ahora. Si no lo estas usando conecta la fuente de alimentación que uses. La Arduino debe estar alimentada eléctricamente para que el ISP pueda trabajar.

June 01, 2010, at 05:54 PM by Equipo Traduccion -
Changed lines 58-63 from:

(Nota del Traductor): en el artículo original en ingles el procedimiento se describe tal cual lo he traducido al Español, también puede verse en las fotos cual es el resultado. Personalmente no entiendo como el autor puede cortar los pines para posteriormente introducir en ellos el cable fino, me parece mas sencillo soldar los cables a los pines y el montaje debe funcionar exáctamente igual.

It is a good idea to use some hot glue to keep everything in place. It is easiest do this by plugging the two segments with 3 headers into the ISP cable (double-check they are correct!) and adding a drop of glue. (Don't glue the ISP cable itself.) You should have a cable that looks like this:

to:

(Nota del Traductor): en el artículo original en ingles el procedimiento se describe tal cual lo he traducido al Español, también puede verse en las fotos cual es el resultado. Personalmente no entiendo como el autor puede cortar los pines para posteriormente introducir en ellos el cable fino, me parece mas sencillo soldar los cables a los pines y el montaje debe funcionar exactamente igual.

Es buena idea utilizar cola caliente (la que se aplica con pistola) para asegurar todo en su sitio. Es muy fácil hacerlo pinchando los dos segmentos de 3 pines en el cable del ISP (asegúrese de que cada uno está en su sitio) y añadiendo unas gotas de pegamento (cuidado de el cable del ISP). Te debe quedar un cable parecido a este:

June 01, 2010, at 05:20 PM by Equipo Traduccion -
Added line 57:
June 01, 2010, at 05:18 PM by Equipo Traduccion -
Changed lines 22-23 from:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código). Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa. Aquí puedes encontrar información sobre gestores de arranque alternativos.
to:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o después de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código). Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa. Aquí puedes encontrar información sobre gestores de arranque alternativos.
Changed lines 54-58 from:

Una forma simple de empezar con el conexionado del cable es con 6 trozos de cable fino, una pieza de tira de pines macho con 12 pines y dos piezas de tira de pines de 6 pines. Quita el segundo y el quinto pin de la tira larga con unos alicates de punta fina, quita también el noveno y el onceavo. Quita todos lo pines de las 2 secciones pequeñas.

Insert the wires corresponding to ground, reset and power (in that order) in the holes left by the 2nd through 5th pins. Insert the wires corresponding to SCK, MISO and MOSI (in that order) into the holes left by the 9th through 11th pins. Then, take the other ends of the wires, and put MISO, SCK, and RESET into piece, and Power, MOSI, and Ground into the other pieces. (Note that MOSI and Reset "swap sides", so to speak.) Trim the wires so they are all the same length.

to:

Una forma simple de empezar con el conexionado del cable es con 6 trozos de cable fino (de la misma longitud), una pieza de tira de pines macho con 12 pines y dos piezas de tira de pines de 3 pines. Quita el segundo y el quinto pin de la tira larga con unos alicates de punta fina, quita también el noveno y el onceavo. Quita todos lo pines de las 2 secciones pequeñas.

Inserta los cables correspondientes a GND, RESET y POWER (en este orden) en los agujeros dejados por el segundo y el quinto pines. Inserta los cables correspondientes a SCK, MISO y MOSI (en este orden) en los agujeros dejados por los pines 9, 10 y 11. Después toma el otro extremo de los cables y pon MISO, SCK y RESET en una de las piezas de 3 pines. POWER, MOSI y GROUND en la otra pieza de 3 pines. Ten en cuenta que MOSI y RESET se intercambian, por así decirlo. (Nota del Traductor): en el artículo original en ingles el procedimiento se describe tal cual lo he traducido al Español, también puede verse en las fotos cual es el resultado. Personalmente no entiendo como el autor puede cortar los pines para posteriormente introducir en ellos el cable fino, me parece mas sencillo soldar los cables a los pines y el montaje debe funcionar exáctamente igual.

June 01, 2010, at 04:52 PM by Equipo Traduccion -
Changed lines 54-56 from:

A simple way to make the connecting cable is to start with 6 pieces of wire, a piece of male header strip with 12 pins, and two pieces of header strip with 6 pins. Remove the 2nd through the 5th pins of the long strip using needle nose pliers. Remove the 9th through the 11th pins as well. Remove all the pins from the two smaller sections of male header.

to:

Una forma simple de empezar con el conexionado del cable es con 6 trozos de cable fino, una pieza de tira de pines macho con 12 pines y dos piezas de tira de pines de 6 pines. Quita el segundo y el quinto pin de la tira larga con unos alicates de punta fina, quita también el noveno y el onceavo. Quita todos lo pines de las 2 secciones pequeñas.

June 01, 2010, at 04:36 PM by Equipo Traduccion -
Changed lines 16-17 from:

¿Porque puede necesitar la Arduino de un gestor de arranque?

to:

¿Porque puede necesitar la Arduino de un gestor de arranque?.

Changed lines 32-47 from:

Las Arduinos de tamaño normal tienen un conector de 6 pines para el conexionado con el ISP.

Regular-size Arduinos have a 6 pin connector for the ISP. The Arduino Mini does not have this, so you have to make a connector cable. Other than this, the procedure is the same. With slight variations on the process, you can bootload many different configurations of Atmel-based projects.

What do I need?

  • An ISP (eg. AVR ISP MkII)
  • 6 pieces of wire
  • One piece of male header strip, with 12 pins
  • Two pieces of male header stip, 3 pins each

8 AVR Studio software (from Atmel, free download)

How do I make the cable?

You need to connect 6 pins on the Arduino Mini to six pins on the ISP. The six pins are called MISO, MOSI, SCK, RESET, Power and Ground. Three of them correspond to digital I/O pins, numbered 11 - 13. The other three are the Reset, +5V and Ground pins you have probably already been using. (Note that you want to use the +5V pin, not the +9V pin. This is used to supply power to the ISP.)

to:

Las Arduinos de tamaño normal tienen un conector de 6 pines para el conexionado con el ISP. La Arduino Mini no dispone de estos pines, en lugar de ello hay que fabricar un cable de conexión. Al margen de esto el procedimiento es el mismo. Con pequeñas diferencias en el procedimiento puedes cargar diferentes configuraciones de proyectos basados en ATmel.

¿Que necesito?.

  • Un ISP (por ejemplo el AVR ISP MkII).
  • 6 cables de unión.
  • 1 conector de tira de pines macho, de 12 pines.
  • 2 conectores de tira de pines macho, de 3 pines cada uno.

El programa 8 AVR Studio (de Atmel, descarga gratuita).

¿Como hago el cable?.

Necesitas conectar los 6 pines del Arduino Mini (llamados MISO, MOSI, SCK, RESET, POWER y GND) a los 6 pines del ISP. 3 de ellos corresponden a pines E/S digitales, numerados como 11, 12 y 13, los otros 3 son los pines de reseteo, +5v y GND, que probablemente ya hayas utilizado (ten en cuenta que el pin de +5v no es el mismo que el de +9v, este último se utiliza para suministrar voltaje al ISP).

Changed lines 48-50 from:

These pins on the Arduino have to be connected to the corresponding pins on the 6-pin connector coming from the ISP, shown below.

to:

Estos pines en la Arduino son los que hay que conectar con los correspondientes pines del conector de 6 pines del ISP, mostrado a continuación

   
Changed lines 52-55 from:
   

Note that this is the view from the back of the connector. If you hold the connector by the ribbon, with the red stripe uppermost, and the connector facing away from you, this is what you will see.

to:

Ten presente que esta es una vista trasera del conector. Si sujetas el conector mirando hacia afuera de ti y el cable rojo hacia arriba es lo que verás.

June 01, 2010, at 04:04 PM by Equipo Traduccion -
Changed lines 28-31 from:

Bootload the Arduino Mini

How is bootloading the Arduino Mini different from programming other Arduinos?

to:

Carga el gestor de arranque de la Arduino Mini.

¿Cual es la diferencia de cargar el gestor de arranque en la Arduino Mini a otras Arduinos?.

Las Arduinos de tamaño normal tienen un conector de 6 pines para el conexionado con el ISP.

June 01, 2010, at 03:56 PM by Equipo Traduccion -
Changed lines 18-19 from:

Existen cinco razones fundamentales para ello:

to:

Existen cuatro razones fundamentales para ello:

Changed lines 22-26 from:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código). Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa. Aquí puedes encontrar información sobre gestores de arranque alternativos.

  2. Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
  3. The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.
to:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código). Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa. Aquí puedes encontrar información sobre gestores de arranque alternativos.

  2. No utiliza gestor de arranque. El proceso para reemplazar el gestor de arranque en el Arduino también permite sustituirlo por su propia aplicación. La ventaja de esto es que tu programa comenzará su ejecución inmediatamente y te dará 2 KB de memoria adicional para tu programa. La desventaja es que no podrás volver a programar tu Arduino por USB, deberás hacerlo a través de un ISP (al menos hasta que no vuelvas a cargar un gestor de arranque).

  3. El gestor de arranque existente se ha corrompido. Esto es extremadamente raro, sin embargo es posible que, bajo algunas circunstancias la memoria flash del Arduino se corrompa y te resulte imposible cargar tus programas con normalidad. Reinstalar el gestor de arranque debe corregir el problema, es similar a formatear el disco duro del ordenador.
June 01, 2010, at 03:45 PM by Equipo Traduccion -
Changed lines 22-25 from:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código).

Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa.

Here is some info on alternative bootloaders.

to:
  1. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código). Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa. Aquí puedes encontrar información sobre gestores de arranque alternativos.
June 01, 2010, at 03:43 PM by Equipo Traduccion -
June 01, 2010, at 03:25 PM by Equipo Traduccion -
Changed lines 20-23 from:
  1. Tu Arduino no tiene gestor de arranque implementado en ella. Esto

  2. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
  3. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
to:
  1. Tu Arduino no tiene gestor de arranque implementado en ella. Esto puede ocurrir si has sustituido el microcontrolador por un nuevo chip. Esto no es posible en los modelos Mini, en los que el chip no es reemplazable, y todos los modelos Mini salen de fábrica con el gestor de arranque instalado.

  2. Deseas reemplazar el gestor de arranque existente por uno diferente. El gestor de arranque en los Arduinos anteriores a la versión Diecimila imponen un retardo de 10 segundos tras el reseteo, mientras están esperando información procedente del IDE Arduino. Este retraso también ocurre cuando Arduino se conecta o despues de ser programada. Hay gestores de arranque alternativos que eliminan este retraso, incluyendo el gestor de arranque Diecimila, el Adabot, el LilyPad y otros. También puedes descargar el código fuente y modificar el gestor de arranque a tu gusto (ver esta página para más detalles y un enlace al código).

Esto puede ser útil si quieres que tu proyecto arranque inmediatamente, y especialmente útil si recibe una entrada por el puerto serie. Si el gestor de arranque recibe cualquier entrada durante su ejecución asume que el IDE Arduino intenta comunicarse con él y se detiene a esperar, posiblemente de forma indefinida, impidiendo el inicio del programa.

Here is some info on alternative bootloaders.

June 01, 2010, at 12:42 PM by Equipo Traduccion -
Changed lines 16-19 from:

¿Porque necesita la Arduino de un gestor de arranque?

Existen cuatro razones fundamentales para ello:

to:

¿Porque puede necesitar la Arduino de un gestor de arranque?

Existen cinco razones fundamentales para ello:

Changed line 22 from:
  1. Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
to:
  1. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
June 01, 2010, at 12:40 PM by Equipo Traduccion -
Changed lines 14-19 from:

When we refer to "bootloading" the Arduino, we are talking about using a special device (called an In-System Programmer or ISP) to replace the bootloader software.

Why do I need to bootload the Arduino?

There are at least four reasons why you might need to do this:

to:

Cuando hablamos de cargar el gestor de arranque en la Arduino, nos referimos a usar un dispositivo especial llamado Programador In-System, o ISP, para reemplazar el programa de gestión de arranque.

¿Porque necesita la Arduino de un gestor de arranque?

Existen cuatro razones fundamentales para ello:

  1. Tu Arduino no tiene gestor de arranque implementado en ella. Esto
June 01, 2010, at 12:34 PM by Equipo Traduccion -
Changed lines 8-9 from:

Si ya sabes que es un bootloader , por qué quieres hacerlo y estás buscando instrucciones detalladas salta directamente a la sección "Carga el gestor de arranque de la Arduino Mini".

to:

Si ya sabes que es un gestor de arranque , por qué quieres cargarlo y estás buscando instrucciones detalladas salta directamente a la sección "Carga el gestor de arranque de la Arduino Mini".

Changed lines 12-14 from:

El gestor de arranque es un pequeño programa que se ejecuta al encender la placa Arduino o apretar el botón de reset. Su principal función es esperar a que el programa de Arduino instalado en tu ordenador envíe un nuevo programa a la placa Arduino. Esto es importante por que, normalmente, necesitas un dispositivo especial para programar la Arduino. El gestor de arranque es lo que te permite programar la Arduino usando, simplemente, un cable USB.

to:

El gestor de arranque es un pequeño programa que se ejecuta al encender la placa Arduino o apretar el botón de reset. Su principal función es esperar a que el entorno de desarrollo de Arduino instalado en tu ordenador envíe un nuevo programa a la placa Arduino. Esto es importante por que, normalmente, necesitas un dispositivo especial para programar la Arduino. El gestor de arranque es lo que te permite programar la Arduino usando, simplemente, un cable USB.

June 01, 2010, at 12:31 PM by Equipo Traduccion -
Added lines 1-24:

Carga del gestor de arranque de la Arduino Mini.

Por Gian Pablo Vilamil

Este documento explica como cargar un bootloader o gestor de arranque en una Arduino Mini.

Si ya sabes que es un bootloader , por qué quieres hacerlo y estás buscando instrucciones detalladas salta directamente a la sección "Carga el gestor de arranque de la Arduino Mini".

Que es un gestor de arranque y por que cargarlo?

El gestor de arranque es un pequeño programa que se ejecuta al encender la placa Arduino o apretar el botón de reset. Su principal función es esperar a que el programa de Arduino instalado en tu ordenador envíe un nuevo programa a la placa Arduino. Esto es importante por que, normalmente, necesitas un dispositivo especial para programar la Arduino. El gestor de arranque es lo que te permite programar la Arduino usando, simplemente, un cable USB.

When we refer to "bootloading" the Arduino, we are talking about using a special device (called an In-System Programmer or ISP) to replace the bootloader software.

Why do I need to bootload the Arduino?

There are at least four reasons why you might need to do this:

  1. Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
  2. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
  3. Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
  4. The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.
Deleted lines 26-47:

by Gian Pablo Vilamil

This document explains how to bootload an Arduino mini.

If you know what a bootloader is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

What is a bootloader, and what is bootloading?

The bootloader is the little program that runs when you turn the Arduino on, or press the reset button. Its main function is to wait for the Arduino software on your computer to send it a new program for the Arduino, which it then writes to the memory on the Arduino. This is important, because normally you need a special device to program the Arduino. The bootloader is what enables you to program the Arduino using just the USB cable.

When we refer to "bootloading" the Arduino, we are talking about using a special device (called an In-System Programmer or ISP) to replace the bootloader software.

Why do I need to bootload the Arduino?

There are at least four reasons why you might need to do this:

  1. Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
  2. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
  3. Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
  4. The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.

Bootload the Arduino Mini

January 25, 2008, at 01:43 PM by Tom Igoe -
Changed line 19 from:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
to:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
January 04, 2008, at 12:22 AM by Tom Igoe -
Changed lines 68-69 from:

Atach:image012.jpg

to:
January 04, 2008, at 12:21 AM by Tom Igoe -
Changed line 19 from:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see Bootloader this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
to:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
January 04, 2008, at 12:21 AM by Tom Igoe -
Changed line 19 from:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code? and modify the bootloader yourself. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
to:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code and modify the bootloader yourself (see Bootloader this page for more details and a link to the source). This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
January 04, 2008, at 12:20 AM by Tom Igoe -
Changed lines 7-8 from:

If you know what a [Hacking/Bootloader|bootloader]] is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

to:

If you know what a bootloader is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

January 04, 2008, at 12:19 AM by Tom Igoe -
Changed lines 7-8 from:

If you know what a bootloader is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

to:

If you know what a [Hacking/Bootloader|bootloader]] is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

Changed line 19 from:
  1. Replace the existing bootloader with a better bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, teh Adaboot bootloader, and others. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
to:
  1. Replace the existing bootloader with a different bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, the Adaboot bootloader, the LilyPad bootloader, and others. You can also download the source code? and modify the bootloader yourself. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
January 04, 2008, at 12:13 AM by Tom Igoe -
Changed lines 18-22 from:
    # Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a  Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
    # Replace the existing bootloader with a better bootloader. The  bootloader on  Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, teh Adaboot bootloader, and others. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
    # Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
    # The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.
to:
  1. Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
  2. Replace the existing bootloader with a better bootloader. The bootloader on Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, teh Adaboot bootloader, and others. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
  3. Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
  4. The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.
Changed lines 103-105 from:
      # A new bootloader
      # A program of your own. The .hex file will be stored in the applet folder within your Arduino sketch's folder.
to:
  1. A new bootloader
  2. A program of your own. The .hex file will be stored in the applet folder within your Arduino sketch's folder.
January 04, 2008, at 12:12 AM by Tom Igoe -
Added lines 1-112:

Bootload the Arduino Mini

by Gian Pablo Vilamil

This document explains how to bootload an Arduino mini.

If you know what a bootloader is, why you want to do it, and are just looking for specific instructions for the Arduino Mini, then skip ahead to the section called "bootload the Arduino Mini".

What is a bootloader, and what is bootloading?

The bootloader is the little program that runs when you turn the Arduino on, or press the reset button. Its main function is to wait for the Arduino software on your computer to send it a new program for the Arduino, which it then writes to the memory on the Arduino. This is important, because normally you need a special device to program the Arduino. The bootloader is what enables you to program the Arduino using just the USB cable.

When we refer to "bootloading" the Arduino, we are talking about using a special device (called an In-System Programmer or ISP) to replace the bootloader software.

Why do I need to bootload the Arduino?

There are at least four reasons why you might need to do this:

    # Your Arduino does not have a bootloader on it. This might happen if you have replaced the microcontroller with a new chip. This is unlikely to be the case with a  Mini, since the chip is not replaceable, and all Minis have the bootloader installed when shipped.
    # Replace the existing bootloader with a better bootloader. The  bootloader on  Arduinos prior to the Diecimila imposes a 10 second delay after resetting, while it waits for information from the Arduino software. This delay also occurs when the Arduino is powered up, or after programming. There are alternative bootloaders that eliminate these delays, including the Diecimila bootloader, teh Adaboot bootloader, and others. This is useful if you want your project to start up immediately, and especially useful if it receives serial input. If the bootloader receives any input during startup, it will think the Arduino software is trying to talk to it, and delay, possibly indefinitely, starting your program. Here is some info on alternative bootloaders.
    # Not use a bootloader at all. The process for replacing the bootloader on the Arduino also lets you replace it entirely, with your own application. The advantages of doing this are that your application will start immediately, and it will give you an extra 2K of program memory. The disadvantage is that you will no longer be able to program your Arduino over USB - you will have to use the ISP (at least until you replace the bootloader).
    # The existing bootloader has somehow become corrupted. This is extremely unlikely. However, it is possible that under some circumstances the Arduino flash memory may become corrupted, and you may not be able to program the Arduino normally. Reinstalling the bootloader may fix these problems. It's kind of like reformatting your computer's hard drive.

Bootload the Arduino Mini

How is bootloading the Arduino Mini different from programming other Arduinos?

Regular-size Arduinos have a 6 pin connector for the ISP. The Arduino Mini does not have this, so you have to make a connector cable. Other than this, the procedure is the same. With slight variations on the process, you can bootload many different configurations of Atmel-based projects.

What do I need?

  • An ISP (eg. AVR ISP MkII)
  • 6 pieces of wire
  • One piece of male header strip, with 12 pins
  • Two pieces of male header stip, 3 pins each

8 AVR Studio software (from Atmel, free download)

How do I make the cable?

You need to connect 6 pins on the Arduino Mini to six pins on the ISP. The six pins are called MISO, MOSI, SCK, RESET, Power and Ground. Three of them correspond to digital I/O pins, numbered 11 - 13. The other three are the Reset, +5V and Ground pins you have probably already been using. (Note that you want to use the +5V pin, not the +9V pin. This is used to supply power to the ISP.)

    

These pins on the Arduino have to be connected to the corresponding pins on the 6-pin connector coming from the ISP, shown below.

   

Note that this is the view from the back of the connector. If you hold the connector by the ribbon, with the red stripe uppermost, and the connector facing away from you, this is what you will see.

A simple way to make the connecting cable is to start with 6 pieces of wire, a piece of male header strip with 12 pins, and two pieces of header strip with 6 pins. Remove the 2nd through the 5th pins of the long strip using needle nose pliers. Remove the 9th through the 11th pins as well. Remove all the pins from the two smaller sections of male header.

Insert the wires corresponding to ground, reset and power (in that order) in the holes left by the 2nd through 5th pins. Insert the wires corresponding to SCK, MISO and MOSI (in that order) into the holes left by the 9th through 11th pins. Then, take the other ends of the wires, and put MISO, SCK, and RESET into piece, and Power, MOSI, and Ground into the other pieces. (Note that MOSI and Reset "swap sides", so to speak.) Trim the wires so they are all the same length. It is a good idea to use some hot glue to keep everything in place. It is easiest do this by plugging the two segments with 3 headers into the ISP cable (double-check they are correct!) and adding a drop of glue. (Don't glue the ISP cable itself.) You should have a cable that looks like this:

  

Note that the pins on the ends are not connected to anything - I did this so that the header would be exact length of the Arduino Mini, making it easier to align. Note the order of the wires relative to the red strand on the programmer cable. When the red strand is on the top, and the cable is on the far side of the connector, the colors are white (MISO), green (SCK) and yellow (RESET). In the picture below, with the red strand on the bottom, and the ribbon cable on the near side, the cables are black (GND), blue (MOSI) and red (+5V):

Mount your Arduino Mini on a breadboard, as shown (note that you will have to remove the LED on pin 13 during programming):

Line up the male header with 12 pins along the side of the Arduino Mini, so that it lines up with the pins. The Power, Reset and Ground wires should line up. (Note that the LED has been removed.) It should look like this:

Atach:image012.jpg

Here is a view from above:

If you are using a USB adapter with your Arduino Mini, plug it into your computer now. If you are not, plug in whatever power source you are using. The Arduino must be powered for ISP to work.

Plug the USB cable from the ISP into your computer now. You should see two green LEDs light up on the programmer. Note: you should not have anything plugged into pins 11-13 of the Arduino. This may interfere with the operation of the programmer.

From this point on, the instructions are exactly the same as those for bootloading any Atmel 168 microcontroller. You can use the instructions elsewhere on this site, or continue on.

How to load the bootloader using Arduino environment?

You can now bootload the Arduino using the Arduino environment. Open Arduino on your computer, set the type of board you are using (Arduino Mini), open the Burn Bootloader menu and choose your programmer. (In this example, AVRISP MkII.)

   

Unlike regular Arduino programming, you don't have to press the reset switch. The programmer resets the Arduino for you. This will install (or restore) the original Arduino bootloader. However, this is of little benefit, unless you are trying repair the bootloader, or your mini somehow came without one.

How to load the bootloader using AVRStudio?

To install an alternative bootloader, you will need a piece of software called AVR Studio. Download it from here. Unfortunately, AVR Studio only exists for the Windows environment. However, you can use the instructions for bootloading the Atmel168 on Mac OS/X.

Run AVR Studio. Press cancel to skip the opening screen.

Press the Con button. It is the tiny little button labeled "CON" that looks like a little chip. Then, select the type of ISP that you are using: in this example, AVR ISP Mk II.

You will see the firmware upload dialog box, as shown below. Confirm that all the settings are as shown in the dialog. In the field "input HEX file", browse to the file you want to upload. This can be either:

      # A new bootloader
      # A program of your own. The .hex file will be stored in the applet folder within your Arduino sketch's folder.

Press the "Program" button. You should see some activity in the status window. Press "Verify" if you want to confirm that everything is OK. Disconnect the ISP by removing its USB cable from the computer. If you want to play it safe, remove power from your Arduino. Disconnect the ISP header from your breadboard.

Your Arduino Mini is now bootloaded!

January 04, 2008, at 12:11 AM by Tom Igoe -

Share