View Single Post
  #391  
Old 17-12-2016, 12:49 PM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164
Here is detailed info how to flash firmware to the Cam86. Hopefully it will be useful to someone:

1. Connect Cam86 and let Windows install the FTDI drivers.

2. Update firmware on the FTDI device:
- Run the MPROG utility
- In Mprog, Click on the magnifying glass icon and check that it shows number of programmed devices = 1. If it shows more, unplug any other USB devices that may contain FTDI chips. if less, something has not installed properly.
- Open the template file cam86.ept, and click on the 'program existing devices' button.

3. Remove power to Cam86, wait few seconds, plug power back in

4. Setup FTDI device in device manager
- In device manager under "Universal Serial Bus Controller" find "USB Serial Controller A" and "USB Serial Controller B", right click on one of them and select properties.
- Under tab Advanced unclick loadVCP and click OK
- Do the same of the other device

5. Flash firmware to the Atmega328P chip
- Run Cam86 Programmer
- Click "Open", you should see something like this:
Number of devices : 2

device ¹0 :
SerialNumber :CAM86A
Description :CAM86 A

device ¹1 :
SerialNumber :CAM86B
Description :CAM86 B
Open :CAM86 B
BitMode Ok
SetBaudRate : 60000

- Click "Prog Enable", you should see something like this:
signature: 1E0F95
ATmega328P

- Click "Read Fuses", the fuses fields will be filled with binary values (1s and 0s)

- EXTREME CARE NEEDED HERE or you can disable the internal oscillator in the ATmega328P chip
Type in new fuses values as follows:
Fuse high: 11011001 (this is probably identical to what was read from the chip)
Fuse low: 11100010
Fuse EX: 11111111

- DOUBLE CHECK WHAT YOU ENTERED

- CHECK AGAIN

- Click "Write Fuses", you should see something like this:
E2
FF


- Click "Chip Erase", you should see something like this:
FF AC 80 00


- Click "Write PROGR", select the firmware in the cam86-firmware folder.
The flashing process will output
Page 1
Page 2
...
Then the program got stuck at around page 30. I waited about 30 seconds and eventually it finished with Page 219. Be patient.
When it finishes it will show over than 200 pages.

- Unplug power, wait a few seconds and you should have a working Cam86

- Install the ASCOM driver and test with CamView utility.
Reply With Quote