Uh Oh, I can't "select a connected device" to install a new program.

8 views
Skip to first unread message

Gowan

unread,
Dec 19, 2010, 11:57:11 AM12/19/10
to RuggedCircuits
The following code sets up and starts a fast PWM with a duty cycle of
0xA8.
The board never appears as a choice in the "connected devices" window
of the Gator Interface.
I have no terminal open, let alone connected to the board.
I tried reset, unplug, reboot the pc, watch if it shows up very
briefly so I can click it.
Any tips? thanks

#include "pwm3v.h"
volt_set = 0xA8; //(3.3/5)*255
void pwm_init()
{
DDRB = (1<<DDB3); // ;SET PORTB3 FOR OUTPUT
TCCR0A = 0b10000011;
TCCR0B = 0b00000001; //divide by 1024
OCR0A = volt_set;

Gowan

unread,
Dec 19, 2010, 11:40:22 PM12/19/10
to RuggedCircuits
I fixed it.
I unplugged the USB from the pc, and then held the RESET button down
while plugging it in again.
?
No problems since.

Rugged Circuits

unread,
Dec 20, 2010, 3:49:00 PM12/20/10
to RuggedCircuits
This type of problem can occur when your application starts sending
serial data as soon as it starts. In these circumstances Windows can
think that a device like a serial mouse is attached to the computer
and doesn't allow the normal driver to be loaded.

The solutions include what you did, hold the reset button as you plug
the board in, or make sure your application doesn't send any serial
data for a little while after the application starts.

Gowan

unread,
Dec 20, 2010, 6:33:43 PM12/20/10
to RuggedCircuits
Thanks, that clears that up. Peter
Reply all
Reply to author
Forward
0 new messages