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 » 4Diac forte for Freertos + LwIP(Not able to follow tutorial)
4Diac forte for Freertos + LwIP [message #1850842] Fri, 18 March 2022 10:56 Go to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
Hello,

I was successful to compile forte for PC runtime and later when I was trying to compiling 4diac FORTE for freeRTOS and LwIP with help of tutorial given on link:
https://www.eclipse.org/4diac/en_help.php?helppage=html/installation/freeRTOSLwIP.html

But I am not able to get Cmake options for FORTE.

I wtrying to compile it for STM32 microcontroller and using STM32CubeIDE
Re: 4Diac forte for Freertos + LwIP [message #1850853 is a reply to message #1850842] Fri, 18 March 2022 15:09 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

have you used a dedicated toolchain file?
Re: 4Diac forte for Freertos + LwIP [message #1851163 is a reply to message #1850853] Tue, 29 March 2022 11:18 Go to previous messageGo to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
Yes I have used dedicated Toolchain file.
STM32IDE gnu tool chain path I have provided for gcc and g++.

But When i give minGW toolchain i get freertos options but as its not ARM I cant compile it.
Re: 4Diac forte for Freertos + LwIP [message #1851258 is a reply to message #1851163] Thu, 31 March 2022 21:32 Go to previous messageGo to next message
Jonathan Lainer is currently offline Jonathan LainerFriend
Messages: 5
Registered: November 2021
Junior Member
Hello Harshad,

as I understand it, you successfully compiled 4diac FORTE for Windows and
now tried compiling it with FreeRTOS+LwIP (and a toolchain file) which fails.
Can you post your toolchain file here?

Maybe we can work out a solution from there.

Re: 4Diac forte for Freertos + LwIP [message #1851281 is a reply to message #1851258] Fri, 01 April 2022 11:00 Go to previous messageGo to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
I might have mistaken term 'dedicated toolchain file' with 'dedicated toolchain'.
Dedicated toolchain is STM32IDE -> inbuild arm gcc, g++ compiler.

Steps I followed: (Windows 10 )
1) I have compiled project for STM32 microcontroller with FreeRTOS+LwIP (toolchain STM32CubeIDE) (gcc and g++ and make are in plugin folder of installation)
2) Downloaded forte source 2.0.1
3) created build/Freertos directory along with it.
4) Opened CMake GUI and provided settings as unix make file and specify options for cross compiling
5) in setup for cross compilation provided path for gcc and g++
for me (gcc: C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/arm-none-eabi-gcc.exe
and g++ C:/ST/STM32CubeIDE_1.9.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/arm-none-eabi-g++.exe)
6) on finish I am getting window which is attached in first message.

What is dedicated toolchain file means?


[Updated on: Fri, 01 April 2022 11:01]

Report message to a moderator

Re: 4Diac forte for Freertos + LwIP [message #1851313 is a reply to message #1851281] Fri, 01 April 2022 22:06 Go to previous messageGo to next message
Jonathan Lainer is currently offline Jonathan LainerFriend
Messages: 5
Registered: November 2021
Junior Member
The toolchain file configures CMake to work with the ARM toolchain.
It is a convenient way to configure CMake to use the ARM toolchain instead of the native one (MinGW).

In the FORTE source code, under
buildsupport/toolchains
, there exists a toolchain file for a STM32 board and a CubeMX Project. The file is called
toolchain-eliteboard.cmake
. You can easily adapt this file to your project by following the instructions in the file.

Please try to use this file and if any problems arise, just post them here!
Re: 4Diac forte for Freertos + LwIP [message #1851329 is a reply to message #1851313] Sun, 03 April 2022 08:15 Go to previous messageGo to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
There is only 1 file is there in toolchain folder : toolchain-m1.cmake

No files for STM32.

DO you mean I need to adapt this file for STM32?
Re: 4Diac forte for Freertos + LwIP [message #1851343 is a reply to message #1851329] Sun, 03 April 2022 13:59 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi,

I expect you are using the current latest relase from 4diac FORTE (version 2.0.1). The file Jonathan mentioned is currently in our development branch because Jonathan uploaded it as part of our work on 4diac FORTE 2.1.0. The file he means can however be found in our git repo [1]. Please give this one a try.

Cheers,
Alois

[1] https://git.eclipse.org/r/plugins/gitiles/4diac/org.eclipse.4diac.forte/+/refs/heads/develop/buildsupport/toolchains/toolchain-eliteboard.cmake

Re: 4Diac forte for Freertos + LwIP [message #1851372 is a reply to message #1851343] Mon, 04 April 2022 10:41 Go to previous messageGo to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
How to use dedicated toolchain file?
I dont find option in GUI.
I also tried to edit CmakeLists.txt and included toolchain.cmake file
No expcted output.
Re: 4Diac forte for Freertos + LwIP [message #1851378 is a reply to message #1851372] Mon, 04 April 2022 13:20 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

In the first step you have a radio button for selecting a toolchain file. Quick google search found this stack overflow page: https://stackoverflow.com/questions/29982505/setting-a-cross-compiler-file-using-the-cmake-gui
Re: 4Diac forte for Freertos + LwIP [message #1851381 is a reply to message #1851378] Mon, 04 April 2022 14:06 Go to previous messageGo to next message
Harshad Mahajan is currently offline Harshad MahajanFriend
Messages: 6
Registered: March 2022
Junior Member
Thank you :)

I was able to build static lib.

Re: 4Diac forte for Freertos + LwIP [message #1851385 is a reply to message #1851381] Mon, 04 April 2022 14:48 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Happy to help!
Previous Topic:Running forte on 64-bit Raspberry Pi 4 running Ubuntu 20.04.2 LTS
Next Topic:Porting to other RTOS
Goto Forum:
  


Current Time: Sat Apr 27 19:27:59 GMT 2024

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

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

Back to the top