Questions tagged [bootloader]

Refers to the code burned on the Arduino flash memory that runs every time the board is powered up. It starts the execution of user-loaded programs and allows uploading sketches from a PC through the USB connection. This tag should be used for questions about modifying, changing, uploading the default bootloader.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

ESP12F works indefinitely, then gets stuck in unrecoverable hardware WDT “boot loop”?

I have a sketch running on a number of ESP12F modules (AiThinker). They can work for months on end, can be power cycled, can be moved around, etc. It is a complex sketch with multiple parts and is ...
2
votes
0answers
36 views

Problems uploading arduino zero bootloader to atsamd21g18a

I am trying to upload the arduino zero bootloader (https://github.com/arduino/ArduinoCore-samd/tree/master/bootloaders/zero) to an atsamd21g18 breakout board that I made. The breakout has a 32KHz ...
1
vote
0answers
30 views

Error message while trying to burn bootloader onto atmega 328p

I have tried to burn bootloader onto an atmega 328p chip onto a breadboard using another arduino uno , I am not using an external clock but I am doing all the steps to make this thing which are given ...
1
vote
0answers
20 views

Unable to load the arduino sketch through ISCP/serial interface [closed]

I am unable to load the customized Arduino sketch from one board to another through Arduino ISP or bootloader. I am able to replicate the same through ISCP pins only if the slave board is connected to ...
0
votes
1answer
35 views

nuttx hex too large

I have a teensy 4.1, and I am trying to install NUTTX the Real Time Operating System ( RTOS ). Teensy is a supported platform. I am trying install nuttx compiled from source, and upload it using the ...
2
votes
1answer
68 views

Arduino Mega Clone CH340G Capacitor Values

I'm making my own Arduino Mega board with ATmega2560-16AU and CH340G. Jump to the end of the post to find the real question. I have already ordered a PCB before and it didn't work when I soldered ...
1
vote
0answers
39 views

Fail to burn bootloader into standalone atmega2560

I am making a project where I use standalone atmega2560. I used arduino mega schematic to put all necessary components so atmega2560 would be working. I tried to burn bootloader into it using arduino ...
0
votes
1answer
33 views

How to unbrick an Arduino Mega+ESP8266 Wifi

I have a Jaycar XC4421 - Arduino Mega + Wifi which I think have somehow managed to screw up the boot loader. I have an XC4627 USP-ISP Programmer (and the XC4613 adaptor) which I have previously used ...
0
votes
0answers
27 views

Cannot program ATMEGA328PU after burning bootloader with internal clock

I have build a couple of boards that have an ATMEGA328P-AU (the 32 pin MLF, as used on the Arduino Pro Mini). If I burn a bootloader via SPI to use an external 8MHz clock, I can then use the Arduino ...
1
vote
1answer
31 views

Forcing bootloader startup through program

I am trying to find out if it is possible to trigger programmatically the double-tap on reset button function, implemented in modified version of Atmel's SAM-BA bootloader. The board of interest is ...
1
vote
0answers
48 views

How to change avrdude parameter in Arduino status log when uploading a program? avrdude.conf

Recently I custom bootloader optiboot for Arduino Uno to my custom board called Ardunesia xst X1-02, with Cortex M3 processor. I set avrdude as bootloader upload tool = "X1-02_bootloader.upload....
0
votes
1answer
61 views

D1 mini esp8266 error: esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

I am pretty sure this device worked yesterday. I tried to short GPIO0 to ground (flash), nothing. I have a second ESP that uploads fine, but this one does not. Is their another way to get this ...
0
votes
1answer
115 views

esp32-cam stuck in repeat boot

I am trying to bring the esp32 example code live. I am able to upload the image error free but when I remove the jumper and then press the reset switch, instead of seeing it logon to my network via ...
0
votes
1answer
127 views

avrdude fuse error when programming ATMEGA328 without crystal

I built several boards with an ATMEGA328 and no crystal a couple of years ago. I programmed them successfully with a bootloader using usbasp, and with a sketch using the Arduino serial interface. I ...
3
votes
1answer
214 views

Extend program space by getting rid of bootloader on NANO

I just have a complex program that runs on a NANO. Now when I use my printlns for debugging I am running out of memory. I read about using a programmer to get rid of the bootloader that uses 2K space ...
0
votes
0answers
58 views

Atmega328p-AU Bootloader

I designed custom built Arduino board with atmel328p-au and I am trying to burn bootloader through Arduino Uno(Arduino As ISP). I am able to burn bootloader (getting message as done burning bootloader)...
1
vote
1answer
354 views

Error while burning bootloader

I am trying to burn bootloader on Arduino UNO using MEGA2560 as the programmer, I followed the steps stated here but still get the error below: avrdude: Version 6.3-20190619 Copyright (c) ...
2
votes
1answer
129 views

Can't get “Burn Bootloader” working - Arduino Nano

This is a follow up from a previous question. I have one Nano working perfectly (I think) (Nano A) and another one (Nano B) which seems to be working but has no bootloader. So I am trying to use Nano-...
2
votes
3answers
112 views

Problems uploading with a new Nano

My first post - I am a relative newbie. I want to make a smartcontroller for my boat - I have built the electronics and written and tested a sketch for the Nano, all working totally fine. I then ...
0
votes
0answers
34 views

Uploading to standalone atmega using UNO as ISP

I am following this procedure to upload a sketch to a standalone atmega328p, without using a bootloader, with an Arduino UNO as ISP. It is my understanding that I first have to "burn the ...
0
votes
0answers
64 views

device signature 0x000000 when burning bootloader

I receive this message: "device signature 0x000000" when a try to burn the bootloader on a atmega328p-au (SMD) inserted on PCB i am using arduino uno as isp i already uploaded the ArduinoISP ...
1
vote
1answer
199 views

How do I Upload a Program via Serial Port to an Optiboot_X-Enabled TinyAVR-0/1 Microcontroller using the Command Line?

Background In 2019, Microchip acquired Atmel and released several new AVR microcontrollers, including the Tiny-0 and Tiny-1 Series. On these mircocontrollers, traditional Atmel ICSP programming was ...
2
votes
1answer
58 views

what happens on Arduino power-on, and how long does it all take?

Here's what I think happens and how long it takes (FIXME means I don't know). I'd like to end up with solid max times for everything if possible. Power-on, input caps to the 328P begin charging and ...
0
votes
2answers
137 views

Run HEX program from SD with another program

I want to write a program in which I can select a HEX file recorded on a SD card (via a LED screen, etc.) and run it, i.e. transfer control to it, like launching programs on a PC. Is this possible and ...
1
vote
1answer
163 views

Is it possible to upload and run code from EEPROM during boot time?

I am having problems while writing custom bootloader, so that it uploads code from EEPROM (for now internal, as I have no external memory in my hands) and writes into flash. After ~2 weeks of ...
0
votes
0answers
64 views

Problem burning bootloader to ATMega32U4-MU (is the schematic correct?)

I designed a very simple 4*3 keypad system controlled by an ATMega32U4-MU MCU, using Adafruit's Itsy-bitsy 32U4 as reference (attached is the schematic of my circuit, while Adafruit's circuit can be ...
0
votes
1answer
85 views

Can Only Upload Arduino Sketch Once to Custom Mega2560 Board

I created a custom Arduino based off the Mega2560 R3. It uses the ATMega16U2 uC as the USB interface between ATMega2560 uC and the PC. The bootloader on the 2560 is uploaded by using an Arduino Micro ...
3
votes
2answers
92 views

How do I recover a beetle where I loaded a program that was too large and overwrote the bootloader?

I'm doing on-target unit testing for an industrialized application and my test code is too large to fit everything on the board at the same time. I'm using the Sloeber toolset to develop, and I put ...
1
vote
1answer
47 views

How Arduino UNO differentiate between program/flash and serial terminal data

I am excited to know how Arduino UNO or nano differentiate between program data that is to be burned into its flash when we press Upload Sketch and serial terminal data when we press Send? Is there ...
2
votes
0answers
44 views

How to access bootloader recovery mode (like the Micro) or equivalent on the Due?

I would eventually like to use a Due as a custom USB device PC-side (through programming port) while using it as a USB Host on the native port. Adding the programming port endpoints (perhaps willingly ...
1
vote
0answers
56 views

avrdude not in sync

So this uno was working before, now i can't upload anything, can't even burn the bootloader. Using another arduino as isp does not work. It always says avrdude: stk500_recv(): programmer is not ...
0
votes
0answers
208 views

Digispark Atinny85 not recognized (bootloader problem)

I recently bought the Attiny85 (picture below) I managed to install it correctly following the official guides, never that a problem. Drivers are installed correctly, and I used the Arduino IDE to ...
5
votes
2answers
383 views

Jumping to bootloader from application code in atmega328p

I'm trying to program an Arduino Uno (atmega328p) using only the serial Tx/Rx lines (no DTR, so no automatic reset). This is so I can upload code via WiFi/TCP using an ESP-01. To achieve this, I need ...
0
votes
1answer
238 views

How can I burn the bootloader onto atmega328 (not atmega328p)?

Hi I bought some atmega328 chips (not to be confused with atmega328p). They are very similar but the atmega328p chips are just more power efficient, so I've read. Anyways, my goal is to burn the ...
2
votes
0answers
182 views

Using an ATTiny85 and DigiKeyboard.h, can I detect when USB HID is connected?

I am building a project to send HID keystrokes to a computer with an ATTiny85. I want to detect when the USB communication is working, in order to turn on a LED saying that everything is good. If USB ...
1
vote
0answers
46 views

Bootloader problem on Arduino Uno?

Since today, my Arduino Uno (using Arduino IDE version 1.8.13) lost the capacity to store a sketch upon physical disconnection (does not include button reset). This means, the sketch works properly ...
1
vote
1answer
60 views

ATMega328P U Query - does it work straight away on Uno R3

Quick query (I hope). I have an Arduio R3 board with ATMega328P U on board. It works fine. I bought some new MCUs, ordered with bootloader. Same IC designation. Before I dive into my new project I ...
3
votes
1answer
249 views

Can I force a function to live in the boot sector without overwriting the bootloader?

Not for any practical purpose but just out of curiosity, I want to abuse the flash memory and write it dynamically at run-time. This is, in a sense, what the bootloader does. If I understand it, the ...
1
vote
1answer
706 views

Flash firmware with hex file over serial with Python (no avrdude, Arduino IDE)

I'm trying to make a Python function in the TCLab package to flash firmware to an Arduino Leonardo (32u4). I can compile the TCLab ino (firmware) and deploy with the Arduino IDE or with the Python ...
1
vote
0answers
51 views

AVR Relocated code: calling global constructors

In my setup (UARTBus) i use a host application on an AVR which can accept application code from a custom bus system and the host can call that application program periodically. The application code ...
0
votes
1answer
338 views

ATtiny85 - report error “Device reports version as: 2.2”

I've bought ATtiny, from see link. Trying to upload a basic Blink sketch I get this error: Device reports version as: 2.2. 1) Board manager was updated using http://digistump.com/...
0
votes
0answers
426 views

Arduino Nano with old bootloader flash fail

I have an arduino nano clone with Chip CH340G I installed the latest version of the firmware, it's OK I loaded the blink exemple and tried to flash the arduino nano Here are my options I connect the ...
0
votes
1answer
346 views

Bootloader onto an ATmega328p (3.3V/8MHz), the dude won't finish his business

Hi and thank you reading my question ! I need for my projects to design as small as i can. Both the skills, and the hardware counts. So i can't use a DIP package for them, and i have gone for a TQFP ...
0
votes
1answer
567 views

Burn bootloader finishes with “avrdude done. Thank you.” but bootloader didn't actually get flashed

I've built a a stripped down version of the Arduino Nano that has some peripherals removed and three connectors for analog sensors I want to use. I'm trying to burn the Arduino Nano bootloader onto ...
0
votes
1answer
452 views

Self made ATMega32U4 board first programming

I'm stepping into Arduino world and decided to build a small board to implement a gamepad. Prior designing the board I tested my firmware on a Arduino Pro Micro USB so I decided to make something ...
0
votes
1answer
178 views

Arduino NANO (CH340) error while flashing bootloader [duplicate]

Ok. So I'm close to tearing me hair out on this one. I have a batch of cheap Arduino Nano clones, that just straight up won't work. (I HAVE gotten one of them to work, but I suspect that was by pure ...
1
vote
0answers
81 views

What killed my Arduino nano?

Yesterday evening everything worked well. Today morning I am trying to upload sketch to the Arduino (nano china, CH340) and get the following: Writing | avrdude: stk500_paged_write(): (a) protocol ...
6
votes
2answers
2k views

Can we burn Arduino bootloader into any microcontroller chip?

I am new to this Arduino community I noticed on youtube that while the prototype is complete people purchase new ATmega328p chips and flash bootloaders into them using in-system-programmers so that ...
-1
votes
1answer
148 views

Bootloader vs. Programmer [closed]

I have just started using Arduino boards and I am not sure what the programmers are. I read that you can use a bootloader or a programmer to run your code on an Arduino board. I also read that running ...
0
votes
0answers
21 views

Atmega168A won't be programmed via USB (Minicore) [duplicate]

I have designed a custom board based on a Atmega168A and a MCP2221 for the USB bridge. I successfully programmed the Atmega168A with an Arduino as ICSP with the following sketch (Minicore Atmega core):...

1
2 3 4 5
7