Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ArnoldB
PostPosted: Jan 06, 2010 - 09:37 AM
Raving lunatic


Joined: Nov 29, 2007
Posts: 3219


With that version now both the blink and the dfll program show verification errors.

blink:
Code:
avrdude: verification error, first mismatch at byte 0x0213
         0xe7 != 0xe1

dfll:
Code:
avrdude: verification error, first mismatch at byte 0x0212
         0xee != 0xe6

Comparing the values in binary

1110 0111 (wanted)
1110 0001 (found)

and

1110 1110 (wanted)
1110 0110 (found)

shows two things:

1. It is always the lower nibble being wrong
2. It is always that 1s are written as 0s:

And

3. It is always around 0x213

I went back to the previous error messages, and it is the same there. Always the lower nibble wrong, always 1s changed to 0s.

Maybe it is time to call it a hardware error, or power supply error or whatnot. However, I should mention that I can program the same xmega on the board with JTAG without problems.

BTW, I still use the original rev 4 bootloader in the at90usb1287 on the board.
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 06, 2010 - 11:10 AM
Moderator


Joined: Jan 23, 2004
Posts: 9823
Location: Trondheim, Norway

Well I'm thoroughly confused; the transmission system is serial USART, so it's not like a line could be stuck somewhere -- it's either not going to be able to do anything at all, or it's going to work. Lots of others seems to have got it working (myself included) which doesn't leave much else to chance.

Could you please try programming with AVRStudio, and NOT AVRDude? If that still gives verification errors, I'll be both very confused and grumpy as it doesn't leave much else to check. The one thing I can think of is AVRDude not setting the correct erase/page bits in the programming packets, but on my patched AVRDude it seems to work just fine.

When my non-loaner XPLAIN gets here, I'll have to check it on that also.

The bootloader won't have anything to do with the failure to program the XMEGA - something else is afoot.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ArnoldB
PostPosted: Jan 06, 2010 - 05:44 PM
Raving lunatic


Joined: Nov 29, 2007
Posts: 3219


So i tried it on Windows with Studio 4.18 SP1. Out of ten tries nine worked, one failed at 212. As opposite to Linux where 10/10 fail.

Next week I'll get another Xplain board. I'll try with that one again.
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 15, 2010 - 01:25 PM
Moderator


Joined: Jan 23, 2004
Posts: 9823
Location: Trondheim, Norway

HOLY CRAP.

Quote:
{REMOVED}


- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.


Last edited by abcminiuser on Jan 27, 2010 - 09:29 AM; edited 1 time in total
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
vinlee
PostPosted: Jan 15, 2010 - 01:42 PM
Newbie


Joined: Mar 01, 2008
Posts: 12


Congratulation Dean, you're well deserved it.

Vince
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Jan 15, 2010 - 01:53 PM
Raving lunatic


Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia

Start buying lots of winter clothes then Very Happy Very Happy Very Happy

_________________
Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 15, 2010 - 02:03 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

[quote="abcminiuser"]HOLY CRAP.

< Quote removed (on demand) by Plons >

Hey Dean

Get them to ship an Xplain board also , the Ross can have his back Smile

Congrats .... You have been "Discovered"

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 15, 2010 - 02:22 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62270
Location: (using avr-gcc in) Finchingfield, Essex, England

Holy crap! indeed.

(the mercenary in me says "do you really need an AVR One! - how much could you get for it on ebay?" Wink)

Perhaps you can now confirm the myth that users of the One! have a gentle aura of gold glow around them?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Eumel
PostPosted: Jan 15, 2010 - 03:00 PM
Newbie


Joined: Feb 08, 2006
Posts: 12


Fantastic!

Finally they noticed your good work, Dean. Maybe you can be the missing link between Atmel and good C-libraries.

I think when you finish your study, they will (and should) offer you a good job.

Congratulations from Germany

Einhart
 
 View user's profile Send private message  
Reply with quote Back to top
gurra95
PostPosted: Jan 15, 2010 - 03:35 PM
Hangaround


Joined: Jan 06, 2010
Posts: 129
Location: london

NICE!!!
 
 View user's profile Send private message  
Reply with quote Back to top
gurra95
PostPosted: Jan 15, 2010 - 07:34 PM
Hangaround


Joined: Jan 06, 2010
Posts: 129
Location: london

you must tell me how they are.
i would buy one if my budget whas enough (110€) and if they had avr8bit(comming wath i now) support. Sad
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 15, 2010 - 10:57 PM
Moderator


Joined: Jan 23, 2004
Posts: 9823
Location: Trondheim, Norway

Thanks guys!

Do I need it? No. Do I want it? HELL YES! I'll be sure to post a review, etc. when it arrives as I don't think many people have seen one before (I know I haven't) outside Atmel's website.

I'm not certain how Atmel will be using the firmware, but I'm pleased either way. It will be interesting to see if they use it as a base for their own version, or just chuck it on new XPLAIN boards and list me on the XPLAIN page of their website.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jan 16, 2010 - 03:46 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62270
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I'm not certain how Atmel will be using the firmware, but I'm pleased either way.

Bear in mind that for the cost of an AVR One! they could employ one contract programmer for just 8 hours so if they are actually getting an implied license to use some of your software (which took a whole lot more than 8 hours to write) as a result of this then they are getting a very good deal. OTOH maybe they are just being philanthropic (knowing Atmel I'm guessing the latter).

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
ArnoldB
PostPosted: Jan 16, 2010 - 04:54 PM
Raving lunatic


Joined: Nov 29, 2007
Posts: 3219


clawson wrote:
if they are actually getting an implied license to use some of your software (which took a whole lot more than 8 hours to write) as a result of this then they are getting a very good deal. OTOH maybe they are just being philanthropic (knowing Atmel I'm guessing the latter).
Ehm, they already got a LUFA license, like I got one, and like you can get one, too. Not implied, but explicit.

LUFA source wrote:
Code:

/*
  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)

  Permission to use, copy, modify, distribute, and sell this
  software and its documentation for any purpose is hereby granted
  without fee, provided that the above copyright notice appear in
  all copies and that both that the copyright notice and this
  permission notice and warranty disclaimer appear in supporting
  documentation, and that the name of the author not be used in
  advertising or publicity pertaining to distribution of the
  software without specific, written prior permission.

  The author disclaim all warranties with regard to this
  software, including all implied warranties of merchantability
  and fitness.  In no event shall the author be liable for any
  special, indirect or consequential damages or any damages
  whatsoever resulting from loss of use, data or profits, whether
  in an action of contract, negligence or other tortious action,
  arising out of or in connection with the use or performance of
  this software.
*/

 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 16, 2010 - 11:41 PM
Moderator


Joined: Jan 23, 2004
Posts: 9823
Location: Trondheim, Norway

Quote:

Ehm, they already got a LUFA license, like I got one, and like you can get one, too. Not implied, but explicit.


That's right - they can use it, but they must give me credit. I think a company using my firmware over their own for their boards will speak volumes to a potential employer, and I'd like the recognition.

The other (better) possibility is that Atmel pays me the US$1500 license fee I offer to absolve them of this duty, so that they can release binaries without the accompanying author credit requirement.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
valusoft
PostPosted: Jan 16, 2010 - 11:58 PM
Raving lunatic


Joined: Jul 02, 2005
Posts: 5939
Location: Melbourne, Australia

Congratulations Dean.

Cheers,

Ross

_________________
Ross McKenzie
ValuSoft
Melbourne Australia
 
 View user's profile Send private message  
Reply with quote Back to top
ArnoldB
PostPosted: Jan 17, 2010 - 12:39 AM
Raving lunatic


Joined: Nov 29, 2007
Posts: 3219


abcminiuser wrote:
The other (better) possibility is that Atmel pays me the US$1500 license fee I offer to absolve them of this duty, so that they can release binaries without the accompanying author credit requirement.
I am all for you getting $1500.

On the other hand, Atmel has released at least one application notes based on someone else's code. AVR309 (incidentally also about USB) is written by Igor Cesko and describes his software USB implementation, with credit at the end of the document.

I also always had the feeling that the application note describing the Dragon opto-isolation extension is some kind of "student work". I am, however, not sure if the student, intern or whoever is credited in in the note (couldn't find the app. note in a hurry).
 
 View user's profile Send private message  
Reply with quote Back to top
dpharris
PostPosted: Jan 17, 2010 - 07:18 PM
Hangaround


Joined: Sep 10, 2002
Posts: 118
Location: Victoria, BC, CANADA

Congrats Dean! Thanks for all your good works, and thanks in advance for you future endeavors!

David, Canada
 
 View user's profile Send private message  
Reply with quote Back to top
alancarr
PostPosted: Jan 29, 2010 - 11:32 PM
Rookie


Joined: May 27, 2007
Posts: 39
Location: Portland, OR

Hey Dean, congrats on the recognition from Atmel (whys the quoted email gone now?). I finally got around to trying out the newest version of your programmer/serial bridge. It seems to work great, I'm sure its gonna be really useful in the future.

One thing I was wondering about though is what it does when it finishes programming. After programming, the Xmega seems to be stuck in reset and I have to unplug the usb to get it going again. With my jtagice mkii it does the same thing when using jtag, but if I use pdi the Xmega resets after I close the programming window. It makes it pretty handy since the Xplain doesnt have a reset button. Any ideas on why your programmer and the jtag does this? Is this the way the avrisp behaves? Any chance you can modify yours so that it behaves similarly to the pdi programming on the jtagice mkii? Have I asked enough questions in a row?Very Happy

Anyway, thanks a bunch for your work on this!
 
 View user's profile Send private message  
Reply with quote Back to top
abcminiuser
PostPosted: Jan 30, 2010 - 03:17 AM
Moderator


Joined: Jan 23, 2004
Posts: 9823
Location: Trondheim, Norway

Quote:

Hey Dean, congrats on the recognition from Atmel (whys the quoted email gone now?). I finally got around to trying out the newest version of your programmer/serial bridge. It seems to work great, I'm sure its gonna be really useful in the future.


The Atmel engineer asked me to remove it as he didn't want all his details and message out in the open. It was dumb of me to simply repost it without first paraphrasing or editing it anyway.


Quote:

One thing I was wondering about though is what it does when it finishes programming. After programming, the Xmega seems to be stuck in reset and I have to unplug the usb to get it going again.


I actually noticed that yesterday morning, and fixed it in the SVN/GIT repositories. If you grab the absolute latest files and recompile, it should release the XMEGA from reset now automatically.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits