We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Pay attention to the differences. UNINIT stops the memory be initialized, perhaps in the way you want.
http://www.keil.com/support/docs/3480.htm