Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
LUFA bootloaders ought to disable interrupts during program page operations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
inizen  
View profile  
 More options Nov 9 2012, 4:35 am
From: inizen <thedocmar...@gmail.com>
Date: Fri, 9 Nov 2012 01:35:43 -0800 (PST)
Local: Fri, Nov 9 2012 4:35 am
Subject: LUFA bootloaders ought to disable interrupts during program page operations

Hi Dean:

I found some old 2008 posts on this, but I have been playing with your
bootloaders and noticed that my test runs had very occasional word errors
(words left at 0xFFFF) in the bootloaded code. I'm fairly sure this is
caused by not disabling interrupts during the programming phase (while the
bootloader is firing out time-sensitive SPM instructions). Your code might
work because there is no USB activity (hence no USB interrupts) during a
program page operation but I think my LED flash timer was causing a
problem. The sample code on
http://www.nongnu.org/avr-libc/user-manual/group__avr__boot.html temporarily
disables interrupts and it would seem an obviously bad idea to
unpredictably interrupt a program page operation. When I disabled
interrupts my 0xFFFF glitches went away.

Regards,

Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Camera  
View profile  
 More options Dec 11 2012, 7:32 pm
From: Dean Camera <abcminiu...@gmail.com>
Date: Tue, 11 Dec 2012 16:32:55 -0800 (PST)
Local: Tues, Dec 11 2012 7:32 pm
Subject: Re: LUFA bootloaders ought to disable interrupts during program page operations
Hi Martin,

Sorry I missed this one (need to put better GMail filters in place to
highlight support threads I haven't answered). You've got a good point
- I couldn't find any explicit information in the memory section of
the datasheet that spells out what would happen with the interrupts,
but it can't be a good idea either way. Can you please add a bug
report to the tracker (http://www.lufa-lib.org/tracker) so that I
don't forget about this? I'll fix it up when I'm back at my primary
development machine in early January.

Cheers!
- Dean

On Nov 9, 8:35 pm, inizen <thedocmar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Lambert  
View profile  
 More options Dec 13 2012, 2:21 pm
From: Martin Lambert <thedocmar...@gmail.com>
Date: Thu, 13 Dec 2012 19:21:06 +0000
Local: Thurs, Dec 13 2012 2:21 pm
Subject: Re: [LUFA Support : 3800] Re: LUFA bootloaders ought to disable interrupts during program page operations

Hi Dean:

I filed this as a bug as requested.

Regards,

Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Camera  
View profile  
 More options Dec 13 2012, 7:00 pm
From: Dean Camera <abcminiu...@gmail.com>
Date: Thu, 13 Dec 2012 16:00:08 -0800 (PST)
Local: Thurs, Dec 13 2012 7:00 pm
Subject: Re: LUFA bootloaders ought to disable interrupts during program page operations
Thanks Martin! I'll patch it when I'm back at my main machine.

- Dean

On Dec 14, 6:21 am, Martin Lambert <thedocmar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »