Closed kowalski100 closed 2 years ago
Hey @kowalski100
This is working for me if I provide an output folder in the same directory as the script (it can't output into the directory its in):
polarfire-soc-configuration-generator-master>python3 mpfs_configuration_generator.py test.xml ./output
With the following output
fpga_config
python interpreter details: sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
python interpreter running is version 3
Hardware configuration header files created in directory: /c/Users/M31864.MCHP-MAIN/Downloads/polarfire-soc-configuration-generator-master (1)/polarfire-soc-configuration-generator-master/output/fpga_config
Nope. I am on windows and even providing an output folder doesn't work for me. I tried in different folder with no spaces in path. Still no luck. :(
Hmm ok this is odd - to be honest I'm not sure and the script appears to be running correctly on my Windows machine.
Would it be possible to add your updated XML to the softconsole project and see if it works when the script is called as part of the build process? In the project properties -> C/C++ Build -> Settings -> Build Steps the Python script is called to generate the header files (this uses the SoftConsole bundled Python):
Replacing the XML in the /src/boards/icicle-kit-es folder and building should then generate the header files for the bare metal project based on the updated XML you provided and then move on to build the project
Does the XML script needs to be added to HSS project or application project? As HSS does the necessary Multiplexing during boot time not the Application?
If the application is being run as a HSS payload then the HSS needs the updated XML, if the application is being run through debug you should put the kit into boot mode 0 and add your XML to the application.
@kowalski100, Were you able to get the script working with the SoftConsole?
For the issue you saw with the command line, there are couple of points:
We are planning to release improved version of the script with documentation this month. Hope that will help.
I am using python-3 and mpfs_configuration_generator.py to generate header/c files. Following are my steps.
No error pops up and no files are generated as shown in figure below. [I tried to change directory but nothing happens].