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

GUI_CM3_L.lib and Network

I am trying to use network into an application where I use without troubles GUI libraries but it seems they reserve same memory addresses or anyway it happens some kind of memory conflict: when calling GUI_Glear() I fall into HardFault_Handler. Tried to reserve for them different memory buffers modifying .sct file, specially regarding onChip SRAM zone but found no way to get out from this hanging. Some help? Thanks.

Parents
  • I have gone deeper in the problem and it seems due to IAP mechanism.
    I have some local variables that are allocated always in external memory even though I write in scatter file different instructions.

    For instance, taken from protected EMAC_LPC17xx.c file:

    static int32_t Initialize (ARM_ETH_MAC_SignalEvent_t cb_event) { uint32_t pb[2]; bool dev_175x;
    #if defined (LPC177x_8x) uint32_t cfg_val;
    #endif

    if (emac.flags & EMAC_FLAG_INIT) { return ARM_DRIVER_OK; }

    /* Read device ID with IAP */ pb[0] = 54; iap_entry (&pb[0], &pb[0]);

    After last instruction I fall in a memory/hardware fault becuase, I think, pb is in external memory. I tried to write many different solution in scatter file, for instance this one:

    RW_IRAM2 0x20001000 0x00005000 { ; RW data EMAC_LPC17xx.o (+ZI +RW) EMAC_LPC17xx.o (STACK) }

Reply
  • I have gone deeper in the problem and it seems due to IAP mechanism.
    I have some local variables that are allocated always in external memory even though I write in scatter file different instructions.

    For instance, taken from protected EMAC_LPC17xx.c file:

    static int32_t Initialize (ARM_ETH_MAC_SignalEvent_t cb_event) { uint32_t pb[2]; bool dev_175x;
    #if defined (LPC177x_8x) uint32_t cfg_val;
    #endif

    if (emac.flags & EMAC_FLAG_INIT) { return ARM_DRIVER_OK; }

    /* Read device ID with IAP */ pb[0] = 54; iap_entry (&pb[0], &pb[0]);

    After last instruction I fall in a memory/hardware fault becuase, I think, pb is in external memory. I tried to write many different solution in scatter file, for instance this one:

    RW_IRAM2 0x20001000 0x00005000 { ; RW data EMAC_LPC17xx.o (+ZI +RW) EMAC_LPC17xx.o (STACK) }

Children