2024-09-19 08:21 AM - edited 2024-09-19 11:39 PM
Solved! Go to Solution.
2024-09-26 08:40 AM
Hello @MRaff.1 ,
in the example that I sent and that I'm using the data is defined in the fsdata.c
which I'm excluding from the build as you can see in the screenshot. make sure to use the same file in you project and follow the same process and update me with the status afterwords.
Regards
2024-09-27 02:43 AM - edited 2024-09-27 02:59 AM
Thank you STea,
I am trying to change your project settings to make it run on my board.
I replaced F439 files changing :
- STM32F407VETX_FLASH.ld
- startup startup_stm32f407vetx
- SystemClockConfig()
- MX_GPIO_Init();
but it does not work. It hangs at the first instruction on the StartDefaultTask which is a HAL_GPIO_WritePin(). I suspect the systick is not cofigured properly but I don't find the point where I have to set it.
I don't know if continue to try this approach or try to port the http server part on my code.
I see you used CMSIS_V2 while my project is configured with CMSIS_V1. Do you think this could make the diference?
I was able to make a page work in my previous test project.
But I am not sure I have fixed the problem. The key change was to reduce the _Min_Heap_Size and _Min_Stack_Size in the ld file. They were very high (0x4000 and 0x1000 respectively).
This is a test project with only the webserver enabled. Now I try to port it on the main code.
2024-09-27 08:46 AM
Hello STea,
even if now I have an example working, when I port the webserver on the full-firmware I get always the same error and the webserver hangs on the netconn_write() function.
It seems a memory issue. Looking at the pointers they don't seems to use much of the ram_heap region with size MEM_SIZE. On the other hand the heap is allocated as in the example (40*1024) and I don't have more space available.
Some suggestion?
2024-09-30 01:05 AM
Hello STea,
taking freeRTos settings from your example make the webserver work.
In particulare the #define configUSE_COUNTING_SEMAPHORES 1
Here the settings I have added to FreeRTOSConfig.h
#define configUSE_COUNTING_SEMAPHORES 1
#define configTIMER_TASK_PRIORITY ( 2 )
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH 600
Thank you!
2024-10-02 04:03 AM