Skip to content

Problem with FreeRTOS when reconnecting the ethernet cable #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mattia424 opened this issue Sep 9, 2022 · 1 comment · Fixed by #66
Closed

Problem with FreeRTOS when reconnecting the ethernet cable #65

mattia424 opened this issue Sep 9, 2022 · 1 comment · Fixed by #66
Assignees

Comments

@mattia424
Copy link

I uploaded the example (7669880) on my STM32F429ZI board and the program works correctly but in some cases it gives me problems.
In the example program (examples / WebClientFreeRTOS / WebClientFreeRTOS.ino) I have commented out line 78 so that when I get the response from google on the serial monitor I am printing "disconnecting." in loop.
Specifically, if I always leave the network cable connected on the serial monitor I find myself in a "disconnecting" loop. while if I try to disconnect and reconnect the cable the program crashes. In short, when I connect the network cable to the card powered on the serial monitor I no longer find the word "disconnecting" in loop.
Sorry for the grammar but unfortunately English is not my language.

MCU: STM32F429ZI
STM32duino core: v2.2.0
STM32duinoFreeRTOS: v10.3.1
STM32Ethernet: 1.3.0
STM32duino LwIP: 2.1.2

@ABOSTM
Copy link
Contributor

ABOSTM commented Sep 13, 2022

Hi @mattia424,
Thanks for reporting this issue,
I reproduced it, and it appears that in case of FreeRTOS the relative priorities between Ethernet Timer and Systick are properly set.
2 fixes to solve this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants