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

How much of a RAM we can use in our program

Hi,
I'm using LPC1768 controller keil v5.24.2.0. In the LPC1768 controller i put tcpip,http stack and some other application to it. While executing data memory reaches around 32700 it works well. But after that it gives an error".\Objects\IIOT Raw.axf: Error: L6406E: No space in execution regions with .ANY selector matching server.o(.data).". Before reach the error the memory limits are Program Size: Code=35844 RO-data=31472 RW-data=300 ZI-data=32348.
But in a datasheet they given the data memory is 64K. How to use the full of that ram memory?</br></br>

Thanks & Regards,
Prasanth.

Parents
  • I go through the .map file and the details are
    Load Region LR_IROM1 (Base: 0x00000000, Size: 0x00010828, Max: 0x00080000, ABSOLUTE, COMPRESSED[0x00010754])</br>


    Execution Region ER_IROM1 (Exec base: 0x00000000, Load base: 0x00000000, Size: 0x000106fc, Max: 0x00080000, ABSOLUTE)</br>


    Execution Region RW_IRAM1 (Exec base: 0x10000000, Load base: 0x000106fc, Size: 0x00007fb8, Max: 0x00008000, ABSOLUTE, COMPRESSED[0x00000058])</br>

    
    Image component sizes
    
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Object Name
    
      I deleted the code in this area due to memory limit in a forum.
        ----------------------------------------------------------------------
         10416        758      30412        252      32124     239113   Object Totals
             0          0         32          0          0          0   (incl. Generated)
             0          0          4          6          0          0   (incl. Padding)
    
        ----------------------------------------------------------------------
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Library Member Name
    
    
      I deleted the code in this area due to memory limit in a forum.
        ----------------------------------------------------------------------
         25436       2230       1060         48        272      15100   Library Totals
            36          0          8          5          0          0   (incl. Padding)
    
        ----------------------------------------------------------------------
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Library Name
    
         17968       1930        775         39        272      11196   TCP_CM3.lib
          2868        200        144          0          0        912   m_ws.l
          3228        100        133          4          0       1996   mc_w.l
          1336          0          0          0          0        996   mf_w.l
    
        ----------------------------------------------------------------------
         25436       2230       1060         48        272      15100   Library Totals
    
        ----------------------------------------------------------------------
    
    ==============================================================================
    
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug
    
         35852       2988      31472        300      32396     242745   Grand Totals
         35852       2988      31472         88      32396     242745   ELF Image Totals (compressed)
         35852       2988      31472         88          0          0   ROM Totals
    
    ==============================================================================
    
        Total RO  Size (Code + RO Data)                67324 (  65.75kB)
        Total RW  Size (RW Data + ZI Data)             32696 (  31.93kB)
        Total ROM Size (Code + RO Data + RW Data)      67412 (  65.83kB)
    
    ==============================================================================
    


    So my total allocated rom is 0x80000 and used is 65.83k and allocated ram is 0x8000 and used is 31.93k. May i change IRAM value to 0xFA00(64k) instead of 0x8000(32.7k)?</br>

Reply
  • I go through the .map file and the details are
    Load Region LR_IROM1 (Base: 0x00000000, Size: 0x00010828, Max: 0x00080000, ABSOLUTE, COMPRESSED[0x00010754])</br>


    Execution Region ER_IROM1 (Exec base: 0x00000000, Load base: 0x00000000, Size: 0x000106fc, Max: 0x00080000, ABSOLUTE)</br>


    Execution Region RW_IRAM1 (Exec base: 0x10000000, Load base: 0x000106fc, Size: 0x00007fb8, Max: 0x00008000, ABSOLUTE, COMPRESSED[0x00000058])</br>

    
    Image component sizes
    
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Object Name
    
      I deleted the code in this area due to memory limit in a forum.
        ----------------------------------------------------------------------
         10416        758      30412        252      32124     239113   Object Totals
             0          0         32          0          0          0   (incl. Generated)
             0          0          4          6          0          0   (incl. Padding)
    
        ----------------------------------------------------------------------
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Library Member Name
    
    
      I deleted the code in this area due to memory limit in a forum.
        ----------------------------------------------------------------------
         25436       2230       1060         48        272      15100   Library Totals
            36          0          8          5          0          0   (incl. Padding)
    
        ----------------------------------------------------------------------
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   Library Name
    
         17968       1930        775         39        272      11196   TCP_CM3.lib
          2868        200        144          0          0        912   m_ws.l
          3228        100        133          4          0       1996   mc_w.l
          1336          0          0          0          0        996   mf_w.l
    
        ----------------------------------------------------------------------
         25436       2230       1060         48        272      15100   Library Totals
    
        ----------------------------------------------------------------------
    
    ==============================================================================
    
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug
    
         35852       2988      31472        300      32396     242745   Grand Totals
         35852       2988      31472         88      32396     242745   ELF Image Totals (compressed)
         35852       2988      31472         88          0          0   ROM Totals
    
    ==============================================================================
    
        Total RO  Size (Code + RO Data)                67324 (  65.75kB)
        Total RW  Size (RW Data + ZI Data)             32696 (  31.93kB)
        Total ROM Size (Code + RO Data + RW Data)      67412 (  65.83kB)
    
    ==============================================================================
    


    So my total allocated rom is 0x80000 and used is 65.83k and allocated ram is 0x8000 and used is 31.93k. May i change IRAM value to 0xFA00(64k) instead of 0x8000(32.7k)?</br>

Children