[bug #56970] avrdude exit code -1073741819 on Windows 10

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #56970] avrdude exit code -1073741819 on Windows 10

Kevin Cuzner-2
URL:
  <https://savannah.nongnu.org/bugs/?56970>

                 Summary: avrdude exit code -1073741819 on Windows 10
                 Project: AVR Downloader/UploaDEr
            Submitted by: chovanj
            Submitted on: Mon 30 Sep 2019 05:45:23 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Joe
        Originator Email:
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: usbasp
             Device type: ATtiny9

    _______________________________________________________

Details:

Hi,

avrdude returns -1073741819 in Windows 10 for ATtiny9.
It uploads the file correctly just that exit value is strange.

I've tested it for ATtiny10,5,4 and it works fine and it returns 0 for them.
Only for ATtiny9 it returns this code which is a problem when I call it from
make.

d:\Solutions\Microcontrollers\Architecture\AVR\8-bit\AVRTiny\SimpleBlink>avrdude
-c usbasp -p attiny9 -U simple_blink.bin

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9008 (probably t9)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be
performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "simple_blink.bin"
avrdude: input file simple_blink.bin auto detected as ELF
avrdude: writing flash (72 bytes):

Writing | ################################################## | 100% 0.49s

avrdude: 72 bytes of flash written
avrdude: verifying flash memory against simple_blink.bin:
avrdude: load data flash data from input file simple_blink.bin:
avrdude: input file simple_blink.bin auto detected as ELF
avrdude: input file simple_blink.bin contains 72 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.21s

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

avrdude done.  Thank you.


d:\Solutions\Microcontrollers\Architecture\AVR\8-bit\AVRTiny\SimpleBlink>echo
%ERRORLEVEL%
-1073741819


Thank you for your hard work!




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56970>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #56970] avrdude exit code -1073741819 on Windows 10

Kevin Cuzner-2
Follow-up Comment #1, bug #56970 (project avrdude):

Well, -1073741819 is 0xc0000005.

Microsoft says 0xc0000005 is the error code for an access violation.

Since the entire programming went fine, this probably happens during the final
cleanup. It would be great if someone with a debugger under Windows could find
out _where_ that access violation actually happens.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56970>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #56970] avrdude exit code -1073741819 on Windows 10

Kevin Cuzner-2
Follow-up Comment #2, bug #56970 (project avrdude):

Hi,

is there any guide how to built it all for Windows or better question: How do
you build the binary which is on your site for downloading? It would be very
helpful to know for debugging it.

Thank you.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56970>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

[bug #56970] avrdude exit code -1073741819 on Windows 10

Kevin Cuzner-2
Follow-up Comment #3, bug #56970 (project avrdude):

The script I am using is in the repository, under

tools/build-mingw32.sh

It's a cross-platform build using MinGW32 on my FreeBSD host.

Unfortunately, I cannot really tell you how to build under Windows natively.
Never did that myself.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?56970>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev