Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB Errors of SN 24 #231

Open
ForrestErickson opened this issue May 14, 2023 · 4 comments
Open

USB Errors of SN 24 #231

ForrestErickson opened this issue May 14, 2023 · 4 comments
Assignees
Labels
Hardware Schematic and PCB and Enclosure

Comments

@ForrestErickson
Copy link
Collaborator

The DUT would not enumerate through the USB hub.
Made direct connect and it enumerated to COM9

Tried to program DUT and failed

Sketch uses 7624 bytes (24%) of program storage space. Maximum is 30720 bytes.
Global variables use 917 bytes (44%) of dynamic memory, leaving 1131 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xfc
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
the selected serial port Double check chip, or use -F to override this check.
does not exist or your board is not connected

Second attempt

Arduino: 1.8.19 (Windows 10), Board: "Arduino Duemilanove or Diecimila, ATmega328P"
Sketch uses 7624 bytes (24%) of program storage space. Maximum is 30720 bytes.
Global variables use 917 bytes (44%) of dynamic memory, leaving 1131 bytes for local variables. Maximum is 2048 bytes.
avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x10, resp=0xfc
avrdude: error reading signature data for part "ATmega328P", rc=-3
avrdude: error reading signature data, rc=-3
avrdude: error reading signature data, rc=-3
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Third attempt

Uploading and never terminated.

@ForrestErickson ForrestErickson added the Hardware Schematic and PCB and Enclosure label May 14, 2023
@ForrestErickson ForrestErickson self-assigned this May 14, 2023
@ForrestErickson
Copy link
Collaborator Author

Reboot the lab PC and try again. Still no success programing.
image
Programing never terminats.

Oscilliscope on the UART with Yellow CH1 on controller RX, Cyan CH2 on controller TX. Their is bidirectional communication but the programming never terminates.
image

@ForrestErickson
Copy link
Collaborator Author

For comparison this is a normal program traffic. Measured on DUT 23 while programing the factory test firmware.

image

@ForrestErickson
Copy link
Collaborator Author

Set the IDE for verbose upload. Delete some blank lines for readability

Error Message:

Arduino: 1.8.19 (Windows 10), Board: "Arduino Duemilanove or Diecimila, ATmega328P"
Sketch uses 7624 bytes (24%) of program storage space. Maximum is 30720 bytes.
Global variables use 917 bytes (44%) of dynamic memory, leaving 1131 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM9 -b57600 -D -Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex:i

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM9
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xfc
Hardware Version: 2
Firmware Version: 0.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

the selected serial port
does not exist or your board is not connected
avrdude: AVR device initialized and ready to accept instructions
Reading |
avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x10, resp=0xfc
avrdude: error reading signature data for part "ATmega328P", rc=-3
avrdude: error reading signature data, rc=-3
avrdude done. Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@ForrestErickson
Copy link
Collaborator Author

This is the programing dump for a normal programing sequence. DUT SN23.

Sketch uses 7624 bytes (24%) of program storage space. Maximum is 30720 bytes.
Global variables use 917 bytes (44%) of dynamic memory, leaving 1131 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM9 -b57600 -D -Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex:i

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM9
     Using Programmer              : arduino
     Overriding Baud Rate          : 57600
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     ByteDelay                     : 0
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino
     Hardware Version: 2
     Firmware Version: 1.16
     Vtarget         : 0.0 V
     Varef           : 0.0 V
     Oscillator      : Off
     SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex"
avrdude: writing flash (7624 bytes):

Writing | ################################################## | 100% 2.19s

avrdude: 7624 bytes of flash written
avrdude: verifying flash memory against C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex:
avrdude: load data flash data from input file C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex:
avrdude: input file C:\Users\Admin\AppData\Local\Temp\arduino_build_552469/GPAD_Factory_Test1.24B.ino.hex contains 7624 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.64s

avrdude: verifying ...
avrdude: 7624 bytes of flash verified

avrdude done. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Schematic and PCB and Enclosure
Projects
Status: No status
Development

No branches or pull requests

1 participant