04-15-2009, 09:12 PM
- Software and files
- Bootloader
- Firmware
- Recording Firmware on Linux
- Recording Firmware on Windows
- Checking
1.- SOFTWARE AND FILES
The Bootloader, Firmware and needed software is here:
http://git.gnome.org/cgit/chronojump/tre...c-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
- Connect Chronopic to PC
- Uncompress PIC_downloader_1.2_chronopic.tgz
- Go to newly created directory
- 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: ......... - 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
- Execute PIC_downloader.exe
- Select the hex file you want, eg. chronopic_firmware.hex
- Select the port to use (COM1, COM2, etc..)
- Select the speed: 19200 (bauds)
- Push botton "Write"
- 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.