# FAQ 4DIAC-IDE

1. When I open a certain perspective a view element is missing, how can I get it back?
2. Download not possible! Defined profile () for RMT_XXX.xxx not supported
3. When I download my application I get an UNSUPPORTED TYPE error message in the Deployment Console
4. When I download my application I get a STATUS ACCESS VIOLATION error messages in the Deployment Console
5. When I download my application I get an Create FB Instance failed error
6. When I want to download my application I get an connection refused message
7. How do I use ARRAYs?
8. What does CLEAN Device do?
9. What does KILL Device do?

# FAQ Forte

1. Windows/Cygwin: The setup script runs to completion but when building the target I get strange compile errors
2. CMake/Cygwin: Can not find C and C++ compilers
3. CMake/Cygwin: Can not find RC Compilers
4. FORTE is C++ why are you than using the C-style include files for the standard c library instead of the C++ style include files?
5. Within my FORTE console I get UDP-Socket Send failed: Network is unreachable
6. Within my FORTE console I get connection closed by peer

# 4DIAC answers

1. ## When I open a certain perspective a view element is missing, how can I get it back?

   There are two possibilities you can do:

   - Reset Perspective: When right-clicking on the perspective's name in the perspective switcher you get a context menu with the option reset. By selecting this item the perspective is rest to the initial configuration showing all views again and on their original place.
   - Show View Menu: The menu item Window → Show View → Other brings up an selection dialog that allows you to open any view. By searching through the items you can reopen an accidentally closed view. This option is especially of interest when you have a custom perspective layout you don't like to loose be resting the perspective.

   Go to top

2. ## Download not possible! Defined profile () for RMT_XXX.xxx not supported

   - Go to the System Configuration
   - Select the Device which is named in the error message
   - Change the properties Dialog → Advanced → Misc → Profile
   - Set Profile to HOLOBLOC

   Go to top

3. ## When I download my application I get an UNSUPPORTED TYPE error message in the Deployment Console

   This message appears for multiple problems:

   - Make sure that you have the source code (*.cpp, *.h) of all Function Blocks within your Application. Also check if all source files are listed within a CMakeLists.txt file.
   - Make sure are using your compiled version of forte with the missing Function Block.
     - In IDE is Window → Preference → 4DIAC → FORTE Preferences is path to your forte.exe
     - Or start your forte.exe directly (development tool specific)

   Go to top

4. ## When I download my application I get a STATUS ACCESS VIOLATION error messages in the Deployment Console

   Check if you used Composite Function Blocks within your Application. Make sure that you have the source code (*.cpp, *.h) of all Function Blocks within the Composite's Network. Also check if all source files are listed within a CMakeLists.txt file.

   Go to top

5. ## When I download my application I get an Create FB Instance failed error

   Make sure that the interface of the function block you want to download is the same than those available on your FORTE executable. In case you download a Composite Function Block, please make sure that its Funnction Block Network matches the Function Block Network within your FORTE executable. When in doubt export your Function Block and compile FORTE before your download again.

   Go to top

6. ## When I want to download my application I get an connection refused message

   Examine the following topics:

   - Make sure that the port numbers used in the Runtime Launcher of the Deployment view are the same than those used for the MGR_ID of the Devices in the System Configuration.
   - Check if FORTE runs on a different port
   - Check in Task Manager (Windows) if an "old" crashed FORTE blocks the port
   - Check if Monitoring has been started before downloading (FORTE only supports a single connection at the management interface)

   Go to top

7. ## How do I use ARRAYs?

   When you create a new Function Block choose the desired type for your array elements in the Type drop down of the specific data and set the desired array size ArraySize. For initializing put the values in curly brackets e.g., {1,2,3}.

   Go to top

8. ## What does CLEAN Device do?

   CLEAN Device deletes all existing Resources and the FBs in the Resources. After CLEAN Device, you can deploy any other FB Network.

   Go to top

9. ## What does KILL Device do?

   KILL Devices terminates FORTE.

   Go to top

# Forte answers

1. ## Windows/Cygwin: The setup script runs to completion but when building the target I get strange compile errors

   - First check for any strange output of the setup script. Maybe your system misses something.
   - Do you have spaces in the directory names where you have put your FORTE? Some Cygwin versions have problems with these.

   Go to top

2. ## CMake/Cygwin: Can not find C and C++ compilers

   CMake Errors:
   your C compiler: CMAKE_C_COMPILER-NOTFOUND was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. your CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

   In this case you need to check the advanced check box and look for CMAKE_CXXX_COMPILER and CMAKE_C_COMPILER and set the path and executable for your C and C++ compiler. e.g., for Cygwin this could be c:\cygwin\bin\g++-3.exe for the C++ compiler and c:\cygwin\bin\gcc-3.exe for the C compiler.

   Go to top

3. ## CMake/Cygwin: Can not find RC Compilers

   CMake Error:
   your RC compiler: CMAKE_RC_COMPILER-NOTFOUND was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.

   Again you need to check the advanced chekc box and look for CMAKE_RC_COMPILER. For Cygwin or MinGW on Windows it needs a file called windres.exe (e.g., C:\cygwin\bin\windres.exe).

   Go to top

4. ## FORTE is C++ why are you than using the C-style include files for the standard c library instead of the C++ style include files?

   The main reason for this is that not all platforms provide the correct C++ include files. Especially with real-time OSs like eCos where you can freely configure the supported features. Using C++ style C include files on these platforms would pull lots of stuff from the compilers in and result in a bigger image or even worse it would not compile. So as of current experience C style include files are more reliable.

   Go to top

5. ## Within my FORTE console I get UDP-Socket Send failed: Network is unreachable

   Consider to explicitly setup multicast IP routing in the kernel with the route command. This has been an issue on on Raspberry Pi, where executing the following command resolved the problem:

   route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

   where the IPs are the desired multicast IP.

   Go to top

6. ## Within my FORTE console I get connection closed by peer

   The TCP port is opened by a server in the RMT_RES. This server handles the communication with the tool for download and monitoring. The message indicates the end of the download process when 4DIAC-IDE disconnects.

   Go to top

Or Go to the Start Here Page