OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.24k stars 653 forks source link

Is there an API or any method that can erase the entire eeprom? #762

Closed yanzhang920817 closed 7 months ago

yanzhang920817 commented 7 months ago

I encountered a problem where I wrote a slave firmware (approximately 400k) as XML to eeprom and used the eepromtool to update the XML (approximately 2k). On the surface, it was successful, but the restart was still incorrect. I had to use a burning cable to burn, but this was too annoying. Is there any way to solve this problem? For example, is there an API that can erase the entire eeprom?

ArthurKetels commented 7 months ago

Just use a 2K binary file filled with 0xFF, and transfer that to the eeprom with the eepromtool.

yanzhang920817 commented 7 months ago

Just use a 2K binary file filled with 0xFF, and transfer that to the eeprom with the eepromtool.

thanks.