In general there is a shared memory between the kernelspace (PCP) and userspace (host) through which the data exchange happens.
For your first question:
The data sent from host is stored in a shared memory and it triggers an interrupt by which the PCP is notified.
For your second question:
The openMAC receives the data from the openPOWERLINK network and triggers an interrupt to notify the PCP about the received frame.
Kindly refer to the edrv-openmac.c file present in the stack to understand how it works.
Regards,
Powerlink-Team-Kalycito
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to implement a design where the kernel part of stack runs in de2-115 using cn-single-hostif-drv design and an external MCU with ARM processor instead of Nios II (gpio) running user side of stack and connected to the kernel via hostinterface.
I would like to know what should I reconfigure to be able to configure this external MCU and where may I find the configuration of the hostinterface pins the nios II gpio ( I checked the docs of hosinterface and could not find it) ?
Best regards,
Hassen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have not tried porting the user side of stack to external MCU with ARM processor instead of Nios II. This looks like a high level business requirement, for premium support write to us at enterprise.services@kalycito.com.
Regards,
Powerlink-Team-Kalycito
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to understand through hostinterface code and docs how it is connecting the kernel stack and user stack.
How the cn_single_gpio_hostint send data ( guess pdo/sdo value) to pcp cn_single_drv_hostint ?
As I read, cn gpio uses the parallel ip ( when needed) to communicate with the hostinterface, I would like to know :
1- Where the data sent from gpio is registered and how gpio informs pcp of new data ?
2- How the pcp passes information received from master ?
Best regards,
Hassen
Hi Hassen,
In general there is a shared memory between the kernelspace (PCP) and userspace (host) through which the data exchange happens.
For your first question:
The data sent from host is stored in a shared memory and it triggers an interrupt by which the PCP is notified.
For your second question:
The openMAC receives the data from the openPOWERLINK network and triggers an interrupt to notify the PCP about the received frame.
Kindly refer to the edrv-openmac.c file present in the stack to understand how it works.
Regards,
Powerlink-Team-Kalycito
Hi Powerlink-Team-Kalycito,
Thank you for your answer.
I am trying to implement a design where the kernel part of stack runs in de2-115 using cn-single-hostif-drv design and an external MCU with ARM processor instead of Nios II (gpio) running user side of stack and connected to the kernel via hostinterface.
I would like to know what should I reconfigure to be able to configure this external MCU and where may I find the configuration of the hostinterface pins the nios II gpio ( I checked the docs of hosinterface and could not find it) ?
Best regards,
Hassen
Hi Hassen,
To find the configuration of the hostinterface pins, kindly refer to this link (under the section PCP with an external parallel interface ):
http://openpowerlink.sourceforge.net/doc/2.7/2.7.0/page_platform_altera-cn.html
We have not tried porting the user side of stack to external MCU with ARM processor instead of Nios II. This looks like a high level business requirement, for premium support write to us at enterprise.services@kalycito.com.
Regards,
Powerlink-Team-Kalycito