Skip to content

poc eeprom generation tool#363

Draft
trns1997 wants to merge 1 commit intoleducp:masterfrom
trns1997:eeprom-tool
Draft

poc eeprom generation tool#363
trns1997 wants to merge 1 commit intoleducp:masterfrom
trns1997:eeprom-tool

Conversation

@trns1997
Copy link
Copy Markdown
Collaborator

Credits https://github.com/kubabuda/EEPROM_generator

Usage

Use gui to generate eeprom

python tools/eeprom_gui.py

Upload EEPROM

sudo ./build/tools/eeprom --slave 0 --command write --file slave.bin -i enp8s0

Run EasyCAT example

sudo ./build/examples/master/easycat/easycat_example -i enp8s0

Output

Opening nominal interface:   enp8s0
Opening redundant interface: None
Initializing Bus...
Init done
Detected slaves: 1
 - Slave 1001

 -*-*-*-*- slave 1001 -*-*-*-*-
Vendor ID:       0x00000000
Product code:    0x000ab123
Revision number: 0x00000002
Serial number:   0x00000001
mailbox in:  size 512 - offset 0x1000
mailbox out: size 512 - offset 0x1200
supported mailbox protocols: CoE, EoE
EEPROM: size: 2048 - version 0x01

SII size: 8192
FMMU[0] Outputs (Master to Slave)
FMMU[1] Inputs  (Slave to Master)
FMMU[2] SyncM Status (Read Mailbox)
FMMU[3] Unused
SM[0] config
     physical address: 0x1000
     length:           512
     type:             MailboxOut
     control:          26
SM[1] config
     physical address: 0x1200
     length:           512
     type:             MailboxIn
     control:          22
SM[2] config
     physical address: 0x1400
     length:           0
     type:             Output (Master to Slave)
     control:          24
SM[3] config
     physical address: 0x1a00
     length:           0
     type:             Input  (Slave to Master)
     control:          20
Switching to SAFE_OP...
Slave 1001 state is safe-op
Switching to OPERATIONAL...
After OPERATIONAL - Slave info:
 - Slave 1001 input: 12 output: 3
Running loop...
input_slave_0: 9d01b7ffcc07f9fea1fe1f02

You can see CoE and EoE have been enabled for this slave.

Note: This is still dirty POC

@trns1997 trns1997 marked this pull request as draft March 30, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant