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

T89C51AC2 Atmel problems - RAMSIZE(256);

Got myself one of the development boards. Anyway, when I have a small program, everything is fine and works. Now when I write any function remotely decent sized, I get an IO Error that the file cannot be found - assuming this is because RAMSIZE is set to 256.

Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you. Is there no way possible to use the rest of the RAM/ROM available for program and variable storage, (that isn't a long workaround)?

Parents
  • Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you.

    The 8051 is a Harvard architecture.

    It may have a maximum of 64K of CODE space, 64K of XDATA space, 128 bytes of DATA, 256 bytes of IDATA, 256 bytes of PDATA, 128 BITs, 128 bytes of SFR space, and 128 BIT SFRs.

    The RAMSIZE parameter specifies the amount of DATA/IDATA (note that the first 128 bytes of IDATA is DATA). You may not execute code from this memory.

    The thing you are probably looking for is the size of the CODE space.

    Now when I write any function remotely decent sized, I get an IO Error that the file cannot be found...

    Which file? The .C file, the .OBJ file, the work file, or perhaps another?

    Jon

Reply
  • Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you.

    The 8051 is a Harvard architecture.

    It may have a maximum of 64K of CODE space, 64K of XDATA space, 128 bytes of DATA, 256 bytes of IDATA, 256 bytes of PDATA, 128 BITs, 128 bytes of SFR space, and 128 BIT SFRs.

    The RAMSIZE parameter specifies the amount of DATA/IDATA (note that the first 128 bytes of IDATA is DATA). You may not execute code from this memory.

    The thing you are probably looking for is the size of the CODE space.

    Now when I write any function remotely decent sized, I get an IO Error that the file cannot be found...

    Which file? The .C file, the .OBJ file, the work file, or perhaps another?

    Jon

Children