0
Offline
Sr. Member
Karma: 5
Posts: 468
what?
|
 |
« on: May 29, 2011, 06:05:44 pm » |
I could use a bit of guidance on creating a custom bootloader that will read an SD card and display icons on a touch screen in the format of smart phone, iphone, Etc... The icon will contain the filename of relating hex file also stored on the SD, Multiple projects will be stored on SD and be called up as required.
As i understand it the first instruction points to the bootloader code at the top of flash memory which then loads the executable code into low memory or at least this is how it happens with Pic's, I have not got this intimate with AVR's yet but would like to learn.
Also if I screw up the bootloader is it easy enough to burn the original mega1280 bootloader back onto the mega?
Thanks in Advance
|
|
|
|
« Last Edit: May 29, 2011, 06:08:42 pm by P18F4550 »
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #1 on: May 31, 2011, 08:14:27 am » |
This is theoretically possible but you'd most likely require more than one microcontroller. Take a look at this to give you an idea. Also if I screw up the bootloader is it easy enough to burn the original mega1280 bootloader back onto the mega? Yes - assuming you have a programmer or another arduino to use as a programmer.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 5
Posts: 468
what?
|
 |
« Reply #2 on: May 31, 2011, 01:53:31 pm » |
Thanks for the link mowcius, that's pretty much what i'm looking for.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #3 on: May 31, 2011, 04:27:26 pm » |
I'm also interested in this and I have a bit more time on my hands atm - I'll see if I can come up with any more ideas.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« Reply #4 on: May 31, 2011, 05:01:54 pm » |
Why not an attiny programmed to act as an isp that reads in chunks of a hex file at a time and then writes it to the arduino's flash?
|
|
|
|
|
Logged
|
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?" The cat asked, "Where do you want to go?" "I don't know," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #5 on: May 31, 2011, 05:07:15 pm » |
I have a feeling it aint quite as simple as you make it sound but feel free to show us how if you know 
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« Reply #6 on: May 31, 2011, 05:50:30 pm » |
Haha no im sure its not so simple, but in theory, that is the kind of system that would work, yes?
|
|
|
|
|
Logged
|
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?" The cat asked, "Where do you want to go?" "I don't know," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #7 on: May 31, 2011, 06:41:18 pm » |
Umm, well in theory but an ATtiny chip really wouldn't be ideal.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 5
Posts: 468
what?
|
 |
« Reply #8 on: June 01, 2011, 03:56:20 am » |
Thanks,
the reason im using a Mega instead of Duemilanove is that i have the mega already setup and running display, touch and SD. i s'pose the code size could be reduced by just displaying text filenames and using buttons to scroll and select rather that icons. the idea of using a second mcu to program the mega is good, having thought about it i dont really need a custom bootloader if my existing program writes the .hex from SD to an unused area of flash and then ORG's to the begining of code.
|
|
|
|
|
Logged
|
|
|
|
|
|