well I had a long post.. but then it seemed I had more questions..(trouble)
I think I need some help clarifying..
Difference between using Optiloader (the sketch).. using Arduino as ISP.. and choosing (for example) Uno with using the Optiboot bootloader?
If I make a new boards.txt entry.. similar to the Uno (but with some edits)... and still follow along with the same process as is I was burning a Nano or Duemilanove..... but instead choose this NEW entry I made..
its more or less the same as using Optiloader sketch.. (but instead of auto-detect stuff) I am manually choosing the bootloader 'option/entry' I want.....yes?
Is there any different between using Optiloader sketch vs choosing UNO form the boards .txt menu option and buring with Arduino as programmer?
I like that Optiboot seems to install the default BLINK sketch.. shows its 'working'.. and that the bootloader 'took' correctly...
Using the Arduno as ISP/ and burn bootloader option.. seems to give me more control over the specific bootoader option I want to burn/apply...
So if I stick with the Optiloader (sketch) way... there isnt much I can do....right? (get that out of my head.. not the ONLY way to get/use the Optiboot bootloader....right?.. as I can manually apply/burn the UNO bootloader using the other steps...NOT the OPtiloader (sketch) approach)..
I think I get getting mixed up a bit on that...thats just different approaches for BURNING the bootloader...
Again to be clear.. doesnt matter that the board Im using as the bootloader, flashing JIG has a 16MHz crystal on it..
as long as the settings for the BOARD entry I make/use are all 'set' to be used in a 8MHz environment in the end.....correct?
all need to be like above....? (as well as name vaule and all prefix names changed)
a complete entry would be:
optiboot_8MHz.name=Optiboot @ 8MHz
Now.. I would use this option in my BOARDS menu if I was trying to burn an 8MHz bootloader to a FINAL circuit that will use an 8MHz clock...correct?....
Even if the board I was using to flash the chip was a 16MHz or a 8MHz board (as the intermediate JIG flashing board).. wouldnt matter.. as the FINAL board is still a 8MHz clocked circuit.....right?
I would not (as I thought earlier) have 2 different BOARD entries based on the clock/oscillator of the JIG board that will be used in flashing...(so Im clear)
* end board is still 8MHz board
* intermediate board used to flash blank chip is 16MHz... still same BOARDS entry?
* intermediate board used to flash blank chip is 8MHz... still same BOARDS entry?
(Im not talking about testing the boards.. purely flashing at this point only)..
I think Im just confusing myself more and more..LOL.. lots of info to digest here..
I was hoping it was easier than this!
but ultimately.. flashing the chip using Optiloader (sketch).. gave it 16MHz clock..
I forget.. can I just put this in the 8MHz board and it'll work at half speed? (and hence the same...without problems?)
or do I need to go back.. make a new BOARD entry using the Optiboot bootloader (ie: edited UNO entry).. change the upload speed, to be half...and change the f_cpu to: 800000000000L ..... and re-flash (manually choosing that form BOARDS menu and Arduino as ISP)..
so that when I do remove the chip from the 16MHz JIG board..and put in the 8MHz resonator board.. there will be no problems?
(I need a nap!)