ECC algorithm and deploy [message #1798510] |
Mon, 19 November 2018 23:54  |
Eclipse User |
|
|
|
Hello,
Recently, facing two issues:
1. When ECC in the BFB in the project is modified, before deploying the modified project, is there any necessity to modify the RTE accordingly?
e.g.
I have project A. Within project A, there is BFB A, and within BFB A, there is ECC A. I deploy this project A into RTE A.
However, if I modify this ECC A to become a new ECC called ECC B, therefore I have BFB B and project B, do I need to have RTE B accordingly to be able to successfully deploy or I can still use RTE A.
2. In 4DIAC IDE, how to create a SPI FB? Should I use IX/QX FBs or others? How to set up PARAMS for it? I used IW/QW to activate the I2C function, but for SPI, no idea how to do it...
Please help!
|
|
|
Re: ECC algorithm and deploy [message #1798577 is a reply to message #1798510] |
Tue, 20 November 2018 10:36   |
Eclipse User |
|
|
|
Hi,
ad 1: First Question: Yes, you have to re-export the BFB if you use pre-compiled FBs. If you activate the LUA support you can load additional types at runtime.
Second Question: This scenario is a problem, as FORTE does not have any notion of FB versions, it identifies FBs only via its name. So if you have two versions of a BFB, you also need two versions of FORTE, which would not be aware of the fact, that they support an FB with the same name, but a different implementation.
Ad 2: Do you mean, that you need help to implement an SPI process interface, as I didn't see one in the FORTE sources?
Best regards,
Martin
|
|
|
|
|
|
Re: ECC algorithm and deploy [message #1798649 is a reply to message #1798631] |
Wed, 21 November 2018 22:34   |
Eclipse User |
|
|
|
Thank you, Dr. Zoitl!
For dynamic type loading, would you mind sharing with us where we could find the reference exercises for raspberry Pi if there is any?
As seen from the attached pic of Pjt_2, this is how we realized I2C.
But no any clues about how to set FBs, IX, QX, and so on, to get SPI work...
Please kindly advise...
Thank you in advance!
Attachment: Pjt_2.jpg
(Size: 176.33KB, Downloaded 145 times)
Attachment: SPI.JPG
(Size: 15.33KB, Downloaded 155 times)
[Updated on: Wed, 21 November 2018 22:40] by Moderator
|
|
|
|
|
|
|
Re: ECC algorithm and deploy [message #1799930 is a reply to message #1798510] |
Mon, 17 December 2018 10:27  |
Eclipse User |
|
|
|
Hi,
based on your logs, I was able to trace the issue back to several incompatible changes in the Lua API from version 5.1 to 5.2 and above. This is now causing the compilation problems you are encountering.
I have already submitted a fix that has been merged for the next release 1.10.1, which should be out soon. The fix has been tested with both Lua 5.3 and LuaJIT 2.0.5-1 (5.1 API).
In the meantime, using either Lua 5.1 or LuaJIT (with the Lua 5.1 API) should avoid the issue and serve as a workaround.
Best regards,
Martin
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=542851
|
|
|
Powered by
FUDForum. Page generated in 0.06350 seconds