Show Posts
Pages: [1] 2 3 ... 9
1  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 09:51:52 pm
Oh I forgot to mention; I understand that burning the bootloader sets the fuses according to the boards.txt file.  Allow me to verify something else though if I may.  As I understand it, you don't need to burn the bootloader in order to use the uC, correct?  I mean, the bootloader is burned so that you can have serial I/O consisting of uploading sketches, data IN/OUT.  Right?  If you do burn a bootloader it is placed at the end of the memory array and is used to perform those functions.  I'm not sure if it does anything beyond that.  What I'm getting at is that burning the fuses and burning the bootloader are different tasks that are not related nor dependent on each other, correct?  If all you wanted to do was to upload your sketches via the ICSP header, you wouldn't need to burn the bootloader at all.  You could burn the fuses, upload the sketch you want to run and be done with it.  But any updates to your sketch or to upload a new sketch would mean that you'd need the ICSP again.  I have been operating with the understanding that I burn the bootloader only because I want to be able to see serial data for debugging, and also to enable sketch updates via the serial header.

And now that I think about it, how does the  Arduino IDE upload sketches ... does it use avrdude 'under the covers'?  Or does it have some other mechanism/script/executable that it runs?

I know this is a little off topic, but not really.  I'm interested to learn and it applies to the problem I'm experiencing.

Ok thanks
2  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 09:03:49 pm
Hmmmmm....ok.  Could I get your most recent boards.txt file that you mentioned?  The one I downloaded (some time ago) has 0xff for the low byte fuse...

Nick's stuff ... that uses an Arduino as a programmer, right?  Isn't it odd that the mkII that I have now works on the devel board but not the prod board?

Ok thanks
3  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 01:05:52 pm
Ok now I am thoroughly confused, if I wasn't already.  I just tried using my mkII programmer to burn the fuses on one of the devel boards that I have (and that I know to work correctly).  I was able to do that; I could change the fuses to whatever I wanted.  I tried Cross's suggestion with the devel board too, and noted much the same behavior as the prod board.  However because the devel board uses through hole crystals, I was able to flip the board over and look at the voltage on the DVMM.  Both terminals showed approximately +2.45V.  I see +0.04V on the prod board crystal, but I cannot be sure that I am making a good connection to measure anything.  The new crystal is SMD, but I can see the legs and they're buried in a mound of solder.  So I would think that I could check it pretty easily.

So what the heck is going on?  Could this batch of crystals be INOP?  Seems rather unlikely that all 3 boards would be that way, but ....
4  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 12:21:17 pm
Just for info. The difference between low fuse F7 & FF is for crystal oscillator with low rising power and fast rising power (FF). I prefer F7 to make sure clock stability at MCU's startup.
I think the problem is in programmer. I had similar problem due bad wiring or what (not 100% sure) and to reload FW or ISP sketch it helps after rewiring of course. That's the reason why I'm recommending to try another programmer.

Ah, I see.  So do you recommend changing the FF value to F7 permanently, even in the boards.txt file?  Would it change anything once startup completed?

I have ordered a new AVRISPmkII programmer, though I don't expect it to arrive until the end of the week at the earliest.  I do have a UNO, but am not sure how to use that to burn the fuses....
5  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 12:19:01 pm
You won't be able to see a meaningful result with DMM on the crystal pins.
Change the fuse low byte to 0b10110111 (f7 with bit 6 low) to enable system clock out on pin Port B bit 1, physical pin 41. Should see ~2.5V with DMM as the output changes 0-5V at 16MHz.

Doing this and monitoring pin 41 with the DVMM showed that when not attempting to burn the fuses, the pin 41 value was a steady +5.02V.  Then when running avrdude with 0b10110111 for the low fuse, the voltage would drop to +4.96V, then return to +5.02V at the conclusion of the attempt.  I made several more runs after that and saw pretty much the same behavior, with +4.95V as the lowest voltage decrease to an unchanged value of +5.02V throughout the avrdude execution.  smiley-confuse

Thanks
6  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: September 01, 2014, 12:32:23 am
Setting the low fuse to 0xf7 has no effect, same result.

What type of voltage should be seen at the crystal terminals?  I checked it and was seeing nothing (+0.004V and minor fluctuations thereof), though it was only with my DVMM, so that may be inadequate.

Thanks
7  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 11:54:50 pm
I thought I read somewhere that you could do it either way, but I could have confused that with programming a board (as opposed to the programmer itself).  Anyway, I'll try the fuse change now to see if that does anything...
8  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 11:30:02 pm
In looking at the changes associated with that effort, I get a little nervous.  I might try to set the low fuse as you mentioned, but I dunno, that might be applicable only when and if using those new core files and all of the other associated changes.

Still haven't found a way to do the firmware update via avrdude...
9  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 10:31:05 pm
Sure, my understanding is that you can reprogram the fuses as many times as you'd like.  Bricking is a concern, but I don't think that is happening here.  However, I would need to know what hex values to specify in the command line to do what you're asking.  I don't know enough about what the fuse setting values mean in order to make that determination.  Have any idea?

BTW, the fuse values that I have used thus far are the ones that are defined for bobuino in the boards.txt file, thus:

Code:
##############################################################

bobuino.name=Bobuino
bobuino.upload.protocol=arduino
bobuino.upload.maximum_size=130048
bobuino.upload.speed=115200
bobuino.bootloader.low_fuses=0xff
bobuino.bootloader.high_fuses=0xde
bobuino.bootloader.extended_fuses=0xfd
bobuino.bootloader.path=optiboot
bobuino.bootloader.file=optiboot_atmega1284p.hex
bobuino.bootloader.unlock_bits=0x3F
bobuino.bootloader.lock_bits=0x0F
bobuino.build.mcu=atmega1284p
bobuino.build.f_cpu=16000000L
#bobuino.build.core=arduino:arduino
bobuino.build.core=standard
bobuino.build.variant=bobuino
10  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 04:26:09 pm
Ok after a few hours of searching I cannot find a good description of how to update the mkII firmware using avrdude (and not Atmel Studio).  I'm frustrated, so I'm headed to the outbuilding to work on my cars for a while.  I did order a new mkII from the Atmel site, but with the holiday tomorrow, I would not expect it to arrive until towards the end of the week.  Unfortunately.

I'll let everyone know what happens.  I'm still interested in trying the firmware update, but need to find a good writeup to do that first.
11  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 03:22:10 pm
Well I've done a fairly extensive search on how to update the mkII's firmware but am only finding references that involve using Atmel Studio, which I don't have installed.  There is fleeting reference to using avrdude to do the same thing, but I cannot find good instructions on how to do that.

Anyone have a link or a step by step procedure they can share?

I'm ordering a new programmer tonight too, just to cover all bases.  Essentially the procedure at this point is:

1) Try to do the firmware update
2) Try a new programmer

Thanks
12  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 02:52:36 pm
Here is the 5 minute video.  Any feedback is appreciated, thanks!

https://www.youtube.com/watch?v=rQVPoZcSAvs
13  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 01:25:16 pm
Thanks for the photos. That is only a short flat ribbon cable. That's okay, I use such cables myself for programming a bootloader.

Ok.  Well, it is what came with the mkII programmer when I bought it new.

I gave up last night on uploading the video from home.  WAY too long via satellite.  So I am in a Kinko's now waiting for it to finish.  But it's slower than I would have expected.  Perhaps they restrict uploads somehow or YouTube is slow by nature.  Who knows.  This is faster than from home anyway. lol  I'll post again with the link once the upload is ready.  I'd appreciate any feedback y'all might have.

Thanks!
14  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 01:23:16 pm
Try another programmer as Peter_n mentioned.

Ok I am willing to try anything at this point.  But I'll have to order one, this is all I have.
15  Using Arduino / Microcontrollers / Re: Unknown Status 0x00 error when burning bootloader on: August 31, 2014, 12:38:09 am
I've never had an issue myself, but when was the last time you updated the firmware on the AVRisp MkII?

Never.  Is it important to update the firmware periodically?  And how would I go about doing that?

Thanks
Pages: [1] 2 3 ... 9