cmucam3-hardware (#1) - Can't re-flash (#5) - Message List

Can't re-flash

I've been testing some code on the CMUCam3, and now I cannot upload new firmware anymore. Under Mac OS X, Linux, or Ubuntu, I can no longer synchronize with the camera i.e., uploading new firmware fails. However, the code that is currently on the camers functions correctly. Also, the leds indicate that the camera has entered bootloader mode. Any ideas?

Keith

  • Message #11

    Are you using a USB serial adapter? Sometimes they can get a little funky.

    Also, you might need to run a terminal emulator first to correctly set up the serial port. lpc21isp doesn't always configure everything.

    • Message #12

      I've tried several different serial USB converters all with the same result. I've also tried the terminal emulator first; in particular, I connected via kermit first, then tried lpc21isp. Also, it was working before, the synchronization problem only appeared recently.

      Keith

      • Message #13

        Do you have some way of testing your serial port with another device? I would try using the flash utility from Philips in Windows if all else fails.

        In rare situations I have seen cases where the cpu seems to get into a bad state. Usually disconnecting the power supply, serial cable and then turning the board on for some time (10 seconds) to let any capacitors drain helps. Plug it back in and try again.

        Along the same lines, sometimes turning the board on and holding down the ISP button for 10-15 seconds before letting go helps. These problems usually only happen when the CMUcam is connected to some other board that stops the voltage from returning all of the way to 0 when the power is shut off (some serial adapters leak voltage and do this).

        When the code already flashed on the board runs, does it output serial data correctly? Can you tell if it reads any serial data?

        -Anthony

        • Message #16

          Do you have some way of testing your serial port with another device? I would try using the flash utility from Philips in Windows if all else fails.

          The serial port works with several other devices without trouble. The Philips utility now does not work at all; whenever I click the upload, I get a message saying cannot communicate with the test board.

          In rare situations I have seen cases where the cpu seems to get into a bad state. Usually disconnecting the power supply, serial cable and then turning the board on for some time (10 seconds) to let any capacitors drain helps. Plug it back in and try again.

          Tried this. No luck.

          Along the same lines, sometimes turning the board on and holding down the ISP button for 10-15 seconds before letting go helps. These problems usually only happen when the CMUcam is connected to some other board that stops the voltage from returning all of the way to 0 when the power is shut off (some serial adapters leak voltage and do this).

          Tried this too. No good.

          When the code already flashed on the board runs, does it output serial data correctly? Can you tell if it reads any serial data?

          The code on the board runs and outputs data correctly; no capability for reading serial data was included in the code.

          Keith

          • Message #19

            This could be a hardware issue. Make sure that the serial bypass jumper is connected correctly. If you have access to an O-scope, you can definitively say there is a hardware problem by probing pin 14 (P0.1 RX0) on the lpc2106. If you see the flashing utility toggeling pin 14 and the processor is in programming mode, then something probably damaged the cpu. Usually if the cpu gets fried it can't run code anymore, which makes this a strange case.

            -Anthony