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.

Uip stack in tiva C Series doesnot give SYN ACK to SYNC request ... sometimes

Hi,

TIVA C Series TM4C129NCPDT ...

when sometimes client give tcp SYN request , it doesnot responds with SYNC ACK .. resulting in hanging of application.

This issue has come up , when my image has been appended with crc header and flash location is also non zero.

can this effect this behaviour ?

  • Hello Sanchit,

    If TM4C is not responding with an ACK, it could be because the uIP stack is not being executed. In fact, the hanging of the application could be the reason why the ACK is not being sent. I would recommend first debugging why the application is hanging.

    Thanks,
    Sai

  • Hello Sai,

    But then why the same application is executing ok , when ran from 0x000 address with no flash bootloader ?
    This problem only comes , when the application ran from address 0x4000 with the flash bootloader .

    Should we also give some kind of run address also ? I donot why the flash address changing is effecting the image execution .
    Please provide suggestions .

    Thanks,
    Sanchit Mehra
  • Hello Sanchit,

    The issue does not seem to be related to the uIP applciation at all. This is mainly a bootloader issue.

    Please use the TivaWare examples for flash bootloader - "boot_serial" is the serial bootloader and "boot_demo1" and "boot_demo2" are the applications that are built to run with the "boot_serial" bootloader.

    Make sure the above mentioned examples are working, and only then introduce this uIP application.

    Thanks,
    Sai
  • Hi Sai,

    well .. I compiled with out any optimisation.
    The uip stack working alright now.

    when there were some optimisations, it was behaving weird. now it is ok.
    Thanks,
    Sanchit Mehra
  • Hello Sanchit,

    Based on what you reported, it does not look like uIP stack issue, but a bootloader related issue. Is the application working now when programming using a bootloader?

    Be very careful when something works when optimization is turned off. Most likely the application starts working because the code (that is binary code) has moved around and might appear when you start making changes to the code again.

    Thanks,
    Sai
  • Hello Sai,

    I flashed bootloader , and 1st and 2nd application using LM Flash programmer ( JTAG interface) first .
    Here the bootloader didnot flash the application.
    But Things should work when flashed via LM Flash Programmer.

    yes, you are right, this is not a uip issue , but something related to the location ! as there are other things also that went weird !
    some functionalities work ok, but some behaves weird which is not the same way as it was coded.

    I am not clear what you said that code has moved around ? This is the compiler matter and compiler should take care about that.I can only play with some flags and optimisation parameters of the compiler.

    Can we reach to some conclusion as to what could be the possible problem ? Only then can we decide about a solution ! As I wish to have a system that runs consistently and not break away after sometimes.

    Best Regards,
    Sanchit Mehra
  • Hello Sai,

    One more observation , I have is that
    Bootloader is compiled with tivaware TivaWare_C_Series-2.1.2.111 and application with tivaware 2.0 .

    can this be a cause of issue ? and I have to check my tiva silicon version also ....
    as this can also cause some issue.

    Best Regards,
    sanchit mehra