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

MicroCore doesn't work after update Arduino IDE for ver. 2.3.4 #163

Open
Denexp-1 opened this issue Dec 5, 2024 · 3 comments
Open

MicroCore doesn't work after update Arduino IDE for ver. 2.3.4 #163

Denexp-1 opened this issue Dec 5, 2024 · 3 comments

Comments

@Denexp-1
Copy link

Denexp-1 commented Dec 5, 2024

When I'm trying to load bootloader to ATtiny13 have errors:

Avrdude version 8.0-arduino.1
Copyright see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

System wide configuration file is C:\Users\xxxxxxx\AppData\Local\Arduino15\packages\MicroCore\tools\avrdude\8.0-arduino.1\etc\avrdude.conf

Using port : COM37
Using programmer : stk500v1
Setting baud rate : 19200
Setting bit clk period: 32.0 us

Error: cannot get into sync
Error: cannot set Parm_STK_SCK_DURATION
Error: unable to open port COM37 for programmer stk500v1

Avrdude done. Thank you.
Failed chip erase: uploading error: exit status 1

@JoergCH
Copy link

JoergCH commented Dec 20, 2024

I can confirm that there is problem. It has (probably) nothing to do with the Arduino version but (probably) with the update of MicroCore to 2.4.1, or to a related update in Avrdude (from 7.2 to 8.0).

On a system with Arduino 2.3.2 and MicroCore 2.4.0, I have no issues at all.

On another system with Arduino 2.3.4 and MicroCore 2.4.1, I have issues when I try to burn a bootloader:

Avrdude version 8.0-arduino.1
Copyright see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

System wide configuration file is /home/xxx/.arduino15/packages/MicroCore/tools/avrdude/8.0-arduino.1/etc/avrdude.conf
User configuration file /home/xxx/.avrduderc does not exist

Using port            : /dev/ttyUSB0
Using programmer      : stk500v1
Setting baud rate     : 19200
Setting bit clk period: 32.0 us

Error: cannot get into sync
Error: cannot set Parm_STK_SCK_DURATION
Error: unable to open port /dev/ttyUSB0 for programmer stk500v1

Avrdude done.  Thank you.
Failed chip erase: uploading error: exit status 1

On that same system, I kept Arduino 2.3.4 but reverted back to MicroCore 2.4.0. Now everything works:

avrdude: Version 7.2-arduino.1
        Copyright the AVRDUDE authors;
        see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

        System wide configuration file is /home/xxx/.arduino15/packages/MicroCore/hardware/avr/2.4.0/avrdude.conf
        User configuration file is /home/xxx/.avrduderc
        User configuration file does not exist or is not a regular file, skipping

        Using Port                    : /dev/ttyUSB0
        Using Programmer              : stk500v1
        Overriding Baud Rate          : 19200
        Setting bit clk period        : 32.0
        AVR Part                      : ATtiny13A
        Chip Erase delay              : 4000 us
        RESET disposition             : dedicated
        RETRY pulse                   : SCK
        Serial program mode           : yes
        Parallel program mode         : yes
        Timeout                       : 200
        StabDelay                     : 100
        CmdexeDelay                   : 25
        SyncLoops                     : 32
        PollIndex                     : 3
        PollValue                     : 0x53
        Memory Detail                 :

                                          Block Poll               Page                       Polled
          Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
          ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
          eeprom                 65     5     4    0 no         64    4      0  4000  4000 0xff 0xff
          flash                  65     6    32    0 yes      1024   32     32  4500  4500 0xff 0xff
          lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
          hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
          lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
          signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
          calibration             0     0     0    0 no          2    1      0     0     0 0x00 0x00

        Programmer Type : STK500
        Description     : Atmel STK500 version 1.x firmware
        Hardware Version: 2
        Firmware Version: 1.18
        Topcard         : Unknown
        Vtarget         : 0.0 V
        Varef           : 0.0 V
        Oscillator      : Off
        SCK period      : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9007 (probably t13a)
avrdude: erasing chip

avrdude: processing -U lock:w:0xff:m
avrdude: reading input file 0xff for lock
        with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lock ...
avrdude: 1 byte of lock written
avrdude: verifying lock memory against 0xff
avrdude: 1 byte of lock verified

avrdude: processing -U hfuse:w:0xeb:m
avrdude: reading input file 0xeb for hfuse
        with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte hfuse ...
avrdude: 1 byte of hfuse written
avrdude: verifying hfuse memory against 0xeb
avrdude: 1 byte of hfuse verified

avrdude: processing -U lfuse:w:0b00111010:m
avrdude: reading input file 0b00111010 for lfuse
        with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lfuse ...
avrdude: 1 byte of lfuse written
avrdude: verifying lfuse memory against 0b00111010
avrdude: 1 byte of lfuse verified

avrdude done.  Thank you.

My suggestion for a workaround: revert back to 2.4.0.

@Denexp-1
Copy link
Author

OK I'll check it with WA. Thanks a lot for your investigation and answer!

@Denexp-1
Copy link
Author

Yes, it works Arduino IDE 2.3.4 and MicroCore 2.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants