|
|
Re: 4DIAC Forte Run In STM32 [message #1848301 is a reply to message #1848004] |
Sat, 27 November 2021 08:12 |
chen peng Messages: 25 Registered: November 2021 |
Junior Member |
|
|
Now,I start LwIp, I use breakPoint, and see it runs into vApplicationMallocFailedHook, seems Malloc memory is not enough,and I set FreeRtos stack size to 1024 bit and heap size to 150kb, and memory issue doesn't appears.
The network is OK, I can ping my pc to STM32, and I can see the code enter forteJoinInstance function
But when I connect 4diac IDE and forte engine, and deploy my blinkTest, it shows unable to create RES, and the network goes down
Does anyone encounter this kind of problem, or do you have any suggestions for troubleshooting?
Thanks
[Updated on: Mon, 29 November 2021 03:48] Report message to a moderator
|
|
|
|
|
Re: 4DIAC Forte Run In STM32 [message #1848370 is a reply to message #1848364] |
Tue, 30 November 2021 02:41 |
chen peng Messages: 25 Registered: November 2021 |
Junior Member |
|
|
The last issue is caused because I used different configurations when generating the static library and STM32 code. The static library was generated two weeks ago and the code was generated this week. Later, I pulled the code again and compiled it completely, and the problem disappeared
The engine works great and performance is stable,I tried 5000 nodes and 1ms cycles,It exceeded our expectations
The main difficulty I encountered was in the process of compiling eclipse into STM32:
1. Now the mainstream STM32 source code is developed using keil uvision5, however I haven't found any way to compile forte by using keil, I'm using cubemx to generate makefile and raw code, transplant the basic programs such as the network port in the keil demo program to the new code, also note the differences between compilers, It took me about two weeks.
2. If heap and stack issue happen, We need to expand the memory allocated to FreeRTOS, we can expand heap memory in FreeRtosConfig.h by configTOTAL_HEAP_SIZE, when creating forte tasks, the stack memory should also be expanded
The whole compilation process must thank the enthusiastic help of the people in this forum, Next, we plan to expand our own business on forte. Is there a tutorial on the Forte source code, such as code flow chart, to introduce how to run the code completely?If yes please share, this will help us to understand the code logic as soon as possible and reduce future modification bugs
|
|
|
Powered by
FUDForum. Page generated in 0.03842 seconds