Archie
Topic Author
Posts: 8
Joined: 25 Jul 2019, 15:50

RevPi Compact EERAM

26 Nov 2020, 14:52

Has anyone tested the ability to use the EERAM in Codesys on the RevPi Compact? In the past I had to abandon the Connect+ because the lack of non-volatile memory when using Codesys. The only option was to attach a UPS to the system which made it too complex. I'm hoping the Compact resolves this issue to give us a powerful CodeSys based PLC with Non-volatile memory.
 
User avatar
dirk
KUNBUS
Posts: 1421
Joined: 15 Dec 2016, 13:19

Re: RevPi Compact EERAM

26 Nov 2020, 15:31

Hello Archie, the Memory is also volatile in the Compact Module, so do you think that this EERAM feature from Codesys is able provide non-volatile memory here?
 
User avatar
lukas
Expert
Posts: 177
Joined: 13 Feb 2017, 10:29

Re: RevPi Compact EERAM

26 Nov 2020, 16:11

I've documented the EERAM's usage internally but apparently that part of the documentation hasn't found its way to the Compact Tutorials page yet:

Briefly, the EERAM is exposed as a generic file called /sys/bus/nvmem/devices/1-00500/nvmem. You just need to open/read/write/close this file. Anything written will survive a reboot or sudden power outage.

Whether and how this file can be accessed in Codesys I don't know.
 
User avatar
lukas
Expert
Posts: 177
Joined: 13 Feb 2017, 10:29

Re: RevPi Compact EERAM

27 Nov 2020, 10:44

Forgot to mention, support for the EERAM was added after the Stretch 6/2020 image was released. My former colleagues at Kunbus haven't pushed a new release of the raspberrypi-kernel package to the apt-repository since then. Until they do that, you need to build your own kernel with kernelbakery. Sorry for the inconvenience.

My recollection is that no driver changes were necessary to bring up the EERAM. Only the devicetree overlay had to be amended. So it may be sufficient to just swap /boot/overlay/revpi-compact.dtbo with an updated version. For some reason the devicetree overlay on the official revpi-4.19 branch does not contain the requisite changes. Not sure what went wrong there, perhaps someone destroyed them. I still have the changes locally in my git repo and pushed them to a new revpi-4.19-compact branch.
 
Archie
Topic Author
Posts: 8
Joined: 25 Jul 2019, 15:50

Re: RevPi Compact EERAM

27 Nov 2020, 21:52

Thank you for the responses. I am taking this to CodeSys to see if the software can be configured to make use of the EERAM through the file path.

Who is online

Users browsing this forum: No registered users and 4 guests