AnsweredAssumed Answered

[MPC5674F] EBI with AXM-0472 creating aliases in an external memory

Question asked by Jefferson Masahiro Fujioka on Oct 26, 2016
Latest reply on Dec 20, 2016 by Jefferson Masahiro Fujioka

Hi,

we are facing some problems trying to use the external RAM from AXM-0472 board.

We can read/write in the memory, but from address 0x20010000 (base address is 0x20000000) the data begin to repeat every 64KB address, I mean, the data seems to be only "aliases", e.g.:

if I write 0xdeadbeef at address 0x20000000 the data is propagated to their "aliases": 0x20010000, 0x20020000, 0x20030000, until 0x20070000.

 

the memory looks like as below:

0x20000000 0xdeadbeef -> 0x20010000 0xdeadbeef -> 0x20020000 0xdeadbeef ... 0x20070000 0xdeadbeef
0x20000004 0xdeadbeef -> 0x20010004 0xdeadbeef -> 0x20020000 0xdeadbeef ... 0x20070000 0xdeadbeef
0x20000008 0xdeadbeef -> 0x20010008 0xdeadbeef -> 0x20020000 0xdeadbeef ... 0x20070000 0xdeadbeef

 

We are using the MPC5674F with the AXM-0472 board which already has a connection with an external memory (CY7C1338-100AXC - 512KB).

 

We got a sample code from CodeWarrior's IDE specific for that platform (MPC5674F + AXM-0472) that already configures the EBI to be used, but it's not working.

 

See below the configuration of the EBI's registers:

  • EBICALBR0 = 0x20000083 (Base Address: 0x20000000, 32-bit, Muxed bus)
  • EBICALOR0 = 0xfff80000
  • EBIMCR = 0x0

 

See below the configuration of the PCRs:

 

PCR no. 256: D_CS0
PCR-FLAGS: PA-Primary, OBE-DISABLE, IBE-DISABLE, DSC-20PF, ODE-DISABLE, HYS-DISABLE, SRC-MIN, WPE-ENABLE, WPS-ENABLE

 

Data and address PCRs

 

PCR no. 257: alternate function D-ADD-DAT31
PCR-FLAGS: PA-Alt1, OBE-DISABLE, IBE-DISABLE, DSC-20PF, ODE-DISABLE, HYS-DISABLE, SRC-MIN, WPE-DISABLE, WPS-DISABLE

 

PCR no. 263 - 277: alternate function D-ADD-DAT16 - 30
PCR-FLAGS: PA-Alt1, OBE-DISABLE, IBE-DISABLE, DSC-20PF, ODE-DISABLE, HYS-DISABLE, SRC-MIN, WPE-DISABLE, WPS-DISABLE

 

PCR no. 278 - 293: primary function D-ADD-DAT0 - 15
PCR-FLAGS: PA-Primary, OBE-DISABLE, IBE-DISABLE, DSC-20PF, ODE-DISABLE, HYS-DISABLE, SRC-MIN, WPE-DISABLE, WPS-DISABLE

 

Control PCRs

 

PCR no. 294 - 305: primary functions D-RD-WR, D-WE0, D-WE1, D-OE, D-TS, D-ALE, D-TA, D-CS1, D-BDIP, D-WE2, D-WE3, D-ADD9
PCR-FLAGS: PA-Primary, OBE-DISABLE, IBE-DISABLE, DSC-20PF, ODE-DISABLE, HYS-DISABLE, SRC-MIN, WPE-ENABLE, WPS-ENABLE

 

 

We would appreciate if someone could help us.

 

Regards,

Fujioka

Outcomes