Re: unkown Device ID .....

donvukovic
2014-01-23
2014-01-27
  • donvukovic
    donvukovic
    2014-01-23

    I have ported the PIC boot code to a PIC16f1823 device, using the alternate USART pins RC4/RC5.

    I am also trying to use the POWER OFF circuit suggested at the bottom of:
    http://tinypicbootload.sourceforge.net/hardware_connection.html

    I have modified the PIC code to use the alternate pins and wired up the transistors for the POWER OFF circuit.

    On my logic analyzer I see the RTS turn the power off, the serial $C1 come from a USB serial port, the $37, $42 come from the PIC.

    https://dl.dropboxusercontent.com/u/74667085/tinyboot/logic%201.png
    https://dl.dropboxusercontent.com/u/74667085/tinyboot/logic%202.png

    The PC app sees:

    Check Device...
    send: C1
    receive: 00, 37

    It would seem that the POWER OFF is being seen as a $00 byte by the USB serial port.

    Has anyone tried the POWER OFF circuit ?
    Is there a way to clear the Rx buffer in the PC App before the $C1 is sent out ?

    Thank You for your assistance.

    Don

     
  • Dan
    Dan
    2014-01-26

    hi,donvukovic

    Please try the following.

    Form1.cs line 2203
    // send "ask" to PIC
    if (!checkVirtualPIC.Checked)
    {
    serBuffer[0] = 0xC1;
    serialPort.Write(serBuffer, 0, 1);
    ADD--------------------------------------------------
    serialPort.DiscardInBuffer();


                    }
    
     
  • donvukovic
    donvukovic
    2014-01-27

    Thank You Dan,

    It works !

    Don