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 » QX block - "FB Not Initialized" (Error with blocks using SysFs (IO - GPIO))
QX block - "FB Not Initialized" [message #1805818] Wed, 24 April 2019 16:09 Go to next message
Felipe Molina is currently offline Felipe MolinaFriend
Messages: 1
Registered: April 2019
Junior Member
Hello everybody,

We are using a custom board based on the SAMA53D. We have compiled FORTE and now are trying to run the simple blinking example (adding the QX block)(pic 1), this board has a linux system with SysFs on it.

The issue that we are facing, is that the QX fails to initialize (pic 2). The example was run on the raspberry pi, so we know the blocks are correct.

We have checked the GPIO folder (/sys/class/gpio) and the pin seems to be initialized (pioA19 is the equivalent to OUTPUT 19, which is the parameter defined on the QX block)(pic3). Neither the FORTE console (pic 4) or the deployment console indicates an error. IX blocks also shows the same behavior, as others GPIO pins on the board. This was tested on Ubuntu 18.10, Debian 9 and with a custom YOCTO build.

The block was also tested without the E_SR.EQ > QX.REQ connection (as was suggested on another post), but it didn't seem to have an effect on the connection.

Any input on how to debug this or where we could check for errors would be kindly appreciated,

  • Attachment: pic1.png
    (Size: 102.65KB, Downloaded 17 times)
  • Attachment: pic2.png
    (Size: 107.25KB, Downloaded 14 times)
  • Attachment: pic3.png
    (Size: 10.21KB, Downloaded 19 times)
  • Attachment: pic4.png
    (Size: 25.09KB, Downloaded 28 times)
Re: QX block - "FB Not Initialized" [message #1806340 is a reply to message #1805818] Tue, 07 May 2019 22:08 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 866
Registered: January 2014
Senior Member
I would say that the problem is that the sysfs IO implementation assumes that the gpio is accessible as "/sys/class/gpio/gpio" + std::string(PARAMS().getValue()) + "/value". That means that the value you give to your QX FB has in your case to be set to chip128 in order to access the gpiochip128 pin that you have shown in your list. However to pioA19 is somehow special. With the current implementation this would not be possible. So you may need to develop your own process interface. Or find out why it is different and not a gpio. Could it be that there is an error in your gpio config?
Re: QX block - "FB Not Initialized" [message #1806356 is a reply to message #1806340] Wed, 08 May 2019 06:07 Go to previous message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 136
Registered: February 2016
Senior Member
Did you compile forte with the sysFs module? Are you using the last version of the develop branch? Did you enable ERROR level in logging?

The SysFs module has now a complete logging of error. No error can pass unseen. The fact that you're not getting any error log is the main clue I'd say.

What does STATUS say when you initialize the FB, before triggering the REQ?
Previous Topic:About FreeRTOS
Next Topic:OPC-UA Read and Write OPC-UA variables Example on [Separate Machines]
Goto Forum:
  


Current Time: Wed Aug 21 18:09:11 GMT 2019

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

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

Back to the top