public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FLASH driver problems on eCos 1.3.1 for edb7312
@ 2001-09-25 11:08 Chris Sekula
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Sekula @ 2001-09-25 11:08 UTC (permalink / raw)
  To: ecos-discuss

We developed a FLASH driver for an Intel bootblock FLASH for a prototype
board based upon the ebd7212 design running eCos version 2.0. The driver
worked very well, as did all of our test programs for the 7212. 

We subsequently developed a prototype board based upon the ebd7312 and
needed to rebuild eCos for the 7312 configuration. We obtained the
repository files and a patch for the 7312 from Cirrus Logic. The patch
operated on the repository files for version 1.3.1 of eCos. We tested a
simple program (it simply toggled an I/O line) on our 7312 board with
the new eCos build and it performed correctly. However, when I tested
our FLASH driver, which had been developed for the 7212 and eCos 2.0,
the driver could no longer write to the FLASH or erase any sectors. 

I then built eCos 1.3.1 with the edb7212 template and tested our FLASH
driver on our 7212 prototype. This time, the FLASH driver did not erase
any sectors and was not able to perform any writes either.

We examined the differences in the settings between the 1.3.1 and 2.0
eCos Configuration Tools with the 7212 template implemented. We noticed
that version 2.0 implements a setting for Cirrus Logic EDB7xxx FLASH
memory support, while version 1.3.1 does not. We don't use the function
calls for the 'built in' FLASH driver since we have developed our own
driver. However, we surmise that this setting may enable/disable write
attempts to the FLASH device. We also examined some of the repository
directories and noticed that under version 1.3.1, the \packages\devs
directory contains only two directories: 'wallclock' and 'watchdog'.
Alternatively, under version 2.0, the \packages\devs directory contains
several additional directories including a 'flash' directory. This leads
us to believe that we have either not installed version 1.3.1 properly
or that we need to install additional packages (eg. epk files).

1. Is version 1.3.1 with the edb7212 template configured as described
above (eg. without the Cirrus Logic EDB7xxx FLASH memory support
setting)? If so, how do we add additional packages for this or the 7312
configuration and where can we find the necessary epk files?

2. What factors would prevent our FLASH driver from operating on version
1.3.1 when it works correctly on version 2.0 for the 7212? There is
nothing special about our FLASH driver code - it's simple C programming
and the FLASH device is identical on both of our boards. Will the
exclusion of the 'Cirrus Logic EDB7xxx FLASH memory support' have an
effect on our own FLASH driver?

3. I've skimmed over the code in the patch for the 7312 and I am
considering manually implementing these changes into the repository
files for eCos version 2.0, most significantly, hal_platform_setup.h. Is
this a reasonable solution to our problems? 

4. Does the red hat website have a patch for the 7312 which patches eCos
version 2.0? It appears that Cirrus Logic only provides a 7312 patch for
version 1.3.1.

Thanks for any assistance,

CHRIS.

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

* RE: [ECOS] FLASH driver problems on eCos 1.3.1 for edb7312
@ 2001-09-25 12:12 Dan Conti
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Conti @ 2001-09-25 12:12 UTC (permalink / raw)
  To: ecos-discuss

> -----Original Message-----
> From: Chris Sekula [ mailto:chriss@turnpikeglobal.com ]
> Subject: [ECOS] FLASH driver problems on eCos 1.3.1 for edb7312
> 
> 1. Is version 1.3.1 with the edb7212 template configured as described
> above (eg. without the Cirrus Logic EDB7xxx FLASH memory support
> setting)? If so, how do we add additional packages for this 
> or the 7312
> configuration and where can we find the necessary epk files?

1.3.1 is pretty outdated now. The standard response has been to update
everything to the cvs tip.
 
> 2. What factors would prevent our FLASH driver from operating 
> on version
> 1.3.1 when it works correctly on version 2.0 for the 7212? There is
> nothing special about our FLASH driver code - it's simple C 
> programming
> and the FLASH device is identical on both of our boards. Will the
> exclusion of the 'Cirrus Logic EDB7xxx FLASH memory support' have an
> effect on our own FLASH driver?

Including the flash memory support shouldn't make a difference. IIRC it
just compiles the flash routines, but doesn't modify any other code.

Programming the flash is a pretty tricky operation. The basics are that
you have to block all interrupts, disable and flush the cache, copy the
code you need to execute into RAM somewhere, and make sure you dont
touch the flash at all while you are programming blocks. The packaged
flash driver takes care of that, you might want to see if that driver
works properly for you?
 
> 3. I've skimmed over the code in the patch for the 7312 and I am
> considering manually implementing these changes into the repository
> files for eCos version 2.0, most significantly, 
> hal_platform_setup.h. Is
> this a reasonable solution to our problems? 

Whether or not it's a reasonable solution, i would recommend doing that.
A lot of features and bugfixes have been added since 1.3.1 was released.
In terms of the HAL for the edb7xxx, i dont think it changed that much
between 1.3.1 and cvs current, other than minor bugfixes and a new
routine or two. So it shouldn't be a huge undertaking.
 
> 4. Does the red hat website have a patch for the 7312 which 
> patches eCos
> version 2.0? It appears that Cirrus Logic only provides a 
> 7312 patch for
> version 1.3.1.

I dont believe so. I'm actually surprised cirrus has a patch, since it
hasn't come up before. I'm sure the eCos team would love you if you were
to update the patch to cvs tip and submit it to them with a changelog
entry.
 
> Thanks for any assistance,
> 
> CHRIS.
> 

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

end of thread, other threads:[~2001-09-25 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 11:08 [ECOS] FLASH driver problems on eCos 1.3.1 for edb7312 Chris Sekula
2001-09-25 12:12 Dan Conti

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).