| View previous topic :: View next topic |
| Author |
Message |
BasicFox
Joined: 15 Mar 2009 Posts: 59 Location: Belgium
|
Posted: Sat Dec 05, 2009 2:21 pm Post subject: Flash OSv3 board using OSIF |
|
|
I can't figure out how to flash my OSv3 with the OpenServo Test app.
This is what i've done:
Programmed the atmega with the ATmega168_OpenServo.hex (28kB) using ponyprog.
Connected the OSv3 and PC with the OpenServo Test app using the OSIF (latest firmware) all other functions of the program are working
Selected HEX file
Select the hex file and press flash
I get Flash failed in the log and this in the dos window:
| Code: | Reset!
Loaded 10044 bytes between: 0000 to 273B
page count 78
page 0 0
page 0 80
page 1 0
page 1 80
USB error: usb_os_find_devices: found \\.\libusb0-0001--0x1964-0x0001 on bus-0
Verify FAIL. Resending page
page 1 80
USB error: usb_os_find_devices: found \\.\libusb0-0001--0x1964-0x0001 on bus-0
Verify FAIL. Resending page
page 1 80
USB error: usb_os_find_devices: found \\.\libusb0-0001--0x1964-0x0001 on bus-0
Verify FAIL. Page sent twice. ABORTING
Error flashing servo
Flash failed! |
Do you recongize this USB error?
What is also confusing is when i build my new code the bootloader is not included into the hex. so i get a hex named ATmega168_OpenServo_V3.hex (23kB), is that normal or do i have to add the bootloader files too?
Thanks, Ben |
|
| Back to top |
|
 |
jharvey co-admin
Joined: 15 Mar 2009 Posts: 350 Location: Maine USA
|
Posted: Sat Dec 05, 2009 2:35 pm Post subject: |
|
|
I'm not exactly sure what the source of the USB error is. I find a reboot has allowed for that to go away in my case. Perhaps libusb is less developed against the most recent service MS service packs. MS has a tendency to do things like that. I haven't tracked that down.
Also you will likely run into an issue with a windows system. You may find that the file at say c:\ shows up as c:/. That's a cross platform compile problem. If you run this from a Linux box things are much more stable. Ginge developed it on a Linux box, then compiled it for both platforms, because of that, the Linux version is more stable. |
|
| Back to top |
|
 |
BasicFox
Joined: 15 Mar 2009 Posts: 59 Location: Belgium
|
Posted: Mon Dec 07, 2009 12:01 pm Post subject: |
|
|
This is from the wiki:
| Code: | OSIF --> OpenServo
1. SDA/RESET --to-- 3, 8 SDA (MOSI)
2. +V --to-- 1,2 VBatt +6V min +7.5 max (typical motor max)
3. GND --to-- 5, 7, 9,10 GND
4. SCL/SCK --to-- 6 SCK (SCL)
5. +5V --to-- Not connected
6. RESET --to-- Not connected
7. MISO --to-- Not connected
8. MOSI --to-- Not connected |
is the SDA/RESET connected to both pin 3 and 8 of the OS? If i only connect it to pin 8, i can find the device but if i connect it to both i find nothing |
|
| Back to top |
|
 |
jharvey co-admin
Joined: 15 Mar 2009 Posts: 350 Location: Maine USA
|
Posted: Tue Dec 08, 2009 10:02 am Post subject: |
|
|
On the below page in the "Test OpenServo operation" section I show how I have my wires connected. I can and have boot strapped with this setup.
http://www.openservo.com/ConstructionTutorial_MG995
I only connected to pin 3. Not sure about the details relative to pin 8. |
|
| Back to top |
|
 |
|