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]
Other format: [Raw text]

Re: FIS problem


[ sorry for the delay in replying - ecos-discuss postings are only answered
when we have time ]

Jing Luo wrote:
> I can't copy RAM startup Redboot image to ROM after porting FIS on Intel
> XSCALE 80200EVB.
> Serial port hang during programming to Flash.
> Can you help me on this problem?

My guess is the following:

The flash driver has to have its write functions copied into RAM when it is
programming flash and running out of ROM (as is happening here). This is
because you can't access the code in flash that you are running from as you
program it.

There's two ways, and which is used is governed by
CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM option in io/flash which the low level
drivers will set. Depending on this, the relevant functions will hvae been
put in a ".2ram" section by the linker (controlled by
__attribute__((section(".2ram"))) in the code), or have to be copied by
hand. What could be happening is that you have the option set such that the
common code thinks the programming code is already in RAM
(CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM == 0), but actually isn't.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

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


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