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.

CCS/TM4C1294NCPDT: Problem enabling DHCP together with BOOTP

Part Number: TM4C1294NCPDT


Tool/software: Code Composer Studio

Hi,


My project is capable of switching between static IP and dynamic IP perfectly.

lwIPNetworkConfigChange(0, 0, 0, IPADDR_USE_DHCP);

Then I implemented in my code a routine for firmware update through the ethernet port.

while(1)
{

//...


    if(g_bFirmwareUpdate == 0x72)
    {
        ROM_GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_1, GPIO_PIN_1);
        SoftwareUpdateBegin(g_ui32SysClock);
    }

}

However, after that, I noticed that every time I try to change from static to dynamic IP, my code goes into FaultISR.

I am not getting a solution to this problem, but I believe it may have something related to port 68 used by DHCP and BOOTP.

Has anyone ever experienced this?

Thanks!!!



  • Hi Simion,

      I'm not sure why it is going to the FaultISR. I don't really see an issue in your code calling the SoftwareUpdateBegin(). Did you have a chance to run the TivaWare boot_emac_flash (the bootloader) and the boot_demo_emac_flash (the application)? Can you compare your code to this example? The example uses DHCP, no static address though. Normally, the code can get into FaultISR if they are accessing a peripheral that is not yet enabled or if they overflow the stack. Try to increase the stack size and see if that makes a difference. Please reference the below app note for diagnosing software faults. 

    http://www.ti.com/lit/an/spma043/spma043.pdf

  • Hi Simion,

      I have not heard back from you. I assume you problem is resolved. I will close this thread for now. If you have new questions you can open a new thread. If your problem is not resolved, you can reply back to this thread to provide your update.