|
|
|
|
|
|
|
|
Re: Raspberry Pi 2 B FlipFlop Tutorial [message #1725103 is a reply to message #1724429] |
Mon, 29 February 2016 19:24 |
investigacioncp15103 uva Messages: 12 Registered: February 2016 |
Junior Member |
|
|
I have a similar problem when I try to compile the raspberry pi to use the GPIO
when I compile with default variables of the makefile everything it compile properly, but if I try to compile activating gpio generates errors :
processinterface.cpp: In member function âbool CProcessInterface::readPin()â:
processinterface.cpp:109:32: error: âi2c_smbus_read_byteâ was not declared in this scope
processinterface.cpp: In member function âbool CProcessInterface::writePin()â:
processinterface.cpp:129:38: error: âi2c_smbus_read_byteâ was not declared in this scope
processinterface.cpp:136:44: error: âi2c_smbus_write_byteâ was not declared in this scope
processinterface.cpp: In member function âbool CProcessInterface::readWord()â:
processinterface.cpp:153:62: error: âi2c_smbus_read_word_dataâ was not declared in this scope
processinterface.cpp:158:12: warning: conversion to âTForteWord {aka short unsigned int}â from âintâ may alter its value [-Wconversion]
processinterface.cpp: In member function âbool CProcessInterface::writeWord()â:
processinterface.cpp:171:73: error: âi2c_smbus_write_word_dataâ was not declared in this scope
src/CMakeFiles/forte.dir/build.make:1733: recipe for target 'src/CMakeFiles/forte.dir/modules/i2c_dev/processinterface.cpp.o' failed
make[2]: *** [src/CMakeFiles/forte.dir/modules/i2c_dev/processinterface.cpp.o] Error 1
CMakeFiles/Makefile2:125: recipe for target 'src/CMakeFiles/forte.dir/all' failed
make[1]: *** [src/CMakeFiles/forte.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
my makefile is configured as follows:
FORTE_ARCHITECTURE :Posix
FORTE_BOOTFILELINEBUFSIZE:300
FORTE_BUILDSUPPORT_DIRECTORY:/home/pi/forte_experimental/forte/buildsupport
FORTE_BUILD_TYPE:EXECUTABLE
FORTE_BootfileLocation
FORTE_COM_ETH:ON
FORTE_COM_EclipseSCADA_SFP:OFF
FORTE_COM_FBDK:ON
FORTE_COM_LOCAL:ON
FORTE_COM_MODBUS:OFF
FORTE_COM_MODBUS_LIB_DIR
FORTE_COM_MUXSER:OFF
FORTE_COM_OPC:OFF
FORTE_COM_OPC_BOOST_ROOT
FORTE_COM_OPC_LIB_ROOT
FORTE_COM_PAHOMQTT:OFF
FORTE_COM_PAHOMQTT_DIR
FORTE_COM_RAW:ON
FORTE_COM_SER:OFF
FORTE_CommunicationInterruptQueueSize:10
FORTE_ECLIPSE_SCADA_SFP_SERVER_LIB_DIR
FORTE_EXCLUDE_FBS
FORTE_EventChainEventListSize:256
FORTE_EventChainExternalEventListSize:10
FORTE_IPLayerRecvBufferSize:1500
FORTE_LINKED_STRINGDICT:ON
FORTE_LOGLEVEL: LOGDEBUG
FORTE_MGMCOMMANDPROTOCOL: DEV_MGR
FORTE_MGM_MAX_SUPPOERTED_NAME_HIERACHY:30
FORTE_MODIFY_SOURCES_ON_MISSING_GENERATED_INCLUDES:ON
FORTE_MODULE_CBC:OFF
FORTE_MODULE_CONVERT: ON
FORTE_MODULE_I2C-Dev: on
FORTE_MODULE_IEC61131:ON
FORTE_MODULE_LMS_EV3:OFF
FORTE_MODULE_MATH: ON
FORTE_MODULE_OSCAT:ON
FORTE_MODULE_POWERLINK: OFF
FORTE_MODULE_RECONFIGURATION: OFF
FORTE_MODULE_RT_Events: OFF
FORTE_MODULE_Raspberry-SPS: ON
FORTE_MODULE_SysFs: ON
FORTE_MODULE_Test: ON
FORTE_MODULE_UTILS: ON
FORTE_MODULE_WagoKbus: OFF
FORTE_POSIX_GENERATE_MAP_FILE: FALSE
FORTE_RTTI_AND_EXCEPTIONS: FALSE
FORTE_STRINGDICTFIXEDMEMORY: OFF
FORTE_STRINGDICTINITIALMAXNROFSTRINGS: 300
FORTE_STRINGDICTINITIALSTRINGBUFSIZE: 8000
FORTE_SUPPORT_ARRAYS: ON
FORTE_SUPPORT_BOOT_FILE: ON
FORTE_SUPPORT_CUSTOM_SERIALIZABLE_DATATYPES: ON
FORTE_SUPPORT_MONITORING: ON
FORTE_SUPPORT_QUERY_CMD: ON
FORTE_SYSTEM_TESTS: OFF
FORTE_TESTS: OFF
FORTE_TESTS_INC_DIRS
FORTE_TESTS_LINK_DIRS
FORTE_TRACE_EVENTS: ON
FORTE_TicksPerSecond: 1000
FORTE_TimeBaseUnitsPerSecond: 1000000000
FORTE_UNICODE_SUPPORT: ON
FORTE_USE_64BIT_DATATYPES: ON
FORTE_USE_LREAL_DATATYPE: ON
FORTE_USE_REAL_DATATYPE: ON
FORTE_USE_WSTRING_DATATYPE: ON
when I compile with default variables of the makefile everything the problem is:
<Response ID="28" Reason="UNSUPPORTED_TYPE"/>
What configuration is that you have used ?
Best
pablo
[Updated on: Mon, 29 February 2016 19:27] Report message to a moderator
|
|
|
|
|
|
|
Re: Raspberry Pi 2 B FlipFlop Tutorial [message #1725217 is a reply to message #1725175] |
Tue, 01 March 2016 19:09 |
|
Hi,
it looks like you have monitoring not enabled for your system. You can do this either by right clicking on the system in the system explorer or clicking on the arrow beside the magnifiyng glass in the toolbar. In the upcoming 1.8. M2 release there will also be a dedicated menu for monitoring.
You can see if your system has monitoring enabled with a green circle in the upper left corner of the system icon.
Cheers,
Alois
P.S.: sometimes you get the same N/A result although you have monitoring enabled. This is a known issue which we could currently not track down. The workaround is to disable and enable again the monitoring.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Raspberry Pi 2 B FlipFlop Tutorial [message #1778421 is a reply to message #1770211] |
Thu, 14 December 2017 06:45 |
Muhammad Tanveer Messages: 5 Registered: November 2017 |
Junior Member |
|
|
Hello members!
I follow this link: "https://www.eclipse.org/4diac/documentation/html/installation/raspi.html"
While building forte for Rasberrypi3 model B I following step mentioned in Building FORTE on the RPI-> Preparing then 2)Building .
While building forte on rasberrypi, after running "make", two warning appears
1) Warning: the program should also define "void operator delete[](void*, std::size_t)"
2) Waring: conversion to 'TfroteFloat {aka float}' from 'CIEC_DWORD::TValueType {aka unsigned int}' may alter value. At "if ( CIEC_DWORD::scm_nMaxVal < pa_roVal) {
However, forte exe has been genrated after these two warning multiple time in b"in/posix/src directory".
Now I using 4DIAC IDE 1.8.4, on win7 after installation of jdk 1.8.
I write blink test program in 4DIAC, it do everything fine, and output is exactly like mentioned in attachments of first post of Awais Tanveer: message #1770065.
Please note that i didnot complete cross compilation steps. I just run forte exe on rasberrypi, then using 4DIAC, download blink test program on rasberrypi.local:61499.
Please guide! urgent response please.
|
|
|
|
Re: Raspberry Pi 2 B FlipFlop Tutorial [message #1778442 is a reply to message #1778423] |
Thu, 14 December 2017 09:56 |
|
Hi,
you can ignore the two warnings. The first one was already fixed in the development version and the second should not affect you.
Could you also show what the output values of your QX FB are. Are you running forte as root or does the user running forte has read/write access to the folders and files in the sysfs directory?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07910 seconds