This is the mail archive of the ecos-discuss@sourceware.org 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: Does someone know how to deactivate MMU to check a memory access ?


Thierry (and list)
I had a similar problem with our custom IXP425 based board.

To test the second flash I did the following:
I compiled different ROM and RAM images:
In the ROM image:
1 - I enabled CS1 with the same defaults as CS0:
In: cyg/hal/<your_platform_name>.h
#define IXP425_EXP_CS1_INIT \
 (EXP_ADDR_T(3) | EXP_SETUP_T(3) | EXP_STROBE_T(15) | EXP_HOLD_T(3) | \
  EXP_RECOVERY_T(15) | EXP_SZ_16M | EXP_WR_EN | EXP_BYTE_RD16 |
EXP_CS_EN)

2 - I added the new flash range to the MMU:
In : hal_platform_setup.h
	IXP_MAP_EXP 1, IXDP_FLASH_SIZE,       0, 0, 0, 0   // Flash1
(same as main flash)

Now the board can talk to the flash in CS1 but the flash driver does not
know about it.

In the RAM image:
1 - I changed the flash base in two places:
In: <your_platform_name>.h
#define IXDP_FLASH_BASE                    0x51000000
In: your_platform_name_strataflash.inl
#define CYGNUM_FLASH_BASE 	(0x51000000u)

Then I burned the ROM image to flash and loaded the RAM image from net.
The result was that the ram image worked on the second flash (but was
blind to the first one).

The above procedure does not enable working on both flashes
simultaneously but allows checking that the second flash is OK.

I noticed some old mail from Andrew that explains that it is not
possible to work with two flashes on different CS simultaneously because
the flash region is not contiguous and that a new flash driver (called
flash_v2) that supports it is on the way. 
Does anybody know if this new flash driver is operational?
Shmuel 



-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of thierry
langlais
Sent: Thursday, March 30, 2006 4:33 PM
To: eCos Disuss
Subject: [ECOS] Does someone know how to deactivate MMU to check a
memory access ?

Hi all,

I would like to test a read access to a second flash memory on an
ixdpg425 board platform but it doesn't work.

Does someone know how to deactivate MMU to check the memory access ?

Thanks and regards,

Thierry Langlais




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


 
 
************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************


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


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