public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FLASH API v.2 and interrupts
@ 2009-10-02 10:35 Iris Lindner
  2009-10-02 10:50 ` [ECOS] IDE failed to identify unit 0 - wrote: a0, read: 7f Jim Bradleigh
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Iris Lindner @ 2009-10-02 10:35 UTC (permalink / raw)
  To: ecos-discuss

Hi everyone,

(Please excuse if I have overlooked a solution to our problem in mailing lists 
for example.)

we have the following problem with our system (using redboot romram mode):
We can't properly harmonize flash operations and interrupt handling. There are 
regularly frames coming in on CAN bus (lifesign signals of the nodes) which 
have to be treated. 

We use Version 1 eCos FLASH API (chip: Spansion S29GL256P) and get terrible 
crashes (including completely empty flash afterwards) when interrupts are NOT 
disabled and flash is programmed for example when meanwhile CAN bus traffic 
is increased.

If we disable interrupts on device driver level (HAL_[DISABLE|
RESTORE]_INTERRUPTS()) flash operations all work fine 
but CAN frames get lost and the task goes offline (-> whole machine no longer 
able to work).

Could Version 2 of eCos FLASH API solve the problem? (It is interrupt safe 
now, isn't it?)
Do you need more information about our system/configuration (I'm not sure 
about what details are useful to know)? 

Thank you very much in advance for your help, I'm looking forward to any 
comment!
Kind regards,
Iris Lindner

-- 
Iris Lindner
Software Development

Industrial Print and Apply Labelling

www.Logopak.com

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-08 13:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-02 10:35 [ECOS] FLASH API v.2 and interrupts Iris Lindner
2009-10-02 10:50 ` [ECOS] IDE failed to identify unit 0 - wrote: a0, read: 7f Jim Bradleigh
2009-10-02 14:06   ` [ECOS] Debugging Redboot Jim Bradleigh
2009-10-07 16:20     ` Bart Veer
2009-10-02 11:13 ` [ECOS] FLASH API v.2 and interrupts Stanislav Meduna
2009-10-07 16:55 ` Bart Veer
2009-10-07 17:30   ` Paul D. DeRocco
2009-10-07 18:46     ` Bart Veer
2009-10-08 11:22   ` Iris Lindner
2009-10-08 13:50     ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).