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

Is there really no one who knows this?

Hi,
I've asked this same question a couple of times before and haven't got a single answer. I'm surprised if nobody has ever done this. So, here it is again:

I have the 8k internal RAM of the EZ-USB FX chip to use. I debug with the monitor which takes up half the RAM. I want to have every byte that remains. There are gaps in the monitor memory usage, so how do I link to use them?
Thanks,
Harri

Parents
  • Is there a way to simulate eg. DON'T_USE(0x11c0-0x11df)?

    Since the monitor is separately linked (I assume) you can use the following trick:

    // Put this in your globals.c file 
    // and add to your project (g_ denotes a global var).
    const unsigned char g_dontUse[0x11DF -0x11C0] _at_ 0x11C0;
    The linker will think you have something here and will not attempt to allocate anything to this region.

    - Mark

Reply
  • Is there a way to simulate eg. DON'T_USE(0x11c0-0x11df)?

    Since the monitor is separately linked (I assume) you can use the following trick:

    // Put this in your globals.c file 
    // and add to your project (g_ denotes a global var).
    const unsigned char g_dontUse[0x11DF -0x11C0] _at_ 0x11C0;
    The linker will think you have something here and will not attempt to allocate anything to this region.

    - Mark

Children