Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
247 views

The BOOTRST fuse was disabled, but bootloader code is still running after chip reset

I am experimenting with an ATmega328P bootloader, and I created an Intel HEX (.hex) file with a program with an infinite loop in the beginning and with Optiboot code at the end of the hex file. (Code ...
0
votes
2answers
135 views

Using Arduino libraries for adding more functionalities to a bootloader

I have a short question to ask before putting time for research. I have an Arduino Leonardo with the LUFA mass storage bootloader flashed. Now what I need to do is to add more functionalities to the ...
0
votes
2answers
141 views

Programming an ATmega328P by holding it on an Uno's

I was looking at this Uno clone, the Nanino and then happened to read this article on "Manhattan style" circuit design. Anyway, that got me thinking... If I borrowed someone's Arduino Uno, could I ...
2
votes
1answer
1k views

How is the bootloader activated when device is running?

For the sake of specificity I am referencing my question to Arduino. It applies to all AVRs with hardware USB and a bootloader though. The bootloader is capable of receiving new program data over the ...
2
votes
2answers
142 views

Arduino beginner question

I just got a new pro-micro Atmega32U4 board, and installed the current Arduino IDE (1.8) and cannot get it working. There is no entry for a pro-micro, so I chose Leonardo as it uses the same chip. ...
0
votes
1answer
135 views

Problem with uploading LUFA MassStorage .hex file to Leonardo

I have been trying to make my Leonardo board to work as a USB device. So I started with compiling the open source LUFA USB library demo "MassStorage" for the Leonardo board settings. Since I'm using ...
1
vote
3answers
352 views

Do we need to burn bootloader in new Atmega328p before uploading the arduino code

I have an arduino code which is working fine. Now I am planning to make a PCB out of it. But I do not want to use the complete Arduino board. I just want to use the Atmega328p microcontroller. So my ...
1
vote
1answer
56 views

Writing new functions into progmem after main program is burned

I've been experimenting with writing very basic operating system-like programs on the Arduino, and so far I have been running user-defined programs on a small virtual machine I wrote. This has been ...
1
vote
1answer
785 views

ard-reset-arduino resetting Leonardo/Micro via USB works on OSX, fails on Ubuntu

I'm trying to program a Leonardo (actually a Micro ATmega32U4) via the command line using USB. Schematically, I'm doing ard-reset-arduino followed by a sleep 1 and an avrdude command. This works ...
2
votes
2answers
1k views

Bootloader on Atmega328p overwrites whenever it gets programmed

I built my first custom circuit board with an Atmel ATMega328p-AU the tqfp-32 form factor. I connected xtal1 and xtal2 to an external 16mhz crystal to 22pf caps tied to ground. It seems to work great, ...
1
vote
1answer
113 views

Can I avoid having a bootloader if I use ISP to flash to an arduino? [duplicate]

My Trinket Pro waits about 10 seconds upon booting before starting the program that I have loaded on it. Can I avoid this delay and the bootloader taking up space if I flash my program directly to ...
1
vote
1answer
469 views

Problems building an Arduino Micro with through-hole components

So I'm trying to build an Arduino Micro using a bread-board and through-hole components. I'm leaving out the voltage regulator and voltage selector (see schematic at the bottom for reference). I'm ...
0
votes
2answers
1k views

How Bootload an Lilypad Arduino USB using Arduino UNO

I recently bought two lilypads USB, one works perfectly (it's recognized in my computer, but the other one it's never recognized, I even try in different computers and the same scenario with both ...
1
vote
1answer
156 views

Made a Adafruit Flora unusable

I was playing around with an Adafruit Flora and a strip of NeoPixel LEDs. After uploading the sketch to the Flora (via Arduino IDE), the LED strip lights for about 1 second and then dims to a dull ...
0
votes
1answer
542 views

Problems burning bootloader on custom ATMEGA2560 board for High-powered model rocketry

I've designed a custom board meant for high-powered model rocket telemetry & duel-deployment. (More info upon request) To do this, I've soldered a ATMEGA2560 (yes, overkill, but I needed ...
1
vote
1answer
620 views

How do I know if bootloader flash was successful?

I just bought a raw Atmega328p microcontroller. I am attempting to flash it with the Arduino bootloader. The process seemed relatively straightforward as I had just followed the posted tutorial (...
1
vote
1answer
119 views

Identifying Bootloader ttyACM# device

I'm using a modified version of Arduino Zero Bootloader. I am trying to write software to automatically detect which USB device the bootloader is currently running on in order to execute bossac. I ...
0
votes
1answer
1k views

Yikes! Invalid device signature. Fail to burn bootloader and read fuses

I know this problem is kinda common but I had to post it anyway. Before anything, I would like to inform you guys that I changed the fuse of my Arduino Pro 3v3 @ 8MHz to allow 1.8 V brownout and also ...
0
votes
1answer
617 views

Burn arduino bootloader using ubuntu 16

I get the following error when I try to burn the arduino bootloader on an atmega328 mcu: avrdude: verification error, first mismatch at byte 0x0000 0xfd != 0x05 I am using an Arduino as ISP ...
1
vote
2answers
192 views

Atmega8 with Arduino bootloader - wrong serial characters

I recently flashed bootloader of Arduino to Atmega8. Unfortunately I stumbled on a problem I can't solved. I am testing SerialEvent example on Atmega8. I modified it but started debugging it on my ...
1
vote
1answer
319 views

Burn bootloader on custom ATmega 2560 board

I have developed and produced a custom board with a ATmega 2560 on it and a FT232RL for USB communication. I want to burn an Arduino bootloader onto the board without using an external Arduino as ISP. ...
3
votes
2answers
336 views

Bootloader sequence

If I got the picture right(correct me if I'm wrong) the standard bootloader senses the serial comm, and if nothing is read it passes control to the core program, which roughly corresponds to int ...
1
vote
2answers
3k views

Standalone Arduino with ATMEGA328P / Serial working, but serial programming not (only once after buning bootloader)

For my master thesis I've designed a board with an ATMEGA328P-AU as micro controller. As I want to use some libraries and I like the simplicity, I want to use "Arduino" to program it. Everything ...
0
votes
2answers
1k views

how can i fix the error ? stk500v2_getsync(): timeout communicating with programmer

I bought this Chinese Arduino Mega 2560 16AU. This was the first time to deal with Arduino boards. When I try to upload a sketch I always get this error: stk500v2_getsync(): timeout communicating ...
-1
votes
1answer
3k views

How to bootload a atmega328-pu using arduino uno?

I have some Atmega328-Pu micro-controllers without boot-loader program. Now I need to burn boot-loader to them all. I have two arduino uno boards having Atmega328 P-Pu micro-controllers on board. I ...
0
votes
0answers
582 views

Unable to reset arduino with RESET pin

I am using a custom built arduino UNO for some personal projects. I am using a custom optiboot bootloader given by Nick in this post. This was done to prevent the three LED flashes on digital pin 13. ...
1
vote
1answer
561 views

Burn new bootloader without crystal

I am considering purchasing these ATmega328 s from 3 pack ATmega328P. The company says they come with the Arduino UNO bootloader. I do NOT have any 16 MHz crystals, and I would like to make the ...
0
votes
1answer
57 views

How to not wait for USB to become active?

EDIT: My original question was a bit "off" since the Arduino Nano I was using appeared to be faulty. This edited question is based on my other Arduino Nano which is working. When I plug my Arduino ...
1
vote
0answers
58 views

Can burn bootloader but not sketches… thoroughly mystified!

I have a custom board designed to be essentially identical to the Arduino Micro (Atmega32u4). I can burn the bootloader (Caterina) and it burns just fine, including the fade-then-slow LED signal that ...
2
votes
0answers
2k views

avrdude/stk500 protocol error

I'm running into a bizarre problem. I've got a custom board using an Atmega328P, running off the internal oscillator. From Atmel studio, I've successfully uploaded the standard optiboot bootloader (...
5
votes
3answers
4k views

Confusion with ATmega328P and 3.3V/8MHz

Firstly, I have tried to set the bootloader to be 8MHz internal oscillator. I have tried the board setup from here - https://github.com/oshlab/Breadboard-Arduino. And also the breadboard-1-6-x.zip ...
2
votes
2answers
2k views

Upload sketch via Bluetooth using HC-06 module

I'm dealing with an application in which I need to upload sketches remotely to an arduino UNO board. I successufully managed to upload sketches using an HC-06 bluetooth adapter. The only problem is ...
0
votes
1answer
523 views

Burn normal bootloader onto Atmega328P configured to use internal 8MHz clock

I have an Atmega328P that I have previously burned with a bootloader configured to use the 8MHz internal clock as described here. I would like to now burn the normal Duemilanove bootloader configured ...
6
votes
1answer
2k views

Pin 13 fires relay when powering on… How to disable?

Pin 13 fires relay when powering on... How to disable? I'm using pro mini 5v 16MHz and a DC 12V 2 Channel Relay Module Optocoupler. The relay Jd-VCC is powered by a 12V and it's VCC is 5V (the same as ...
0
votes
1answer
397 views

Arduino IDE stopped uploading sketches to BLEduino board

I know similar questions to this have been asked before, but I have a "resp=0x10" which I haven't found elsewhere, so maybe it's different, the board is also not an Arduino Uno although it's should be ...
2
votes
1answer
268 views

Nick Gammon's Hex Converter Error

I'm trying to add a bootloader hex to Nick Gammon's Atmega Board Programmer sketch, and I can't seem to get a hex file to convert. I need to convert "Arduino-usbserial-atmega16u2-Uno-Rev3.hex", but ...
1
vote
2answers
819 views

Modify Arduino Due's Bootloader to flash when reset

I bought an Arduino Due, and I noticed unlike the other boards, the onboard LED does not flash after reset. I prefer this behavior, so I want to modify the bootloader to do this behavior when it ...
2
votes
1answer
392 views

ATmega32U4 (Leonardo/Pro Micro) bootloader, 8K rather than 4K?

Recently hit the dreaded 0x7000 / 28k~ AVRDUDE+LUFA limit. It states everywhere this is because the bootloader uses 4KB, thus reducing the 32KB to 28KB. Makes sense, except... Blank sketches on the ...
1
vote
0answers
421 views

Arduino programming attiny13a

Hello I want to program an Attiny13a with Arduino code. I always have this error when I add repository "no file board.txt" in path. How to successfully configure IDE to able burn on it? I use : Link ...
9
votes
3answers
802 views

Programming many Arduinos simultaneously with a wireless broadcast

I will have many microcontroller-based devices which will be independent from each other, but all will run the same program. I would like to upload a program to all of them at the same time with a ...
2
votes
0answers
162 views

Atmel SAM MCU (on Arduino Due) only boots after second power up

I am using an Arduino Due as a prototyping board for a microcontroller project. The due has the chip Atmel ATSAM3X8E, with an ARM Cortex-M3 core. I am programming the flash directly using Atmel Studio ...
0
votes
1answer
363 views

Use command line to upload hex code to teensy.ex

I need a command line implementation for uploading code to Teensy-LC through Windows 8.1 operating system I know Paul has not released support for command line for Teensy-LC yet but i would like to ...
1
vote
2answers
1k views

Use command line to upload program through hex file to Teensy-LC

I want to make a standalone programmer for Teensy-LC in windows 8.1. So basically I have provided the board to a client of mine and now I want to change the program loaded into the Teensy-LC board. ...
0
votes
1answer
202 views

How to upload Arduino sketches to Atmel chips

I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital ...
1
vote
2answers
4k views

What is the proper way to turn an Arduino UNO into an ISP?

I have a bricked Arduino Uno and I want to try to flash the bootloader. I'm trying to figure out how to do it. On this tutorial from SparkFun you can see this diagram: They also show this table of ...
1
vote
1answer
213 views

Bootloader only works once with usb to serial module

When programming the Pro Mini using this USB-to-serial adapter the boot loader only works once. After the first programming the programmer is out of sync or not responding. To be able to program the ...
2
votes
1answer
5k views

Upload a .hex file, using a standalone ISP, without overwriting bootloader

Is it possible to flash a .hex file on an AVR MCU, which already contains the Arduino bootloader, using an AVRISP mkII, without overwriting the bootloader? In my concrete situation, I have an Arduino ...
5
votes
3answers
1k views

Is it possible to create a standalone exe which can burn the code into a Teensy 3.1?

So here's the scenario. I have sent my teensy 3.1 circuit to a client of mine And now I need to update the code burned onto teensy without providing client access to the code So is it possible to ...
2
votes
1answer
158 views

What does the bootloader do?

As far as I understand it checks for a valid serial connection (new program incoming) and then either writes it to flash or starts executing the existing program. Can't the 32u4 or EDBG fill the role ...
3
votes
3answers
3k views

burn arduino bootloader and compiled sketch at same time

How can I write the bootloader and sketch code to an Arduino through the ISP and then write the sketch code again using the Arduino IDE later? Currently, I can write the bootloader through the ISP ...