Code Monkey home page Code Monkey logo

Comments (9)

MCUdude avatar MCUdude commented on June 3, 2024

Which version of MiniCore have you installed, and have you installed it using the boards manager?
I've just released v3.0.0, which replaces Optiboot in favor of the superior Urboot bootloader.

from minicore.

vanyasem avatar vanyasem commented on June 3, 2024

Oops, forgot to mention the most important thing! I am using MiniCore v3.0.0 @MCUdude

from minicore.

MCUdude avatar MCUdude commented on June 3, 2024

I am using MiniCore v3.0.0

Thanks! Did you install the bootloader on the UNO using MiniCore v3.0.0, or did it already have a bootloader (likely Optiboot)?

from minicore.

vanyasem avatar vanyasem commented on June 3, 2024

@MCUdude
I have never had any custom bootloader before. MiniCore v3.0.0 was the first custom bootloader that I've installed

I have also tried reverting to the original bootloader (to test if ArduinoISP works - it does), and then flashing MiniCore v3.0.0 again (and ArduinoISP broke)

from minicore.

MCUdude avatar MCUdude commented on June 3, 2024

My time is quite limited, but I'll have a closer look at the issue within a few days.
Maybe @stefanrueger (who created the Urboot bootloader) knows why the Urboot bootloader breaks Arduino as ISP?

from minicore.

stefanrueger avatar stefanrueger commented on June 3, 2024

Urboot bootloaders need

  • avrdude -c urclock for programming, which is only available from AVRDUDE v7.0. (v6.3 does not work)
  • Potentially different fuse settings than optiboot

So, try to figure out which urboot bootloader you have and see whether the fuse settings are correct

from minicore.

vanyasem avatar vanyasem commented on June 3, 2024

@MCUdude what are the flags used for urboot in MiniCore?

Screenshot 2023-10-22 at 3 36 45

from minicore.

vanyasem avatar vanyasem commented on June 3, 2024

I'll compare the fuse settings between stock bootloader and MiniCore and will get back with results

Btw I don't have issues uploading the sketches with -c arduino with avrdude 6.3, which makes me believe that s flag is set for compatibility

from minicore.

MCUdude avatar MCUdude commented on June 3, 2024

what are the flags used for urboot in MiniCore?

the Urboot bootloader is built with these flags/features:

avrdude -c urclock -P /dev/cu.usbmodem14101 -p atmega328p -x showversion
avrdude: AVR device initialized and ready to accept instructions
u7.7 weu-jPrac

I'm not able to reproduce the issue you're seeing though.
I uploaded the ArduinoISP sketch available under File > Examples > 11. ArduinoISP to a genuine Arduino UNO running Urboot. I wired up the UNO to a target board, in my case an Atmega1284P, and connected a capacitor between GND and the RESET pin on the UNO. No issues here...

/Users/hans/Library/Arduino15/packages/MightyCore/tools/avrdude/7.2-arduino.1/bin/avrdude -C/Users/hans/Library/Arduino15/packages/MightyCore/hardware/avr/3.0.0/avrdude.conf -v -patmega1284p -cstk500v1 -P/dev/cu.usbmodem14101 -b19200 -Ueeprom:w:/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.eep:i -Uflash:w:/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.hex:i 

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

         System wide configuration file is /Users/hans/Library/Arduino15/packages/MightyCore/hardware/avr/3.0.0/avrdude.conf
         User configuration file is /Users/hans/.avrduderc

         Using Port                    : /dev/cu.usbmodem14101
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : possible i/o
         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    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash                  65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lfuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           hfuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           efuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           lock                    0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           calibration             0     0     0    0 no          1    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 = 0x1e9705 (probably m1284p)
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: processing -U eeprom:w:/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.eep:i
avrdude: reading input file /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.eep for eeprom
         with 0 bytes in 0 sections within [0, -1]
         using 0 pages and 0 pad bytes
avrdude: writing 0 bytes eeprom ...
Writing | ################################################## | 100% 0.00s
avrdude: 0 bytes of eeprom written
avrdude: verifying eeprom memory against /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.eep
Reading | ################################################## | 100% 0.00s
avrdude: 0 bytes of eeprom verified

avrdude: processing -U flash:w:/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.hex:i
avrdude: reading input file /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.hex for flash
         with 1012 bytes in 1 section within [0, 0x3f3]
         using 4 pages and 12 pad bytes
avrdude: writing 1012 bytes flash ...
Writing | ################################################## | 100% 1.11s
avrdude: 1012 bytes of flash written
avrdude: verifying flash memory against /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_652192/Blink.ino.hex
Reading | ################################################## | 100% 0.58s
avrdude: 1012 bytes of flash verified

avrdude done.  Thank you.

IMG_5283

from minicore.

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.