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

XMC4700 (PSRAM size is 96 kb)- can not allocate more than 16 kb of stack?

RT os and loader are loaded to PSRAM as well, what to do? Is it possible to load RTOS to normal RAM (even better ROM) in order to allocate more than 16 KB of stack?

Parents
  • I have assumed that i need to modify linker_script.ld (iam using Dave ) and probably startup_XMC4700.S. But what should I modify  to avoid PSRAM usage? My memory:

    stack_size = DEFINED(stack_size) ? stack_size : 0x4000;
    no_init_size = 64;
    MEMORY
    {
    FLASH_1_cached(RX) : ORIGIN = 0x08000000, LENGTH = 0x200000
    FLASH_1_uncached(RX) : ORIGIN = 0x0C000000, LENGTH = 0x200000
    PSRAM_1(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x18000
    DSRAM_1_system(!RX) : ORIGIN = 0x20000000, LENGTH = 0x20000
    DSRAM_2_comm(!RX) : ORIGIN = 0x20020000, LENGTH = 0x20000
    SRAM_combined(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x58000
    }

    BTW: what does it means: no_init_size = 64;?

    Thanks!

    madmat

Reply
  • I have assumed that i need to modify linker_script.ld (iam using Dave ) and probably startup_XMC4700.S. But what should I modify  to avoid PSRAM usage? My memory:

    stack_size = DEFINED(stack_size) ? stack_size : 0x4000;
    no_init_size = 64;
    MEMORY
    {
    FLASH_1_cached(RX) : ORIGIN = 0x08000000, LENGTH = 0x200000
    FLASH_1_uncached(RX) : ORIGIN = 0x0C000000, LENGTH = 0x200000
    PSRAM_1(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x18000
    DSRAM_1_system(!RX) : ORIGIN = 0x20000000, LENGTH = 0x20000
    DSRAM_2_comm(!RX) : ORIGIN = 0x20020000, LENGTH = 0x20000
    SRAM_combined(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x58000
    }

    BTW: what does it means: no_init_size = 64;?

    Thanks!

    madmat

Children