This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EMAC_LPC177x_8x bss on sram. Does it possible?

Hello!

I trying to place my EMAC_LPC177x_8x.c in SRAM. Does it possible? I inited emc for SRAM K6X1008TD2 and wrote scatter file. I did it with SDRAM and it works fine. So try to do with SRAM K6X1008TD2. The shematic here dl.dropboxusercontent.com/.../sramConnection.png.

Scatter file:

LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x10000000 0x00010000  {  ; RW data
   .ANY (+RW +ZI)
  }

  RW_IRAM2 0x20000000 0x00007FFF  {  ; RW data
        ;EMAC_LPC177x_8x.o (.bss)

  }

  RW_RAM1 0x80000000 UNINIT 0x0000FFFF  {  ; RW data
 {
        EMAC_LPC177x_8x.o (.bss)
  }

   RW_RAM2 0x81000000 UNINIT 0x0000FFFF  {  ; RW data

  }
}

When I write simple text to SRAM it works fine (data is correct). But when I put EMAC_LPC177x_8x bss in SRAM there is no ping (RL tcp-net simple program), but programm doesn't crash. When I put EMAC_LPC177x_8x bss in RW_IRAM1 0x10000000 0x00010000 it works ok. What am doing wrong?

Regards