This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: FLASH driver problems on eCos 1.3.1 for edb7312


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]