chipKIT® Development Platform

Inspired by Arduino™

ckipKit uC32 avrdude: stk500v2_ReceiveMessage(): timeout

Created Sun, 08 Feb 2015 22:56:01 +0000 by helpme


helpme

Sun, 08 Feb 2015 22:56:01 +0000

Greetings,

With two newly obtained ChicpKit uC32 boards I try to download a simple sketch. The boards appear to communicate, i.e., leds change flashing patterns, and then I receive:

avrdude: stk500v2_ReceiveMessage(): timeout

at the terminal.

With the SHIFT key depressed while clicking download button in mpide it appears to exchange information up to the point at which the actual sketch is downloaded.

[/usr/share/mpide-0023-linux32-201311118-test/hardware/tools/avrdude] [-C/usr/share/mpide-0023-linux32-201311118-test/hardware/tools/avrdude.conf] [-v] [-v] [-v] [-v] [-p32MX320F128H] [-cstk500v2] [-P/dev/ttyUSB0] [-b115200] [-D] [-Uflash:w:/tmp/build3249825775786699916.tmp/UTFT_ViewFont.cpp.hex:i] 

avrdude: Version 5.11, compiled on Sep  7 2011 at 19:34:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/share/mpide-0023-linux32-201311118-test/hardware/tools/avrdude.conf"
         User configuration file is "/home/fred/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [01] 
avrdude: Recv: . [00] 
avrdude: Recv: . [0b] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [01] 
avrdude: Recv: . [00] 
avrdude: Recv: . [08] 
avrdude: Recv: S [53] 
avrdude: Recv: T [54] 
avrdude: Recv: K [4b] 
avrdude: Recv: 5 [35] 
avrdude: Recv: 0 [30] 
avrdude: Recv: 0 [30] 
avrdude: Recv: _ [5f] 
avrdude: Recv: 2 [32] 
avrdude: Recv: . [02] 
avrdude: stk500v2_getsync(): found STK500 programmer
         AVR Part                      : 32MX320F128H
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: STK500
avrdude: Send: . [1b] . [02] . [00] . [02] . [0e] . [03] . [90] . [86] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [02] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [17] 
avrdude: Send: . [1b] . [03] . [00] . [02] . [0e] . [03] . [91] . [86] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [16] 
avrdude: Send: . [1b] . [04] . [00] . [02] . [0e] . [03] . [92] . [82] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [04] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [11] 
         Hardware Version: 0
         Firmware Version Master : 0.00
avrdude: Send: . [1b] . [05] . [00] . [02] . [0e] . [03] . [9a] . [8b] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [05] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Topcard         : Unknown
avrdude: Send: . [1b] . [06] . [00] . [02] . [0e] . [03] . [94] . [86] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [06] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [13] 
         Vtarget         : 0.0 V
avrdude: Send: . [1b] . [07] . [00] . [02] . [0e] . [03] . [98] . [8b] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [07] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [12] 
avrdude: Send: . [1b] . [08] . [00] . [02] . [0e] . [03] . [95] . [89] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [08] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [1d] 
avrdude: Send: . [1b] . [09] . [00] . [02] . [0e] . [03] . [96] . [8b] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [09] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [1c] 
avrdude: Send: . [1b] . [0a] . [00] . [02] . [0e] . [03] . [97] . [89] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0a] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [1f] 
         SCK period      : 0.1 us
         Varef           : 0.0 V
         Oscillator      : Off

avrdude: Send: . [1b] . [0b] . [00] . [03] . [0e] . [02] . [9e] . [01] . [80] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0b] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [02] 
avrdude: Recv: . [00] 
avrdude: Recv: . [1e] 
avrdude: Send: . [1b] . [0c] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] ? [3f] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0c] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [10] 
avrdude: Recv: . [00] 
avrdude: Recv: . [0b] 
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: . [1b] . [0d] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [00] . [00] = [3d] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: 0 [30] 
avrdude: Recv: . [00] 
avrdude: Recv: P [50] 
avrdude: Recv: . [00] 
avrdude: Recv: b [62] 
avrdude: Send: . [1b] . [0e] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [01] . [00] ? [3f] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: 0 [30] 
avrdude: Recv: . [00] 
avrdude: Recv: I [49] 
avrdude: Recv: . [00] 
avrdude: Recv: x [78] 
################avrdude: Send: . [1b] . [0f] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [02] . [00] = [3d] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0f] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: 0 [30] 
avrdude: Recv: . [00] 
avrdude: Recv: C [43] 
avrdude: Recv: . [00] 
avrdude: Recv: s [73] 
################################## | 100% 0.01s

avrdude: Device signature = 0x504943
avrdude: Send: . [1b] . [10] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fc] . [00] C [43] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [10] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [a0] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [bf] 
avrdude: Send: . [1b] . [11] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fd] . [00] C [43] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [11] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [a0] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [be] 
avrdude: Send: . [1b] . [12] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fe] . [00] C [43] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [12] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [a0] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [bd] 
avrdude: Send: . [1b] . [13] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [ff] . [00] C [43] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [13] 
avrdude: Recv: . [00] 
avrdude: Recv: . [07] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [1d] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [a0] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [bc] 
avrdude: reading input file "/tmp/build3249825775786699916.tmp/UTFT_ViewFont.cpp.hex"
avrdude: writing flash (59596 bytes):

Writing | avrdude: Send: . [1b] . [14] . [00] . [05] . [0e] . [06] . [80] . [00] . [00] . [00] . [82] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [06] 
avrdude: Recv: . [00] 
avrdude: Recv: . [05] 
avrdude: Send: . [1b] . [15] . [01] . [0a] . [0e] . [13] . [01] . [00] . [c1] . [0a] @ [40] L [4c]   [20] . [00] . [00] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [00] . [00] . [00] . [9d] . [d8] . [c7] . [00] . [9d] . [e1] 
avrdude: Recv: . [1b] 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [15] . [00] . [01] . [0e] . [01] . [00] 
avrdude: Recv: . [15] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [13] 
avrdude: Recv: . [00] 
avrdude: Recv: . [11] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [15] 
avrdude: Recv: . [00] 
avrdude: Recv: . [0b] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [01] 
avrdude: Recv: . [00] 
avrdude: Recv: . [08] 
avrdude: Recv: S [53] 
avrdude: Recv: T [54] 
avrdude: Recv: K [4b] 
avrdude: Recv: 5 [35] 
avrdude: Recv: 0 [30] 
avrdude: Recv: 0 [30] 
avrdude: Recv: _ [5f] 
avrdude: Recv: 2 [32] 
avrdude: Recv: . [16] 
avrdude: stk500v2_getsync(): found STK500 programmer
avrdude: Send: . [1b] . [16] . [01] . [0a] . [0e] . [13] . [01] . [00] . [c1] . [0a] @ [40] L [4c]   [20] . [00] . [00] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [01] . [9d] . [1a] < [3c] 0 [30] . [c6] Z [5a] ' [27] . [08] . [00] @ [40] . [03] . [00] . [00] . [00] . [00] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [87] 
avrdude: Recv: . [1b] 
avrdude: stk500v2_ReceiveMessage(): timeout

Any guidance / information would be greatly appriciated.

With the same setup I can download to a chipKit UNO32 successfully.

Thanks,

Fred


majenko

Mon, 09 Feb 2015 10:39:31 +0000

If you're on Ubuntu make sure you uninstall (or otherwise disable) modem-manager.

If you are on Devian make sure you uninstall (or otherwise disable) brltty.

Both of those grab the serial port when you don't want it to and try and use it for their own ends.


helpme

Mon, 09 Feb 2015 15:03:44 +0000

I am on Fedora and there was a gpsd hotplugged to activate. I removed this package way before this when I was first getting started with Arduino(s). The chipKit UNO32 and Fubarmini work fine.

How can I tell if the avrdude is actually getting information from the ChipKit uC32. The reason I ask is that several values are zero, i.e.,

Hardware Version: 0 Firmware Version Master : 0.00 Topcard : Unknown Vtarget : 0.0 V SCK period : 0.1 us Varef : 0.0 V Oscillator : Off


majenko

Mon, 09 Feb 2015 16:56:02 +0000

AVRDude is designed for talking to AVR chips. It knows nothing at all about PIC32 chips. The bootloader makes it look like an stk500v2 device, so it doesn't actually care what the physical device is. Consequently it can't tell you anything at all about the device, so 0 is an expected value for most things.

So basically there are two possible things happening here:

  1. The serial signals are being intercepted by something else: We have already looked at this and it seems this is not the case, since other boards work.
  2. The board isn't being reset to enter the bootloader. This is quite common, and a known issue on some systems. Try upgrading to the latest test version of MPIDE ([url]http://chipkit.s3.amazonaws.com/builds/mpide-0150-linux64-20150204-test.tgz[/url]) or maybe give the beta version of UECIDE a go ([url]htto://uecide.org/beta[/url]) I think the newest MPIDE, and certainly the beta of UECIDE, contain more robust board reset code.

helpme

Sun, 15 Feb 2015 01:40:46 +0000

Thanks for the reply.

I grabbed the new MPIDE and noticed that it is >2GB. As far as I can tell it is full of files with names like libmchp_peripheral_32MX*.a Are they needed?

Fred


helpme

Sun, 15 Feb 2015 02:31:56 +0000

The new MPIDE did not solve the problem, although the symptoms have changed. When attempting to Upload the skecth without verbosity, i.e., just clicking the Upload button, I receive and endless stream of:

avrdude: stk500v2_ReceiveMessage(): timeout

When attempting to Upload using verbosity, i.e., Shift clicking the Upload button, the upload seems to progress to completion, although with errors at the end and the sketch does not appear to be run.

...

| 100% 1.23s

avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x00f8 0x00 != 0xff avrdude: verification error; content mismatch avrdude: Send: . [1b] X [58] . [00] . [03] . [0e] . [11] . [01] . [01] _ [5f] avrdude: Recv: . [1b] avrdude: Recv: X [58] avrdude: Recv: . [00] avrdude: Recv: . [02] avrdude: Recv: . [0e] avrdude: Recv: . [11] avrdude: Recv: . [00] avrdude: Recv: ^ [5e] avrdude done. Thank you.

Fred


majenko

Sun, 15 Feb 2015 11:07:48 +0000

Do both your uC32 boards give the same result?


helpme

Mon, 16 Feb 2015 14:44:12 +0000

Yes. Both purchased at the same time. One has an TFT/LCD plugged into it and the other is straight out of the box.

Thanks,

Fred


majenko

Mon, 16 Feb 2015 18:58:37 +0000

Do you have access to another computer that's running windows (ugh) to see if it's Linux or the boards that are at fault?


helpme

Fri, 27 Feb 2015 15:20:44 +0000

I do not have easy access to a Windows box, Although I did discover something interesting. When clicking the Upload button without the shift key I get te following messages in 'dmesg'.

[21862804.065432] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity [21862805.065447] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate [21862815.065014] ftdi_sio ttyUSB0: urb failed to clear flow control [21862821.302811] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity [21862822.302800] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate [21862832.302387] ftdi_sio ttyUSB0: urb failed to clear flow control [21862838.590891] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity [21862839.590933] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate [21862849.590600] ftdi_sio ttyUSB0: urb failed to clear flow control

When I use shift-click to upload I do not get these messages in 'dmesg'. Although I noticed in the output:

avrdude: Version 5.11, compiled on Sep 9 2011 at 16:00:41 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "/usr/share/mpide-0150-linux64-20150204-test/hardware/tools/avrdude.conf" User configuration file is "/home/fred/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyUSB0 Using Programmer : stk500v2 Overriding Baud Rate : 115200

That the baudrate is being changed.

How do I find the configuration that is telling avrdude to change the baudrate.

Thanks,

Fred


majenko

Fri, 27 Feb 2015 22:32:42 +0000

I don't like the look of those dmesg errors. That doesn't look very good to me.

Ok - time to experiment more. Can you download the latest beta version of UECIDE? You can download it as a tar file and run it from a folder, or install it using apt-get if you add the uecide repo as the "downloads" page tells you, but add the "beta" section to the list with main, contrib, and all that lot.

Then install the uC32 board from the plugin manager in UECIDE and compile the blink example.

Then instead of just programming as per normal, go to the Hardware menu and the Programmer submenu. In there should be the option to "Upload to chipKIT board via pic32prog". Select that, then go to program the board (making sure you have selected the right serial port first of course).

That will use a different program to try and upload the .hex file to the board instead of avrdude - one written specially for the PIC32.


helpme

Sun, 26 Apr 2015 20:53:29 +0000

Finally was able to try the UECIDE(uecide-0.8.7z36-linux.zip) today, although it is not able to compile the Blink example. When the program started it asked me to select the board and tools. I selected the serial port that the ChipKit u32 is plugged into. I selected the Blink example and hit compile.

Compiling... • Compiling sketch... /home/fred/.uecide/compilers/pic32-tools/bin/pic32-g++ -c /home/fred/Documents/UECIDE/Blink.pde/build/Blink.pde.cpp -o /home/fred/Documents/UECIDE/Blink.pde/build/Blink.pde.cpp.o -mprocessor=32MX340F512H -g -O2 -fno-exceptions -ffunction-sections -fdata-sections -mno-smart-io -mdebugger -Wcast-align -fno-short-double -DF_CPU=80000000L -DARDUINO=0023 -D_BOARD_UC32_ -DMPIDEVER=29 -DMPIDE=0023 -I/home/fred/.uecide/cores/chipKIT/api -I/home/fred/.uecide/boards/chipKIT/chipkit_uc32 -I/home/fred/Documents/UECIDE/Blink.pde/build -I/home/fred/Documents/UECIDE/Blink.pde -Wall java.io.IOException: Cannot run program "/home/fred/.uecide/compilers/pic32-tools/bin/pic32-g++" (in directory "/home/fred/Documents/UECIDE/Blink.pde/build"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at org.uecide.Sketch.runSystemCommand(Sketch.java:3302) at org.uecide.Sketch.executeCommand(Sketch.java:3520) at org.uecide.Sketch.executeKey(Sketch.java:2560) at org.uecide.Sketch.compileFiles(Sketch.java:2988) at org.uecide.Sketch.compileSketch(Sketch.java:3018) at org.uecide.Sketch.compile(Sketch.java:2330) at org.uecide.Sketch.build(Sketch.java:1693) at org.uecide.Editor$DefaultRunHandler.run(Editor.java:182) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:186) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 9 more Failed compiling sketch

I verified that the compiler exists and is executable. The directory mentioned exists and is writable. I tried compiling using default settings and changing to compile in the sketch directory. I assume that is something simple. Any ideas?

Thanks,

Fred


helpme

Sun, 26 Apr 2015 22:48:30 +0000

The previous problem was due to the linux host not being setup for 32 executables. With that fixed and using the beta release(uecide-0.8.8alpha11-linux.zip), the boards still does not want to upload.

... Uploading firmware... • Resetting board... • Uploading... /home/fred/.uecide/cores/chipKIT/tools/linux64/pic32prog -d /dev/ttyUSB0 -p Blink.hex Programmer for Microchip PIC32 microcontrollers, Version 1.119M Copyright: (C) 2011-2014 Serge Vakulenko Adapter: STK500v2 Bootloader Program area: 1d000000-1d07ffff Processor: Bootloader Flash memory: 512 kbytes Boot memory: 12 kbytes Data: 5680 bytes Program flash failed. • Resetting board... Upload Failed

Fred


helpme

Sun, 13 Sep 2015 16:22:08 +0000

It seems as though I am not alone on not being able to program the ChipKit uc32 on linux. Excerpt from a comment left on the Amazon page for the ChipKit uc32:

By Vance Walsh on September 15, 2014 ... Only real complaint is I'm unable to program my chipkit's via Ubuntu. For whatever reason their ftdi driver (or firmware) keeps reporting 'stk500_v2 not responding' or simliar messages. It wipes the chip's previous program but isn't able to send the new one. I have however successfully programmed the board via windows 7 and its working flawlessly. ...

Is anyone able to program the ChipKit u32 from linux and is will to share the details of their setup? Is the source to pic32prog and the documentation necessary to figure out the protocol available?

Thanks,

Fred


majenko

Sun, 13 Sep 2015 19:00:11 +0000

Since this thread started I got a uC32. I too couldn't program it.

You're right you're not alone. I have also heard of failures under OS X.

You can read more here: https://forum.digilentinc.com/topic/819-mpide-under-linux-does-not-upload-to-uc32/

Re-flashing the bootloader with the one from Github seems to fix the problem: https://github.com/chipKIT32/PIC32-avrdude-bootloader


euldulle_

Sat, 30 Jan 2016 11:07:05 +0000

Hi,

I am still affected by the mentioned bug, and the link to the updated bootloader seems no longer valid. I tried the bootloader update sketch :

https://reference.digilentinc.com/_media/chipkit_uc32:updbluc32.zip

accessible through

https://reference.digilentinc.com/chipkit_uc32:chipkit_uc32

It is stamped 20150915 so I thought it should be fixed ; I uploaded it to my uc32 under a windows box, it went ok but it did not solve the timeout problem.

I am a bit stuck at this point. Any clue on what's next on my (now quite long) way to the light wil be most appreciated.

Thank you in advance.