lunes, 29 de junio de 2015

Instrucciones para la actualización de software integrado (embebido)

Como hemos visto en la anterior entrada la forma para cargar el firmware en un procesador en blanco (tal como viene de la tienda) veremos ahora la forma de actualizar un procesador con un firmware viejo a uno mas actual, sirviendonos para ello de la propia mega, sin necesidad ya de un programador willete.

Este es el caso si compras una cpu Motorola MC68HC908GP32 especifica para mega y la quieres actulizar.

Puedes utilizar Hyperterminal o EasyTherm para actualizar tu software integrado. Each is described below. Cada formula se describe a continuación.



Hyperterminal Hyperterminal



Here are instructions for using Hyperterm.exe for updating the embedded software (all Windows installations has the Hyperterminal application - use a "find-file" function to search for "hyperterm.exe"): Aquí están las instrucciones para el uso de hyperterm.exe para actualizar el software integrado (todas las instalaciones de Windows tienen la aplicación Hyperterminal puedes buscar el programa en tu PC buscando "hyperterm.exe"):

Empecemos pues

1) Remove the power from MegaSquirt. 1º.- Quita la alimentación de Mega.

2) Put a bootloader jumper pin (a bent piece of snipped off lead from a resistor, etc. will work fine - bend it into a U shape) across the two holes labeled "boot" on the V2.2 PCB (short R6 for V1.01 boards), 2º.-  Coloca un puente en el pin boot loader  (un trozo doblado de una resistencia funciona bien - doblarlo en forma de U) a través de los dos agujeros con la etiqueta "boot" en la PCB V2.2 o en la Mini-ms (cortocircuita R6 para PCB V1.01)




3) Hook-up a serial cable from the computer to the MegaSquirt ® box and fire up Hyperterminal (Hyperterm.exe). 3º.- Conecta un cable serial del PC a la caja Mega y enciende Hyperterminal (hyperterm.exe).

Note: you do not use the MegaTune to perform the firmware upload - this is done with the terminal program Hyperterm (or similar, see below), and do not have MegaTune, or any other serial data application running on your PC. Nota: No utilizar el MegaTune para realizar la carga de firmware - esto se hace con el Hyperterm (o similar), y no enciendas MegaTune, o cualquier otra aplicación de datos en serie en tu PC. At this point, leave the MegaSquirt unit unpowered. En este momento, deje la unidad Mega sin corriente.

4) You will see a Hyperterminal screen when you execute - type in any name you want in the box, and make sure the Red telephone with the little yellow telephone next to it is highlighted. 4º.-  Usted verá una pantalla de Hyperterminal - escriba el nombre que desee en el cuadro, y asegúrese de que el teléfono rojo con el teléfono amarillo junto a él se ponen en relieve.

5) A new window appears. 5º.- Aparecerá una nueva ventana. On the " Connect Using " selection, select either COM1 or COM2, depending on your serial connection. En la página "Conectar usando", seleccione COM1 o COM2, dependiendo de donde tengas enchufada la conexión en serie.

6) Then another window with comm port settings pops up. 6º.- A continuación, aparece otra ventana con la configuración de puerto de comunicación .



Selecciona 9600 bits/s, 8 data bits, no parity, 1 stop bit, y selecciona flow control "None" - esto es muy importante. Hyperterm ya esta funcionando.

7) Apply power to MegaSquirt ® EFI Controller, then hit < Enter >. 7º.- Aplique corriente a la Mega, después haz clic en <Entrar>. You should see the "Boot>" prompt appear in the terminal screen. Usted debe ver aparecer "Boot" en la pantalla del terminal.

8) Type " H " and you will be shown the options available in bootloader mode . 8º.- Escribe "H" (help) y se le mostraran las opciones disponibles en el modo de arranque.

9) Hit " W " for "Wipe" - this erases the entire flash array (except the section running the bootloader). 9º.- Haga clic en "W" (wipe) para "limpiar" - esto elimina la memoria flash al completo (excepto la sección que se esta ejecutando, el gestor de arranque).

10) Hit " U " for "Upgrade," which will respond with the text "wait ...". 10º.- Haga clic en "U" (upgrade) para "Actualizar" donde responderá con el texto "wait..." (espera).

11) Then under the " Transfer " menu, select " Send Text File... " 11º.- A continuación, en la pestaña del menú"Transfer" seleccione "Enviar archivo de texto ..." (No utilice el modo "Enviar archivo" - ya que está enviando un archivo de texto).

12) Set " Files of type " to " All files " and select the .s19 file containing your assembled code (megasquirt.s19). 12º.- selecciona "Archivos de tipo" y "Todos los archivos" y seleccione el archivo .S19  que es el archivo que contiene el código de ensamblado (megasquirt.s19). No verás actividad en la pantalla durante unos 40 segundos.

13) Then the prompt will come back, which means the operation is finished. 13º.- A continuación, el indicador volverá, lo que significa que la operación ha terminado.

14) Turn off power to MegaSquirt ® and shut down Hyperterminal. 14º.- Apaga la Mega y cierra Hyperterminal.

15) Remove the jumper, and you are ready to go. 15º.- Quita el puente, y ya está listo.




Downloader Downloader (discontinuado)

OR if you would rather use something simpler than Hyperterminal, Si prefieres utilizar algo más simple que Hyperterminal,
 utiliza el programa de descarga:

1) Turn off the power to MegaSquirt ® (remove the stim). 1º.- Apaga la corriente de Mega.

2) Dowload the .s19 file you want to use, and save it on your hard drive, say on the desktop . 2º.- Descarga el archivo .S19 que deseas utilizar, y guardarlo en tu disco duro, por ejemplo en el escritorio.

3) Get the downloader file by clicking the link . 3º.- Obtener el archivo de descarga. Save ms2dl200_setup.exe wherever you saved the .s19 file ( desktop ). Guarda  ms2dl200_setup.exe donde guardaste el archivo. S19 archivo (escritorio).

4) Navigate in Windows to the directory (desktop) containing ms2dl200_setup.exe and the .s19 file. 4º.- Explorar en Windows (escritorio) que contiene ms2dl200_setup.exe y el archivo .S19. Double-click on the ms2dl200_setup file, and follow the prompts to install the downloader on your computer.(Be sure to click 'Run' at the 'publisher could not be verified' warning.) The setup will install the downloader in the 'C:\Program Files\MegaSquirt folder', and create a shortcut in the Start menu, and an icon on the desktop. Haz doble clic en el archivo ms2dl200_setup, y sige las instrucciones para instalar el programa de descarga en tu ordenador. (Asegúrese de hacer clic en "Ejecutar" cuando salga el mensaje de advertencia "el editor no pudo ser verificado") El programa de instalación instalará el programa descargado en C : \ Program Files \ MegaSquirt ', y creara un acceso directo en el menú Inicio, y un icono en el escritorio. 

5) Put in the H1 jumper, (or short out R6), 5º.- Poner el puente en H1, (o cortocircuito en R6)

6) Power up the MegaSquirt 6º.- Enciende la Mega.

7) Double click on the 'MS-II Download 104' icon on your desktop. 7º.- Haz doble clic en el icono en escritorio "MS-II Download 104". The program will open with a blank screen. El programa se abrirá con una pantalla en blanco.

8) Under 'File/Settings' set the com port you use to connect to MegaSquirt ® EFI Controller, and the connection speed (9600 for MS-I, 115200 for MS-II) 8º.- En "Archivo / Configuración" establecer el puerto COM que utiliza para conectar a Mega, y la velocidad de conexión (9600 para MS-I, 115200 para MS-II)

9) 'File/Open' the .S19 file you saved earlier (the desktop, or whenever else you saved it). 9º.- Luego ve a "Archivo / Abrir" el archivo S19. que guardó antes (escritorio). The download will begin automatically. La descarga comenzará automáticamente.

10) Watch it report status as the download proceeds (depending on the level of 'verbosity' you have chosen). 10º.- Mira que informe sobre la situación a medida que avanza la descarga. Watch for a line that tells you 'verification succeeded', and you are done. Esté pendiente de una línea que dice que “verification succeeded”, y ya está.

11) Pull the jumper off R6 (or the boot jumper), cycle the power to MegaSquirt ® (turn it off and on), and start tuning. 11º.- Retire el puente de R6 (o el jumper), apague y encienda Mega y comienza a tunear.




EasyTherm EasyTherm

OR simpler yet, O más simple aún:

Use EasyTherm . Utiliza EasyTherm. Tenga en cuenta que los valores por defecto en EasyTherm recomiendan sensores General Motors. To use EasyTherm: Para utilizar EasyTherm:
  1. Connect your MegaSquirt ® to your PC, Conecta tu Mega a tu PC
  2. Puentea el jumper de boot (arranque),
  3. Power up MegaSquirt ® with at least a 12 volt supply, Enciende Mega con al menos un suministro de 12 voltios,
  4. Launch EasyTherm, Arranque EasyTherm,
  5. Pick the COM port you use to communicate with MegaSquirt ® EFI Controller, Elige el puerto COM que utilizas para comunicarte con Mega
  6. Select the code type, or pick the 'Custom' option for any .s19 file not shown in the list, Selecciona el tipo de código, o elige la opción "custom" para cualquier archivo S19 que no aparezca en la lista,
  7. Click 'Download' Button, Haz clic en 'Download',
  8. When prompted (for the 'Custom option'), browse to the .s19 file you would like to download, Cuando se te pregunte (por la "opción personal"), busque el archivo. S19 que desea grabar.
  9. Click 'OK' and the download process begins. Haz clic en 'Aceptar' y comienza el proceso de grabado.
When you are done, remove the power to MegaSquirt ® EFI Controller, and remove the boot jumper. Cuando termine, quita la corriente de Mega, y quita el puente de arranque.