I am trying to build the firmware for the grove vision ai through this link. At the docker run command in step 3 I get the following error:
BuildXMLHeader
Traceback (most recent call last):
File "image_gen_cstm_gnu.py", line 1470, in <module>
File "image_gen_cstm_gnu.py", line 1417, in main
File "image_gen_cstm_gnu.py", line 1310, in BuildXMLHeader
FileNotFoundError: [Errno 2] No such file or directory: 'output/layout.xml'
[19] Failed to execute script image_gen_cstm_gnu
make: *** [options/rules.mk:283: flash] Error 1
I get the same error when I try building with native tools. How can I fix this?
OK i dug deep and realized that i need to create an output folder under tools/image_gen_cstm. i decompiled the binary file of image_gen_cstm_gnu and saw the error is coming from a line myxmlfile = open(xmlfile, 'wb'). and the xmlfile when running make flash is ‘output/layout.xml’. Also when you run make flash, if you follow the rules in rules.mk, you can see it actually cd into the tools/image_gen_cstm and then run this binary executable. Then this output folder needs to be under tools/image_gen_cstm too.
I think someone from edge impulse team should fix this? there is also another similar issue after I fixed this one. Both can be fixed by creating the folder in advance