leducp / KickCAT

A C++ open source EtherCAT master stack
Other
58 stars 12 forks source link

Fix slave mailbox #153

Closed nicolas71640 closed 6 months ago

nicolas71640 commented 6 months ago

Check SyncManager before read the mailbox: The slave application didn't to read the SyncManager register to check if there is something in the mailbox. I have added this part.

Response mailbox SyncManager inversion: The mailbox in and out was inverted. I have also fix the network simulator to respect this inversion.

Response mailbox send function: The response mailbox send function didn't completely "respect" the inversion. I've applied the correct direction to the whole function.

Debug string direction inversion: In few debug prints there was also an inversion of direction (Master to slave/Slave To master). Fixed it.

Minor nuttx script fixed: The nuttx repo has tagged the nuttx-export-12.5.0-RC0 to nuttx-export-12.5.0. I have modifed the export_nuttx_archive.sh script to match with this change