Closed sudoDavi closed 2 years ago
Hi @sudoDavi !
I have the same problem and i need to add new TPDO to my project. When i do a new TPDO in windows I have the same error but when i do it in Linux EDSeditor closes. How can i do it?
Thanks!
I think I have a fix for this. Sorry I just figured this was the latest fork of Robin Cornelius' repo. I can create a pull request if preferred.
diff --git a/libEDSsharp/PDOHelper.cs b/libEDSsharp/PDOHelper.cs
index ea993ba..c66ed87 100644
--- a/libEDSsharp/PDOHelper.cs
+++ b/libEDSsharp/PDOHelper.cs
@@ -408,7 +408,7 @@ namespace libEDSsharp
public void addPDOslot(UInt16 configindex)
{
//quick range check, it must be a config index for an RXPDO or a TXPDO
- if( (configindex<0x1400) || (configindex >= 0x1a00) || ((configindex>=1600) && (configindex<0x1800)))
+ if( (configindex<0x1400) || (configindex >= 0x1a00) || ((configindex>=0x1600) && (configindex<0x1800)))
return;
foreach(PDOSlot slot in pdoslots)
@@ -422,7 +422,10 @@ namespace libEDSsharp
PDOSlot newslot = new PDOSlot();
newslot.ConfigurationIndex = configindex;
- newslot.COB = 0x180; //Fixme need a better default???
+
+ newslot.COB = 0x180; // Fixme need better defaults???
+ newslot.configloc = "RAM";
+ newslot.mappingloc = "RAM";
pdoslots.Add(newslot);
Should be fixed with 4851453
Whenever I press the Add new PDO in the TX PDO Mapping tab I get an Unhandled exception! This error occurs with any file, be it a new EMPTY project or when editing one of the example ones (demoDevice from CANopenNode or the DS301_profile).
I'm using the latest Windows build
Here is the details from the exception: