Giter Site home page Giter Site logo

Comments (32)

MCUdude avatar MCUdude commented on August 24, 2024 1

Avrdude is most likely using an older avrdude.conf file that contains errors.
Please post the entire Avrdude output with the -v flag as well.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024 1

I have a STK500 (very old) on my desk.

so please wait on hour

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024 1

I have found a AvrISP with serial link

C:\Daten\Test\AvrDude\V7_3>avrdude -p c128 -c stk500v2 -P\.\com5 -t

avrdude> dump ee 0 128
Reading | ################################################## | 100% 0.50 s
0000 01 03 00 00 00 00 00 00 00 00 ff ff ff ff ff ff |................|
0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0040 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
avrdude> dump ee 256 128
Reading | ################################################## | 100% 0.51 s
0100 76 19 10 19 00 00 00 00 00 00 00 00 00 00 00 00 |v...............|
0110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
avrdude>

Its oll Ok - so my SmartUSB Programmer should be the Problem

Sorry for the inconvenience
Martin Heumann

from avrdude.

MCUdude avatar MCUdude commented on August 24, 2024 1

error: (cmd) command 'read is invalid

@MartinKES It looks like your shell doesn't line single quotes. can you try with double quotes instead, for both programmers?

avrdude -p c128 -c stk500v2 -P\\.\com5 -vvvv -T "read eeprom 0 16"

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024 1

@mcuee
"avrdude -p c128 -c stk500v2 -P com9 -U ee:r:EeProm:i" with mySmartUSB light
eeprom.txt
eeprom.txt
"since you mention that IAR Embedded Workbench seems to work fine." that was with AtmelIce Interface

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

@MartinKES
Most likely an old version of avrdude is used.

Are you using Arduino As ISP as the programmer? Please use avrdude 7.3 release and -c arduino_as_isp and try again.

from avrdude.

ndim avatar ndim commented on August 24, 2024

Question to @MCUdude: An older avrdude.conf in the sense of older than the version of avrdude executable being used, or an older avrdude.conf in the sense of version consistent with the avrdude executable being used but containing unfixed bugs?

Update: Looks like the latter, going by @mcuee's reply.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

In version 7.3 the same result

with arduino_as_isp:

avrdude error: programmer is not responding
avrdude warning: attempt 1 of 10: not in sync: resp=0x00
avrdude warning: attempt 2 of 10: not in sync: resp=0xe1
avrdude warning: attempt 3 of 10: not in sync: resp=0xe5
avrdude warning: attempt 4 of 10: not in sync: resp=0xcb
avrdude warning: attempt 5 of 10: not in sync: resp=0x2b
avrdude warning: attempt 6 of 10: not in sync: resp=0xe1
avrdude warning: attempt 7 of 10: not in sync: resp=0xe5
avrdude warning: attempt 8 of 10: not in sync: resp=0xcb
avrdude warning: attempt 9 of 10: not in sync: resp=0x2b
avrdude warning: attempt 10 of 10: not in sync: resp=0xe1
avrdude error: unable to open port \\.\com9 for programmer arduino_as_isp
avrdude error: avrdude built without libserialport support; please compile again with libserialport installed

from avrdude.

MCUdude avatar MCUdude commented on August 24, 2024

Question to @MCUdude: An older avrdude.conf in the sense of older than the version of avrdude executable being used, or an older avrdude.conf in the sense of version consistent with the avrdude executable being used but containing unfixed bugs?

A newer Avrdude executable is being used with an older avrdude.conf file, most likely bundled or built for an older Avrdude version.

In version 7.3 the same result

Can you please share the entire output, including the command you ran? It's impossible to say what's going on here. From what I know, the baud rate is incorrect. But that's impossible for me to know because you didn't include the Avrdude command.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024
C:\Daten\Test\AvrDude\V7_3>avrdude -c stk500 -p AT90CAN128 -P \\.\com9 -t
avrdude: successfully opened stk500v2 device; please use -c stk500v2
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9781 (probably c128)

avrdude: processing -t interactive terminal
avrdude> dump ee 0 128
Reading | ################################################## | 100% 0.47 s
0000  01 03 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
0010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
avrdude> quit

avrdude done.  Thank you.

C:\Daten\Test\AvrDude\V7_3>avrdude -c arduino_as_isp -p AT90CAN128 -P \\.\com9 -t
avrdude error: programmer is not responding
avrdude warning: attempt 1 of 10: not in sync: resp=0x00
avrdude warning: attempt 2 of 10: not in sync: resp=0xe1
avrdude warning: attempt 3 of 10: not in sync: resp=0xe5
avrdude warning: attempt 4 of 10: not in sync: resp=0xcb
avrdude warning: attempt 5 of 10: not in sync: resp=0x2b
avrdude warning: attempt 6 of 10: not in sync: resp=0xe1
avrdude warning: attempt 7 of 10: not in sync: resp=0xe5
avrdude warning: attempt 8 of 10: not in sync: resp=0xcb
avrdude warning: attempt 9 of 10: not in sync: resp=0x2b
avrdude warning: attempt 10 of 10: not in sync: resp=0xe1
avrdude error: unable to open port \\.\com9 for programmer arduino_as_isp
avrdude error: avrdude built without libserialport support; please compile again with libserialport installed

avrdude done.  Thank you.

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

@MartinKES

In this case, your programmer is not "Arduino as ISP", but rather using -c stk500v2. What is the prorgrammer used? Is it an original Microchip STK500 kit or an STK500v2 clone? Are you using a bootloader?

Please follow the FAQ here when reporting an issue. Thanks.
https://github.com/avrdudes/avrdude/wiki/FAQ#how-to-report-an-issue-to-avrdude-project

  • Tell us what exactly the problem is and how you came to experience it
  • OS
  • Programmer
  • Part
  • How host, programmer and part are connected/rigged up
  • AVRDUDE binary version used (in bash avrdude -v 2>&1 | grep -i version)
  • Full command line including all options
  • Output of the command
  • Please try to use the latest released version
  • You may be requested to try out git main as well
  • Sometimes it also helps us if you upload a file with the -vv or -vvvv output
  • Sometimes it also helps us if you post the hex file used (if you are okay to share the hex file)
  • What you would have expected to happen?

from avrdude.

MCUdude avatar MCUdude commented on August 24, 2024

In this case, your programmer is not "Arduino as ISP", but rather using -c stk500v2

It was you that suggested arduino_as_isp, not him. He states that "Readout offset 8, 9 are always 0xFF but should be 0", but Avrdude reports something else.

avrdude: processing -t interactive terminal
avrdude> dump ee 0 128
Reading | ################################################## | 100% 0.47 s
0000  01 03 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
0010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
avrdude> quit

@MartinKES how can you be sure that the actual EEPROM values stored at addresses 8 and 9 should be 0? What makes you think Avrdude reports incorrect data?

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

@MCUdude

  • IAR Workbench
  • myAVRProgTool
Byte 0 Major Version
Byte 1 Minor Version
Byte 2-5 DWord actual Error Flags
Byte 6-9 DWord ored ErrorFlags

avrdude: processing -t interactive terminal
avrdude> dump ee 8 2
Reading | ################################################## | 100% 0.03 s
0008  ff ff                                             |..              |
avrdude> dump ee 8 2
Reading | ################################################## | 100% 0.00 s
0008  ff ff                                             |..              |
avrdude> dump ee 8 2
Reading | ################################################## | 100% 0.00 s
0008  ff ff                                             |..              |
avrdude> dump ee 8 2
Reading | ################################################## | 100% 0.00 s
0008  ff ff                                             |..              |
avrdude> dump ee 8 2
Reading | ################################################## | 100% 0.00 s
0008  ff ff                                             |..              |
avrdude> dump eeprom 8 2
Reading | ################################################## | 100% 0.00 s
0008  ff ff                                             |..              |
avrdude> dump eeprom 7 4
Reading | ################################################## | 100% 0.03 s
0007  00 ff ff ff                                       |....            |
avrdude> quit

at offset 182 are the next Databytes (Parameters):

Reading | ################################################## | 100% 0.50 s
0008  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0018  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0028  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0038  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0048  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0058  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0068  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0078  ff ff ff ff ff ff ff ff  76 19 10 19 00 00 00 00  |........v.......|

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

In this case, your programmer is not "Arduino as ISP", but rather using -c stk500v2

It was you that suggested arduino_as_isp, not him. He states that "Readout offset 8, 9 are always 0xFF but should be 0", but Avrdude reports something else.

I was asking whether he was using arduino_as_isp. Anyway, it is critical to know which programmer @MartinKES is using. There are many different flavours of STK500v2 programmers out there.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

My programmer is mySmartUSB (www.myAVR.de) light.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

Output from atprogram --> JTAG-Ice:
F:\Atmel\atprog\atbackend>atprogram -t atmelice -d at90can128 -i JTAG read -ee -s 128 -o 0
Firmware check OK
:1000000001030000000000000000FFFFFFFFFFFFF2
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:00000001FF
also 10 Bytes : offset 8,9 =0

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

Output from atprogram --> mySmartUSB light:
F:\Atmel\atprog\atbackend>atprogram -t stk500 -c COM9 -d at90can128 -i ISP read -ee -s 128 -o 0
Firmware check OK
:1000000001030000000000000000FFFFFFFFFFFFF2
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:00000001FF
Programmer I.O.

from avrdude.

MCUdude avatar MCUdude commented on August 24, 2024

Can you try to read the EEPROM using -U? Like so:

C:\Daten\Test\AvrDude\V7_3>avrdude -c stk500 -p AT90CAN128 -P \\.\com9 -U eeprom:r:-:i

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

avrdude: processing -U eeprom:r:-:i
avrdude: reading eeprom memory ...
Reading | ################################################## | 100% 13.86 s
avrdude: writing output file
:200000000103000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4
:20002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:20004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:20006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:200080007619101900000000000000000000000000000000000000000000000000000000A8
:2000A000000000000000000000000000000000000000000000000000000000000000000040
:2000C000000000000000000000000000000000000000000000000000000000000000000020
:2000E000000000000000000000000000000000000000000000000000000000000000000000
:200100000000000000000000000000000000000000000000000000000000000000000000DF

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

My programmer is mySmartUSB (www.myAVR.de) light.

The good thing is that you have another programmer Atmel ICE and confirms that there is an issue here.

Now there could be two possibilities.

  1. avrdude has a bug with -c stk500v2 for AT90CAN128 chip when reading EEPROM
  2. mySmartUSB is not compatible with official STK500v2 FW in terms of EEPROM reading.

We need to check official STK500v2 now to which one is true.

@MCUdude
I could not find my AT90CAN128 board now. Please help here. Thanks.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

Sorry RS232 defect on STK500

from avrdude.

MCUdude avatar MCUdude commented on August 24, 2024

Its oll Ok - so my SmartUSB Programmer should be the Problem

Thanks for confirming. It's difficult for us to find out what the issue might be, but it's interesting that it works when using atprogram.

As a last test, can you post the entire output of

C:\Daten\Test\AvrDude\V7_3>avrdude -p c128 -c stk500v2 -P\.\com5 -vvvv -T 'read eeprom 0 16'

when using the programmer that reported incorrect data (mySmartUSB), and the programmer that did report correctly (AVRISP with serial link)?

The command above has -vvvv, which lets us see every byte of the data the programmer sends to avrdude.
And -T 'read eeprom 0 16' is just a way to call terminal mode commands without having to do it interactively.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

Done with AvrISP (serial):

C:\Daten\Test\AvrDude\V7_3>avrdude -p c128 -c stk500v2 -P\\.\com5 -vvvv -T 'read eeprom 0 16'

avrdude: Version 7.3
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\Daten\Test\AvrDude\V7_3\avrdude.conf

         Using port            : \\.\com5
         Using programmer      : stk500v2
avrdude: ser_send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [08]
avrdude: ser_recv: A [41]
avrdude: ser_recv: V [56]
avrdude: ser_recv: R [52]
avrdude: ser_recv: I [49]
avrdude: ser_recv: S [53]
avrdude: ser_recv: P [50]
avrdude: ser_recv: _ [5f]
avrdude: ser_recv: 2 [32]
avrdude: ser_recv: t [74]
avrdude: stk500v2_getsync(): found AVRISP programmer
         AVR Part              : AT90CAN128
         Programming modes     : ISP, HVPP, JTAG, JTAGmkI, SPM

         Memory         Size  Pg size
         ----------------------------
         eeprom         4096        8
         flash        131072      256
         efuse             1        1
         hfuse             1        1
         lfuse             1        1
         lock              1        1
         signature         3        1
         calibration       1        1
         io              224        1
         sram           4096        1

         Variants          Package  F max   T range         V range
         -----------------------------------------------------------------
         AT90CAN128        N/A      20 MHz  [-40 C,  85 C]  [4.5 V,   N/A]
         AT90CAN128-15AZ   TQFP64   16 MHz  [-40 C, 125 C]  [2.7 V, 5.5 V]
         AT90CAN128-16AI   TQFP64   16 MHz  [-40 C,  85 C]  [2.7 V, 5.5 V]
         AT90CAN128-16AU   TQFP64   16 MHz  [-40 C,  85 C]  [2.7 V, 5.5 V]
         AT90CAN128-16AUR  TQFP64   16 MHz  [-40 C,  85 C]  [2.7 V, 5.5 V]
         AT90CAN128-16MI   QFN64    16 MHz  [-40 C,  85 C]  [2.7 V, 5.5 V]
         AT90CAN128-16MU   QFN64    16 MHz  [-40 C,  85 C]  [2.7 V, 5.5 V]
         AT90CAN128-16MUR  QFN64    16 MHz  [N/A,     N/A]  [2.7 V, 5.5 V]

         Programmer Type       : STK500V2
         Description           : Atmel STK500 version 2.x firmware
         Programmer model      : AVRISP
avrdude: ser_send: . [1b] . [02] . [00] . [02] . [0e] . [03] . [90] . [86]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0f]
avrdude: ser_recv: . [18]
avrdude: ser_send: . [1b] . [03] . [00] . [02] . [0e] . [03] . [91] . [86]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [14]
avrdude: ser_send: . [1b] . [04] . [00] . [02] . [0e] . [03] . [92] . [82]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [07]
avrdude: ser_recv: . [16]
         HW version            : 15
         FW Version Controller : 2.07
avrdude: ser_send: . [1b] . [05] . [00] . [02] . [0e] . [03] . [94] . [85]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [10]
         Vtarget               : 0.0 V
         SCK period            : 0.1 us
avrdude: ser_send: . [1b] . [06] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] 5 [35]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [10]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: stk500isp_read_byte(.., signature, 0x0, ...)
avrdude: stk500isp_read_byte(): sending read memory command:
avrdude: ser_send: . [1b] . [07] . [00] . [06] . [0e] . [1b] . [04] 0 [30] . [00] . [00] . [00] ; [3b]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [07]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1e]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [13]
avrdude: stk500isp_read_byte(.., signature, 0x1, ...)
avrdude: stk500isp_read_byte(): sending read memory command:
avrdude: ser_send: . [1b] . [08] . [00] . [06] . [0e] . [1b] . [04] 0 [30] . [00] . [01] . [00] 5 [35]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [08]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [97]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [95]
Reading | #################                                  | 33% 0.05 s
avrdude: stk500isp_read_byte(.., signature, 0x2, ...)
avrdude: stk500isp_read_byte(): sending read memory command:
avrdude: ser_send: . [1b] . [09] . [00] . [06] . [0e] . [1b] . [04] 0 [30] . [00] . [02] . [00] 7 [37]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [09]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [81]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [82]
Reading | ################################################## | 100% 0.08 s
avrdude: device signature = 0x1e9781 (probably c128)

avrdude: processing -T 'read
avrdude do_cmd() [term.c:2373] error: (cmd) command 'read is invalid
avrdude: ser_send: . [1b] . [0a] . [00] . [03] . [0e] . [11] . [01] . [01] . [0d]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [11]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0c]

avrdude done.  Thank you.

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

@MartinKES

Please do the same with your SmartUSB Programmer. There might be a way to support your programmer if we can differentiate the two in terms of USB VID/PID and the firmware differences when reading the EEPROM.

Edit to add: Also your -T command failed. Please refer to the comment below by @MCUdude.

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

@MartinKES
Other than terminal mode, did you have the same problem with normal mode or not? It could be that normal CLI mode works since you mention that IAR Embedded Workbench seems to work fine.

avrdude -p c128 -c stk500v2 -P com5 -U:eeprom:-:i

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

Done with AvrDude 7.3 --> mySmartUSB light

... Initialisierung
avrdude> read eeprom 0 16
Reading |                                                    | 0% 0.00 s
avrdude: ser_send: . [1b] . [10] . [00] . [05] . [0e] . [06] . [00] . [00] . [00] . [00] . [06]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [10]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_send: . [1b] . [11] . [00] . [04] . [0e] . [16] . [00] . [08] . [a0] . [be]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [11]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [16]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1b]
Reading | ######################                             | 43% 0.04 s
avrdude: ser_send: . [1b] . [12] . [00] . [05] . [0e] . [06] . [00] . [00] . [00] . [08] . [0c]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [12]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_send: . [1b] . [13] . [00] . [04] . [0e] . [16] . [00] . [08] . [a0] . [bc]
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [13]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [16]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [ff]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1b]
Reading | ################################################## | 100% 0.08 s
0000  01 03 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|
avrdude>

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

"since you mention that IAR Embedded Workbench seems to work fine." that was with AtmelIce Interface.

I see,

Then it is clear that the issue is with mySmartUSB light prorgammer, no matter in the normal CLI mode or the Terminal mode.

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

@MartinKES

Since myAVRProgTool works fine, if you really want to get your programmer working with avrdude, you probably have to reverse engineering the FW differences between official STK500v2 and mySmartUSB light programmer.

Probably not really worth the effort since you have other well supported programmers with avrdude.

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

Change the title so that it is easier for future references.

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

What is a good alternative for a programmer (USB to ISP) without drivers?

from avrdude.

mcuee avatar mcuee commented on August 24, 2024

What is a good alternative for a programmer (USB to ISP) without drivers?

There is no such thing as "without drivers" for Windows. Rather you want to use built-in drivers like WinUSB or USB HID.

Cheap and good one: well supported by avrdude: USBASP
You do need to flash the right FW in order to use WinUSB driver out of box.
https://github.com/nerdralph/usbasp

Reference:
https://github.com/avrdudes/avrdude/wiki/FAQ#i-am-new-to-avrdude-and-i-do-not-have-a-programmer-what-are-the-recommended-programmers-to-be-used-with-avrdude

from avrdude.

MartinKES avatar MartinKES commented on August 24, 2024

from avrdude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.