Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » [esp32][how-to] forte build instruction. (How to for forte build on esp32/s2 platform. )
[esp32][how-to] forte build instruction. [message #1851819] Mon, 18 April 2022 16:56 Go to next message
Arkadiusz Gibes is currently offline Arkadiusz GibesFriend
Messages: 4
Registered: March 2022
Junior Member
Hi
As I promised, there is simple how to which shows how to get forte working on esp32. Probably there will be continuation on how to get lua dynamic type loader and OPC UA quite soon. I hope it will be useful to someone.

https://gitlab.com/amid123/4diac-forte-esp32-component

If there is something that isn't clear enought feel free to ask.

Thanks
Arek
Re: [esp32][how-to] forte build instruction. [message #1851970 is a reply to message #1851819] Sun, 24 April 2022 13:08 Go to previous messageGo to next message
Loren Card is currently offline Loren CardFriend
Messages: 4
Registered: April 2022
Junior Member
This is really cool. I look forward to trying this. Thanks for sharing your work.
Re: [esp32][how-to] forte build instruction. [message #1852595 is a reply to message #1851970] Thu, 26 May 2022 08:04 Go to previous messageGo to next message
Franz Höpfinger is currently offline Franz HöpfingerFriend
Messages: 3
Registered: May 2022
Junior Member
Hi:
Question:

Next option to set is the FORTE_TicksPerSecond option to 100 instead of 1000.

WHY ?

i would more like to have set the sdkconfig Option CONFIG_FREERTOS_HZ=1000
instead of 100 which is Standard for a new ESP32 Project ?

i posted you this as an issue as well. so not get lost.
Re: [esp32][how-to] forte build instruction. [message #1853727 is a reply to message #1851819] Fri, 15 July 2022 06:16 Go to previous messageGo to next message
zw t is currently offline zw tFriend
Messages: 3
Registered: July 2022
Junior Member
Hi,
Thanks for sharing your work! Sorry to bother you. I am a newcomer to 4diac forte. According to your tutorial operation, the following prerequisites have been set, but I have encountered some problems. In the following paragraph:

"For esp32 we have to select FreeRTOSLwIP from drop down list. Now when click configure, most errors should dissapear. There will be only few parameters marked with red. Now there is a time to fillup include dependencies for freertos. Parameter FORTE_FreeRTOSLwIP_INCLUDES has to be set. It takes string with semicolon separated paths to include folders in esp-idf. There is quite a lot of paths that have to be added as include paths. Below there is a working configuration, please note that all of those paths are absolue so you need to modify all of them. In most cases it should be enought to repleace all occurrences of /home/arek/Projekty/esp32-idf/esp-idf with your ESP-IDF root directory path. For example with /home/my_user/my_projects/my-idf_path."

I don't know which drop-down list to look for FreeRTOSLwIP. I would be appreciated if you have some suggestions.
Re: [esp32][how-to] forte build instruction. [message #1853967 is a reply to message #1851819] Tue, 26 July 2022 09:39 Go to previous messageGo to next message
zw t is currently offline zw tFriend
Messages: 3
Registered: July 2022
Junior Member
Sorry to bother you! (Forgive my poor English.)In the following step:
Once you have changed this file, save it, close and we can try first forte compilation for esp32 platform.
Go to ${FORTE_ROOT}/build/src and type make -j your make tool should start doing all the jobs and as a result, after some small amount of time, you should have builded forte static library like on the picture below:

I encounter a problem that says "/home/tzw/VScode_esp32s3/idf/esp-idf/components/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h:
No such file or directory
#include <sdkconfig.h>"

I have no idea what to do. I wonder how to add this file. Thank you.
Re: [esp32][how-to] forte build instruction. [message #1854083 is a reply to message #1853967] Mon, 01 August 2022 05:53 Go to previous messageGo to next message
Franz Höpfinger is currently offline Franz HöpfingerFriend
Messages: 3
Registered: May 2022
Junior Member
join us on Mattermost.

we meanwhile have switched to shell scripts instead of cmake Gui.
Re: [esp32][how-to] forte build instruction. [message #1854297 is a reply to message #1851819] Thu, 11 August 2022 13:44 Go to previous messageGo to next message
zw t is currently offline zw tFriend
Messages: 3
Registered: July 2022
Junior Member
Hi
Acording to the tutorial, I get forte.a. But when I load and build the 4diac example application project to test , I encouter some errors as shown in the picture.
Are there any solutions or ideas?( I have searched from the github but there are no solutions that can work for my situation.)
  • Attachment: 1.png
    (Size: 172.96KB, Downloaded 78 times)

[Updated on: Mon, 15 August 2022 06:41]

Report message to a moderator

Re: [esp32][how-to] forte build instruction. [message #1856513 is a reply to message #1854297] Tue, 13 December 2022 20:34 Go to previous messageGo to next message
Cihat Topal is currently offline Cihat TopalFriend
Messages: 8
Registered: March 2020
Junior Member
Hi,
After compile all with successfully and flashed the esp32s2 board.
The esp32 can connect wifi and got ip address. But I have error about freertos task.
I tried deploy blink example with 4diac ide deployment couldnt success.
Have you any idea?


I (659) Networking: Connected
I (709) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (2659) esp_netif_handlers: sta ip: 192.168.1.111, mask: 255.255.255.0, gw: 192.168.1.1
I (2659) MAIN: Connected callback
I (2659) Networking: got ip:192.168.1.111
I (3599) Networking: Executing forte...
ERROR: T#3170000000: Error: Could not create FreeRTOS Task thread!ERROR: T#3170000000: Error could not create the thread!
INFO: T#3170000000: FORTE is up and running
Re: [esp32][how-to] forte build instruction. [message #1856524 is a reply to message #1856513] Wed, 14 December 2022 07:14 Go to previous messageGo to next message
Franz Höpfinger is currently offline Franz HöpfingerFriend
Messages: 3
Registered: November 2022
Junior Member
Hi,

look at my Repos pls:
we do no more build Forte with the graphical CMAKE but with a Script.

also feel free to join us in Mattermost for further Discussion.
Re: [esp32][how-to] forte build instruction. [message #1856525 is a reply to message #1856513] Wed, 14 December 2022 07:17 Go to previous messageGo to next message
Franz Höpfinger is currently offline Franz HöpfingerFriend
Messages: 3
Registered: May 2022
Junior Member

Find these Repos there: https://gitlab.com/meisterschulen-am-ostbahnhof-munchen
Re: [esp32][how-to] forte build instruction. [message #1856526 is a reply to message #1856513] Wed, 14 December 2022 07:18 Go to previous messageGo to next message
Franz Höpfinger is currently offline Franz HöpfingerFriend
Messages: 3
Registered: November 2022
Junior Member
Cihat Topal wrote on Tue, 13 December 2022 20:34

I (3599) Networking: Executing forte...
ERROR: T#3170000000: Error: Could not create FreeRTOS Task thread!ERROR: T#3170000000: Error could not create the thread!
[/code]



This Problem only can be solved by evaluating the Return Code of the Task-Creation. most Likely you are out of Memory.
Re: [esp32][how-to] forte build instruction. [message #1856554 is a reply to message #1856526] Wed, 14 December 2022 22:56 Go to previous messageGo to next message
Cihat Topal is currently offline Cihat TopalFriend
Messages: 8
Registered: March 2020
Junior Member
Hi,
I tried your repo a month ago. I opened issue in there.
Pls see
Re: [esp32][how-to] forte build instruction. [message #1856633 is a reply to message #1856554] Tue, 20 December 2022 06:53 Go to previous messageGo to next message
Cihat Topal is currently offline Cihat TopalFriend
Messages: 8
Registered: March 2020
Junior Member
Hi,
I want to share my works experiences about forte compile for esp32.

First off all I compile forte as a static library and when I use this library in my example esp32-s2 project there is some error accured about freertos timer functions.
If I add xTaskCreate function into forte_main.cpp (for create dummy timer), there is no error. Successfully build project for esp32-s2 and I can flash into esp32 -s2which builded program(bin, elf etc.).
But when I run this program runtime error accured. Like this:
ERROR: T#3170000000: Error: Could not create FreeRTOS Task thread!ERROR: T#3170000000: Error could not create the thread!

I tried this repo "meisterschulen-am-ostbahnhof-munchen"
I compiled everything for esp32. When I flash esp32 program I saw a warning like this " this program for rev3(esp32) your board rev1"
I couldnt flash that.
After that I compiled this repo for esp32-s2 no error no issues.
I flashed into esp32-s2 program runs ther is no problem for here.
I opened 4diac ide I created example blink project and deployed successfully. But when deployed blink project error occured:
ERROR: T#3170000000: Error: Could not create FreeRTOS Task thread!ERROR: T#3170000000: Error could not create the thread!

I understood in "meisterschulen-am-ostbahnhof-munchen" repos, there is only one differences from "amid123/4diac-forte-esp32-component"
the forte instance creates after deploy.

As a result I cant run forte on esp32 successfully.

Best Regards.
Re: [esp32][how-to] forte build instruction. [message #1861867 is a reply to message #1854083] Wed, 08 November 2023 23:49 Go to previous messageGo to next message
Filipe Gomes is currently offline Filipe GomesFriend
Messages: 1
Registered: November 2023
Junior Member
How do I get to join you on mattermost? could you help me pls, I`m newbie to this
Re: [esp32][how-to] forte build instruction. [message #1861874 is a reply to message #1861867] Thu, 09 November 2023 14:18 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

Hi Filippe, unfortunately Eclipse Mattermost was deactivated. But you can find us in the Eclipse 4diac Matrix Room: https://chat.eclipse.org/#/room/#eclipse-4diac:matrix.eclipse.org
Previous Topic:Does 4DIAC support Bluetooth Low Energy connection?
Next Topic:Build a freeRtos_Lwip to RT1060
Goto Forum:
  


Current Time: Wed Apr 24 18:51:32 GMT 2024

Powered by FUDForum. Page generated in 0.04097 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top