2022-08-05 04:13 AM
Hello!
Recently I had problems with ping to my STM32 + LwIP + DP83848 + RMII. But the latest FW version 1.27.1, it works very well! But now I have problems with HTTP. Follow me and I show you how to create this bug.
First of all I'm using:
To reproduce this bug, do the following steps.
OK! It Working great!
#include "HTTP_Server/httpserver.h"
/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/
/* USER CODE END Header_StartDefaultTask */
void StartDefaultTask(void *argument)
{
/* init code for LWIP */
MX_LWIP_Init();
/* USER CODE BEGIN 5 */
http_server_init();
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END 5 */
}
Question:
Why does this happen?
I have followed this tutorial 100% (except that he are using another processor) https://www.youtube.com/watch?v=haO8_eLIDeI&ab_channel=ControllersTech
This must be a bug, becase in FW 1.27.0 version, I had problems with ping my processor. In FW 1.27.1, the ping works like a charm. But now FW 1.27.1 resulting that my HTTPD won't work.
Thank you.
2022-12-25 09:39 AM
Hi @Daniel Mårtensson ,
>>> Where is the const data type?
In httpserver.c file (lines 32, 35, 42) remove the keyword "const" .
>>> When will ST implement this bug fix in next STCubeMXIDE?
It will be implemented in the next maintenance release for F4 planned on 23W24.
Regards
Mahdy
2022-12-25 12:49 PM
Is 23W24 weeks or a date? Like 23:e week 24? I did not understand "23W24".
Thank you so much.
2022-12-25 08:22 PM
Week 24 in 2023. June.
2023-01-01 12:18 PM
Sorry. I have no httpserver.c file in my project. I have enabled the HTTPD in CubeMX.
2023-01-01 01:11 PM
Hi. Sorry. Did not understand what you mean, but now I understand. I found the httpserver.c file. I removed the const data type, but it was the same issue as before. The ping stops working after I connect with my webbrowser to my ST processor.
2023-01-02 06:48 AM
Hi,
In order to reproduce your case with the same environment,
Could you please mention which CubeMX version you are using ?
Regards
Mahdy
2023-01-02 06:49 AM
I'm using STM32CubeIDE 1.10.1.
2023-01-02 06:58 AM
I'm asking about STM32CubeMX version (not STM32CubeIDE)
As mentioned below :
Go to STM32CubeMX --> help --> About
2023-01-02 07:01 AM
I don't have STM32CubeMX. Only STM32CubeIDE.
2023-01-03 06:56 AM
Hi,
On the generated file "fsdata_custom.c" :
Http data are placed on flash and the Ethernet MAC does not have access to it.
So please replace it on RAM by removing the keyword "const" from lines :
28, 30, 103, 105, 168, 170, 308, 316 and 324.
Regards
Mahdy