This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Memory allocation .cmd on Tm4C with lwip stack

Hello !

I'm actually working with CCSv6 with windows 7 on the TM4C1294XL board.

I made few tests on it and it seems the file enet_fsdata.h can't be separate.

I made a web page with a link to a second page and when i put a gape on memory between the first and the second page, it's not working. When I comment the pragma it's working again. If I put a pragma on all my pages, it's working too. So the issue seems to be only when i have a "gap"

When I have the gap, I can always ping my board until I haevn't ask it a http page, after that it's bug. I can see that on wireshark : 

I didn't find any information about this enet_fsdata.h which cannot be separate. Someone else can confirm it ?

Thank you.

Regards,

John

  • Hi John,
    I can't say I am very familiar with that file either. I'll move your thread to the Tiva forums, where the experts there can help you best.

    Thanks
    ki
  • Hello John,

    Not very clear as to what you mean by a gap?

    Regards
    Amit
  • Hello,

    My internal memory has adresses from 0x0 to 0x100000 and my external memory has adresses from 0x60000000 to 0x61FFFFFF. So when my compiler makes a bin file, I have a bin file from 0x0 to 0x61FFFFFF (arround 1.5GB). The "gap" i'm talking is the useless memory between 0x100000 and 0x60000000 contained on the bin file.

    I tried to moove my enet_fsdata.h file on internal memory and it works. I tried to moove only 1 part on my internal memory and that's not working anymore, so have I to conclude the enet_fsdata.h file cannot be separate ?

    I'm asking that because my intention is to put the maximum elements of my enet_fsdata.h file on the internal flash and the rest of this file on external SDRAM but if this file cannot be separate, I should stop to work on this way.

    Best regards,
    John
  • Hello,

    I have some news on this work, as I said, when I put all the .const out of my program adresses but still in internal flash I have a project which is working well.
    But now I tried to put all the .const on the external SRAM. When i'm initializing the EPI, I have the same error like when I'm separating my .const but put it on internal flash. If I don't initialize the EPI stack I have the message "404: the requested file cannot be found" on my web_browser.
    I programmed my external SRAM with the example bootloaderSD. In all cases my program starts well (can see the IP affectation on terminal).

    My only problem here seems to be my understanding of the EPI stack. If someone already did some things like that i would be grateful to him to share some knowledge.

    I Join you the files used to do this. The rest of file is like the original example lwip project : web_server.rar

    Best regards,
    John

  • Hello everyone,

    If someone worked on it, please share something about my issue. I'm still stuck on it and don't find any more answer.

    Regards,

    John

  • Hello John,

    The issue will still be with the fact that EMAC cannot access the EPI. So any descriptor or data kept on external memory will not be usable from EMAC and would need re-allocation to internal memory

    Regards
    Amit
  • Hello Amit,

    I didn't understand it like that before. Thanks to repeat it to me it's clear now !

    Best regards,
    John