cancel
Showing results for 
Search instead for 
Did you mean: 

freemodbus poll question

Pohan
Associate

hello every one

We are developing a device with LwIP2.1.2 and FreeRTOS.

We used Comm Operator to test freemodbus and run an endurance tests with a polling modbus every 0.1 second.

but if we use both of them in same time(refresh the web and read data via modbus poll) it makes hard fault or Loop stuck(“tcp_input()�?�?�? tcp_send_fin()�?�?�? tcp_fasttmr()�?�?�? tcp_output()�?�?�? tcp_enqueue_flags()�?�?�? tcp_pcbs_sane()�?)!

Search for related problem data, but it will appear after the countermeasures.

https://savannah.nongnu.org/bugs/?59831

My English is not very well,If there's anything you haven't understood, please say so.

thanks for helping me

1 REPLY 1
Piranha
Chief II

Did you read the topic you referred? Especially this post:

on 18 Jan 2021 08:51:00 PM UTC, comment #5:

Re comment #3:

Right. I would have closed this bug right away after reading the original post (sorry I keep finding no time for lwIP lately :-/). There's no way another task can run between those lines and modify lwIP variables. If it does, threading requirements are violated and the OP should read our docs.

Simon Goldschmidt <goldsimon>

And, if you are using ST's broken bloatware...

https://community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32