5

I am trying to move from arduinos to AVR C. Would somebody know how to remove the arduino bootloader from the microcontroller? Is there a different process for the different atmega microcontrollers like the 32u4, 328, or 2560?

Thanks.

asked Jul 1, 2015 at 22:23

1 Answer 1

2

You don't "remove" the bootloader, you just ignore it. When you program your new code with the hardware programmer of your choice it will just overwrite the bootloader code with your software's startup code.

answered Jul 1, 2015 at 22:43
3
  • 3
    If you actually need to. Just because a program is written bare-metal without use of the Arduino runtime libraries down't mean an Arduino/optiboot/whatever bootloader may not still be a convenient way to get it onto the chip. It's really only necessary to remove the booloader if you need to speedup the start of the application after reset, remove any chance of it not starting based on serial input that looks like programming commands, or reclaim that small amount of flash space. Commented Jul 2, 2015 at 2:41
  • I think you need to change the fuses, to set the correct Boot Start Address (or that flash memory isn't available for your program). Commented Jul 2, 2015 at 16:14
  • 1
    Isn't that naturally part of you writing your program? Setting the right fuses for your program? Commented Jul 2, 2015 at 16:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.