Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 07:29:36 19:29


Login with username, password and session length


Pages: [1]
Print
Author Topic: AVR Bootloader from external non-volatile memory  (Read 4326 times)
0 Members and 1 Guest are viewing this topic.
JoePesci
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 4
-Receive: 1


« on: April 14, 2015, 03:52:08 15:52 »

Hello All,

I just want to get some opinions from a high level point of view on a small project I am working on. So, what we are doing is creating a small bootloader to run on an ATmega1280 that will load an application file in intel hex format from an SPI based flash chip (IS25LD040). The main point of contention between my colleagues and is the fact that the method to load the firmware to the SPI flash is through the uC we are updating. So if at any point data is corrupted via poor firmware or emi issues, the chain is completely broken. I think it is fine because any redundancy checks in the "egg" firmware should minimize the risk of bad data getting pushed to the flash, so long as the bootloader has no serious bugs, the resulting "chicken" firmware should be loaded correctly. For this reason I really do not understand the argument. Attached is a flowchart for our bootloader and I will post up an ip-free version of the bootloader on here when it is done.

Any thoughts on our argument or the structure of the bootloader?

https://www.lucidchart.com/documents/embeddedchart/56b67f8f-3e17-4f38-a93a-673bb6203162

Logged
Old_but_Alive
Senior Member
****
Offline Offline

Posts: 331

Thank You
-Given: 745
-Receive: 120


« Reply #1 on: April 14, 2015, 06:45:01 18:45 »

I am no expert on this, but XBoot allows booting from I2C, so if AVRdude also allows, that would seem the easiest way to go with an I2C EEPROM
Logged

I fought Ohm's Law ...  and the law won
I only use Mosfets because I have a Bipolar mental disorder :-)
JoePesci
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 4
-Receive: 1


« Reply #2 on: April 15, 2015, 12:13:14 00:13 »

Thanks! I will look into porting xboot to work with our flash module.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC