Why do I get "Error in loading board file" when adding a board from file in FPGA Board Manager?

I'm trying to add an FPGA Board using the following steps:
  1. Open FPGA Board Manager by running ">> fpgaBoardManager" in the Command Window.
  2. Click "Add Board from File..."
  3. Select the file "board.xml" provided by the FPGA board manufacturer
I then get the error: 
Error in loading board file "<filepath>\board.xml": Found invalid node name "#comment", expecting node name "FPGABoard".
How do I resolve this error?

 Accepted Answer

This error is occurring because the .xml file provided by the manufacturer is not the same as the .xml file used by MATLAB's FPGA Board Manager.
To generate the .xml file used by MATLAB's FPGA Board Manager, please click "Create Custom Board..." and follow the instructions in the "New FPGA Board Wizard". At the end of this process, a .xml board definition file used by MATLAB's FPGA Board Manager will be generated. You can save this file to your desired location.
Please see the Create Custom FPGA Board Definition and New FPGA Board Wizard documentation pages for more details. Also see the Create AMD KC705 Evaluation Board Definition File documentation page for a full example of creating a new Board Definition File.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!