0

I'm having a very hard time making a conenction to the board reliably.

I opened Arduino IDE, tried to upload:

ERR: Cannot find ameba on mbed driver! Please re-plug Ameba.

replugged, reuploaded, same thing:

ERR: Cannot find ameba on mbed driver! Please re-plug Ameba.

replugged, reuploaded again. Then it worked, BUT the serial monitor cannot be opened, because the board on COM3 is not available, which doesn't make much sense because I just flashed that board! Trying reupload:

ERR: Cannot find ameba on mbed driver! Please re-plug Ameba.

I replug and reuploaded several times more, then randomly being able to open the serial monitor, I see this printed:

Start RESET program
Enter target_flash_init()
!cpuclk:2
!baud:1
!delay:23
!dummy:2
After flash control setting : *(0x14) = 0x21
After pin seTIMEOUT !!!
main : usb disconnected

Why does the board disconnect from USB? I have to replug the USB like 5 times before I can even upload a program, getting a serial monitor open isn't easy either. This is horrible. How can i keep the connection without replugging the USB all the time?

Here's another serial output I get:

maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
maybe_erase = 1
TIMEOUT !!!
main : usb disconnected

maxbarthel 未選取的回答