How to write to bootloader using UART1 for atmega 1284p

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all

It will be helpful if you can share simple tutorial on using UART1 to write bootloader for the Atmega 1284p.

 

Is bootloading similar to flashing the hex file into the microcontroller ?

 

Is ISP way better than USB bootloading using a flash ?

 

Thanks 

Srinivasa Varadhan.

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A bootloader is a program that runs after reset that allows you to flash new code by means other than ISP or JTAG. Arduinos use a bootloader so you can load code via the usart. A Google should uncover a bootloader for the 1284. It should be simple to modify it for either usart.
Note: you need to get the bootloader onto the chip in the first place. You need ISP for this.

Last Edited: Mon. Feb 1, 2016 - 07:30 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Flashing a new code by other means than ISP or JTAG means using FTDI ? Do they use FTDI in Arduino through USART ?

Thanks for the previous response and advance thanks for the reply coming :)

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

FTDI as in USB to serial. Yes, Arduino uses the usart. Arduino have used a atmega8u2 as the usb to serial converter for some time now rather than a FTDI chip.
The leonardo uses USB natively.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

srinivardhan wrote:
Is ISP way better than USB bootloading using a flash ?

I'm going to go  out on a limb here and say:

 

 

YES

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can someone share me tutorials on creating boot loader in self programming mode. In which software we can write code for the boot loader ?

It will be also nice if someone can share a well explained boot loader example.

 

Thanks 

Srinivasa Varadhan.

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To add specifications to the previous question, I am wanting to write bootloader to receive data from a server through a bluetooth module. 

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did Google it sir. I am a beginner and felt difficult even in deciding the right method. Thats why this question posted.

 

Thanks

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Almost all existing bootloaders already use UART as their communications channel to receive instructions and data to perform firmware updates. True that usually means a direct cable connection between a PC and the AVR but the addition of Bluetooth into that only slight complicates things. You should be able to take any existing UART bootloader and then just add some extra "setup stuff" to the front that just gets the Bluetooh talking. After that the communications won't care whether the link is actually a piece of wire or a radio link. So you should be able to use 90..95% of any existing bootloader.

 

I'd still take a step back and ask whether you really NEED a bootloader. Can't you just connect a PC/laptop with ISP to the device to be updated on those rare occasions the code needs to be changed?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'd still take a step back and ask whether you really NEED a bootloader. Can't you just connect a PC/laptop with ISP to the device to be updated on those rare occasions the code needs to be changed?

Yes, boot loading through Bluetooth is essential.
Can you share me a example boot loading code which I could re edit with the blue tooth module.

Thanks
Srinivasa Varadhan.

Thanks,

Srinivasa Varadhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

srinivardhan wrote:

Yes, boot loading through Bluetooth is essential. Can you share me a example boot loading code which I could re edit with the blue tooth module. Thanks Srinivasa Varadhan.

What have you found so far? In the Projects section here there have to be 10+ to chose from. Out on the internet there have to be 1,000+ to choose from.

 

If you just want "simple" then the AVR109 bootloader used for Arduino (Optiboot) is very popular.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

srinivardhan wrote:
I did Google it sir. I am a beginner and felt difficult even in deciding the right method. Thats why this question posted.

So, I tried " avr bootloader android bluetooth" in Google, and came up with AVRdroid...

https://www.youtube.com/watch?v=...

https://community.atmel.com/proje...

 

Another mentioned here:

http://xythobuz.de/yasab.html

 

Another: https://www.androidpit.com/app/k...

 

...and more...

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.