Whats wrong with my .xml file?

More
25 Dec 2021 15:16 - 26 Dec 2021 13:16 #229961 by Andreas_Rackow
in pncconf the 5i25 shows up only as 5i25-Internal Data.No problem, there is a thread about this issue and I followed the instruction there. Then I copied all .xml files from the firmware folder provided from Mesanet and all was well.Really a lot of firmware to chose from. Next step was running mesaflash --device 5i25 --readhmid --xml and copying the output into a file and then load it to lib/firmware/hm2/5i25.Since then, pncconf gives me an error message like this when I try to pick a firmware;.raceback (most recent call last):  File "/usr/bin/pncconf", line 2027, in on_mesa_boardname_changed    self.fill_firmware(boardnum)  File "/usr/bin/pncconf", line 2045, in fill_firmware    if not d[self._p._BOARDTITLE] == title:continueTypeError: 'NoneType' object has no attribute '__getitem__'no idea what that means,but I think my .xml file is somewhat wrong can somebody help me?BTW.merry Christmas 
edit I changed the xml file
Attachments:
Last edit: 26 Dec 2021 13:16 by Andreas_Rackow.

Please Log in or Create an account to join the conversation.

More
04 Jan 2022 13:12 #230755 by andypugh
At a guess it might not be finding the file where it expects to find it:

github.com/LinuxCNC/linuxcnc/blob/2.8/sr...onf/pncconf.py#L2038

The error message hints that "d" is empty at that point.

What version of LinuxCNC are you using? the line referenced is not 2045 in either master or 2.8.

Please Log in or Create an account to join the conversation.

More
04 Jan 2022 20:26 #230796 by Andreas_Rackow
I am running 2.8.2

Please Log in or Create an account to join the conversation.

More
04 Jan 2022 23:06 #230804 by andypugh

I am running 2.8.2

OK, I fired up 2.8.2 and tried to use your xml file. 

The problem is that the xml contains a number of empty "secondaryfunctionname" tags, like
<secondaryfunctionname></secondaryfunctionname>

If you do a find and replace to 
<secondaryfunctionname>0</secondaryfunctionname>

Then it seems to work. 

Please Log in or Create an account to join the conversation.

More
05 Jan 2022 05:45 #230828 by Andreas_Rackow
Ok, that sounds like a hint.
I try that.

Please Log in or Create an account to join the conversation.

More
05 Jan 2022 20:13 #230892 by Andreas_Rackow
Problem solved. This thread did for me.
forum.linuxcnc.org/39-pncconf/39650-mesa...patible-with-pncconf

thank you

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.068 seconds
Powered by Kunena Forum