Handling lwIP Thread Recovery: Alternatives to Watchdog Reset on LPC54608J512 with lwIP 2.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Handling lwIP Thread Recovery: Alternatives to Watchdog Reset on LPC54608J512 with lwIP 2.0.0

648 Views
dshettig
Contributor II

I am using the LPC54608J512 microcontroller with MCUExpresso IDE version 11.7.1 and SDK version 2.13.0. My application is based on lwIP version 2.0.0.

In my application, there's a code snippet with the following comment:

'Alas, lwIP is not designed to be restarted at runtime. Thus, the only way to revive the thread is by performing a watchdog reset.'

This approach triggers a watchdog reset whenever the lwIP thread encounters an unrecoverable issue. I would like to know:

  1. Is there a way to soft-restart the lwIP thread only, without affecting the rest of the system?
  2. Does a newer version of lwIP handle such situations more gracefully, or provide better mechanisms for thread recovery?
Labels (1)
0 Kudos
Reply
1 Reply

626 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @dshettig,

1. This is not possible. This is why the Watchdog is required as the previous comment mentioned.

2. No, this is the appropriate method to restart lwIP as this middleware is not designed to be restarted at runtime.

BR,
Edwin.

0 Kudos
Reply