Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000158FirmwareInit & Configpublic2011-06-15 17:472011-07-28 15:06
Assigned ToFred 
PlatformOSOS Version
Product Version 
Target VersionFutureFixed in Version 
Summary0000158: Fix up order of init operations to avoid spurious interrupts
DescriptionSome interrupts fire at boot time when they shouldn't. Investigate why, and implement a sequence and procedure there that avoids such behaviour.
TagsNo tags attached.
Issue TypeBug
Risk of Breakagelow
Attached Files

- Relationships

-  Notes
User avatar (0000209)
Fred (administrator)
2011-06-28 19:52

Serial for one. Use bit banging and saleae to watch for init time interrupts when the streaming of data is disabled. Check other key interrupts in a similar fashion.
User avatar (0000223)
Fred (administrator)
2011-07-28 15:02
edited on: 2011-07-28 15:04

I believe that the correct approach to this is to have a function that clears all enabled interrupt flags immediately before running ATOMIC_END()


 - Call init()
 - Disable interrupts with a call to ATOMIC_START() (which is just an asm sei)
 - Configure everything
 - Clear ALL flags
 - Enable interrupts with a call to ATOMIC_END() (which is just an asm cli)
 - Return from init()

I'll be playing with the init code soon anyway, so I may tackle this then.

User avatar (0000224)
Fred (administrator)
2011-07-28 15:06

I should first check if it's possible to make it behave by simple adjustments such as adding forgotten clear of particular interrupt flags, for example.

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker