From: Andrew S. <an...@sk...> - 2005-10-14 16:52:34
|
In my goofing around with my robostix I seem to have mucked up the fuses such that I can not program it from my serial programmer anymore. After going through the atmega128 documentation I think I may have disabled the serial port programmer support by mistake. Will a parallel programmer work on the ISP on the board? The documentation indicate that the pins for the parallel programmers are different (page 292 and 303) which makes me a bit leery. If not, is there another way to access the pins for a parallel programmer or to reprogram the fuse bits? ~Andrew |
From: Jony H. <gu...@j-...> - 2005-10-14 17:37:59
|
Andrew Skene wrote: > In my goofing around with my robostix I seem to have mucked up the fuses > such that I can not program it from my serial programmer anymore. After > going through the atmega128 documentation I think I may have disabled > the serial port programmer support by mistake. Will a parallel > programmer work on the ISP on the board? The documentation indicate > that the pins for the parallel programmers are different (page 292 and > 303) which makes me a bit leery. If not, is there another way to access > the pins for a parallel programmer or to reprogram the fuse bits? I didn't think you could disable serial programming by serially programming. Seems like a design flaw ! [You probably know this already, but just to be sure, parallel memory programming is different from what the cheap PC parallel port programmers do. They are confusingly often serial programmers.] Parallel programming might be a bit tricky, as you need access to XTAL1 which is connected to the external oscillator on the Robostix board. You could do it, but I think it'll involve some soldering to disconnect the external clock/make an adapter. Another option would be to wire a JTAG port on (you need a few of the analog lines and a couple of pins from the ISP) and try that way. All the lines you need come out on headers so it's pretty easy to do. Unless you've disabled the JTAG TAP fuse as well. Then you might be stuffed. HTH, Jony |
From: Dave H. <dhy...@gm...> - 2005-10-14 18:00:05
|
Hi, > [You probably know this already, but just to be sure, parallel memory > programming is different from what the cheap PC parallel port > programmers do. They are confusingly often serial programmers.] > > Parallel programming might be a bit tricky, as you need access to XTAL1 > which is connected to the external oscillator on the Robostix board. You > could do it, but I think it'll involve some soldering to disconnect the > external clock/make an adapter. The real difference is not how the programmer connects to your PC, it's how the programmer connects to the AVR. So parallel versus serial from the PC side is really irrelevant. The terms "low voltage" programming, and "high voltage" programmer seems to more accurately reflect what's going on. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Dave H. <dhy...@gm...> - 2005-10-14 17:56:32
|
Hi Andrew, > In my goofing around with my robostix I seem to have mucked up the fuses > such that I can not program it from my serial programmer anymore. After > going through the atmega128 documentation I think I may have disabled > the serial port programmer support by mistake. > Will a parallel programmer work on the ISP on the board? The > documentation indicate that the pins for the parallel programmers are > different (page 292 and 303) which makes me a bit leery. If not, is > there another way to access the pins for a parallel programmer or to > reprogram the fuse bits? There are really 3 different programming modes: 1 - low voltage ISP - This is what the AVRISP and programming from the gumstix do. 2 - high voltage ISP. I think that this is available if you have an STK500. 3 - JTAG - If you have an AVR JTAG. It is definitely possible to turn the robostix into a brick by using the wrong fuse settings. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Andrew S. <an...@sk...> - 2005-10-14 18:30:10
|
Thanks for the quick replies! My dad has an STK500 so I'll see if I can recover my board with it over the weekend. If not, I may be looking building a jtag device or buying a new robostix as it's around the same price as buying an avr jtag. ~Andrew Dave Hylands wrote: >Hi Andrew, > > > >>In my goofing around with my robostix I seem to have mucked up the fuses >>such that I can not program it from my serial programmer anymore. After >>going through the atmega128 documentation I think I may have disabled >>the serial port programmer support by mistake. >>Will a parallel programmer work on the ISP on the board? The >>documentation indicate that the pins for the parallel programmers are >>different (page 292 and 303) which makes me a bit leery. If not, is >>there another way to access the pins for a parallel programmer or to >>reprogram the fuse bits? >> >> > >There are really 3 different programming modes: > >1 - low voltage ISP - This is what the AVRISP and programming from the >gumstix do. > >2 - high voltage ISP. I think that this is available if you have an STK500. > >3 - JTAG - If you have an AVR JTAG. > >It is definitely possible to turn the robostix into a brick by using >the wrong fuse settings. > >-- >Dave Hylands >Vancouver, BC, Canada >http://www.DaveHylands.com/ > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >gumstix-users mailing list >gum...@li... >https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |
From: <an...@sk...> - 2005-10-16 21:08:13
|
I connected the robostix to the STK500 and set it to the high voltage/parallel programming setting. I can read in values on the high voltage setting but not write to it. It looks like the problem is I managed to set the "boot flash section size=512" instead of set to 4096 which is default. When I try to write new fuse settings I get the following output: Entering programming mode.. OK! Writing fuses.. 0xFF, 0xE9, 0xBF .. OK! Reading fuses -- 0xFF, 0xFF, 0xFF .. OK! WARNING: Fuse bits verification.. FAILED Is there a way to force writing the fuses and put the correct boot sector back onto the stix? Can I recover from this or do I have a brick? Thanks, ~Andrew > Thanks for the quick replies! My dad has an STK500 so I'll see if I can > recover my board with it over the weekend. If not, I may be looking > building a jtag device or buying a new robostix as it's around the same > price as buying an avr jtag. > > ~Andrew > > Dave Hylands wrote: > >>Hi Andrew, >> >> >> >>>In my goofing around with my robostix I seem to have mucked up the fuses >>>such that I can not program it from my serial programmer anymore. After >>>going through the atmega128 documentation I think I may have disabled >>>the serial port programmer support by mistake. >>>Will a parallel programmer work on the ISP on the board? The >>>documentation indicate that the pins for the parallel programmers are >>>different (page 292 and 303) which makes me a bit leery. If not, is >>>there another way to access the pins for a parallel programmer or to >>>reprogram the fuse bits? >>> >>> >> >>There are really 3 different programming modes: >> >>1 - low voltage ISP - This is what the AVRISP and programming from the >>gumstix do. >> >>2 - high voltage ISP. I think that this is available if you have an >> STK500. >> >>3 - JTAG - If you have an AVR JTAG. >> >>It is definitely possible to turn the robostix into a brick by using >>the wrong fuse settings. >> >>-- >>Dave Hylands >>Vancouver, BC, Canada >>http://www.DaveHylands.com/ >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: >>Power Architecture Resource Center: Free content, downloads, discussions, >>and more. http://solutions.newsforge.com/ibmarch.tmpl >>_______________________________________________ >>gumstix-users mailing list >>gum...@li... >>https://lists.sourceforge.net/lists/listinfo/gumstix-users >> >> > |