Chronojump English Forum
Record Chronopic Firmware - Printable Version

+- Chronojump English Forum (http://forum.chronojump.org)
+-- Forum: Software and hardware (/forumdisplay.php?fid=1)
+--- Forum: Hardware Chronopic and others (/forumdisplay.php?fid=3)
+--- Thread: Record Chronopic Firmware (/showthread.php?tid=20)



Record Chronopic Firmware - xavi - 04-15-2009 09:12 PM


  1. Software and files
  2. Bootloader
  3. Firmware
  4. Recording Firmware on Linux
  5. Recording Firmware on Windows
  6. Checking


1.- SOFTWARE AND FILES

The Bootloader, Firmware and needed software is here:
http://git.gnome.org/cgit/chronojump/tree/chronopic-firmware

2.- BOOTLOADER

If you are creating Chronopics you need to first record the bootloader, ask to the firm that is creating them that they should record chronopic_bootloader.hex using the configuration word 3F39.

If you bought a Chronopic but you want to change firmware, then do'nt worry about Bootloader, it's recorded and you don't need to touch it.

3.- FIRMWARE

Currently there are two firmwares:
  • chronopic_firmware.hex (original with 50 ms of minimal detecting time)
  • chronopic_firmware_10ms_unvalidated.hex (new, untested yet with 10 ms of minimal detecting time)


4.- RECORDING FIRMWARE ON LINUX

Update (12-6-2010): Since Chronojump version 0.9.2, there's an application included called Chronopic-firmwarecord that allows to record firmware easily. it contains help.


Old instructions:
Use the software PIC_downloader_1.2. This is a modified version of Skypic board PIC_downloader with a clock suitable for Chronopic

  1. Connect Chronopic to PC
  2. Uncompress PIC_downloader_1.2_chronopic.tgz
  3. Go to newly created directory
  4. Do:

    ./PIC_downloader chronopic_firmware.hex -P/dev/ttyUSB1

    (Change /dev/ttyUSB1 for the used USB-serial port, maybe /dev/ttyUSB0)

    You will see this:
    Code:
    $ ./PIC_downloader chronopic_firmware.hex -P/dev/ttyUSB1
    PIC_downloader 1.2. Descarga de programas en la tarjeta Skypic
    Licencia GPL

    Fichero: chronopic_firmware.hex
    Puerto serie: /dev/ttyUSB1

    Esperando conexion: .........
  5. Now the software is waiting to connect with the Bootloader on the Chronopic. Push RESET button on Chronopic and this will appear:
    Code:
    Esperando conexion: ...................................... - OK
    Writing:  - OK
    Activating program... - OK


The duration is the process is 1 second approx. If at first time you don't succeed, just do it again.

If you want to do more tests, you can load a different firmware:
$ ./PIC_downloader ledp.hex -P/dev/ttyUSB1
This makes blink D1 led.


5.- RECORDING FIRMWARE ON WINDOWS

Update (12-6-2010): Since Chronojump version 0.9.2, there's an application included called Chronopic-firmwarecord that allows to record firmware easily. it contains help.


Old instructions:
Use PIC_downloader_1.08_Windows.zip
  1. Execute PIC_downloader.exe
  2. Select the hex file you want, eg. chronopic_firmware.hex
  3. Select the port to use (COM1, COM2, etc..)
  4. Select the speed: 19200 (bauds)
  5. Push botton "Write"
  6. click reset on Chronopic


Firmware will record fast


6.- CHECKING

When it's recorded, remove USB cable and connect again. Then leds D1 and D4 will be permanently on. When you push test button D1 status will change.

Thanks to Juan and Juanfer.