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

Can I restart RL-TCPnet

Hi all,

LPC4078, uVision 4.74.0.22, TCPnet/Net_Config.c v4.72

I have a bug in my release code that is very occasional and disappears when I change anything so I can't debug it or add debug prints or whatever.

I have a small bootloader that optionally receives an application via Ethernet and programs it into higher ARM flash then runs it. One combination of bootloader and app show the problem - occasionally. I'm looking for something that can be set by the bootloader then persists when the app runs. Both the bootloader and the app call init_TcpNet.

1) Is it safe to call init_TcpNet a second time?

2) Is it safe to call init_TcpNet a second time from another program which may have different settings such as number of UDP sockets? There is of course no reset between them.

Thanks
Ant

Parents
  • Thorsten, many thanks for your reply. I understand your idea of the pre function but are you saying that I should call init_TcpNet() each time it detects a connection? I assumed that I could call that once after power up and whatever the user did with cables, the library would just keep working. Have I misunderstood what you meant?

Reply
  • Thorsten, many thanks for your reply. I understand your idea of the pre function but are you saying that I should call init_TcpNet() each time it detects a connection? I assumed that I could call that once after power up and whatever the user did with cables, the library would just keep working. Have I misunderstood what you meant?

Children