i'm using the GRAMPC library and i want port my MPC project on Vitis (Xilinx Software). Is there the possibility to use the library on a development environment without running the make command in the terminal? Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank you for your interest in GRAMPC. First of all, let me say that I have no experience with Xilinx Vitis platform. From a short internet search I found https://www.xilinx.com/html_docs/xilinx2020_1/vitis_doc/oyw1565072992738.html and https://www.xilinx.com/html_docs/xilinx2020_1/vitis_doc/creatinglibrar_project.html#ipa1565072992673 which describe how to build a library for Vitis. Since GRAMPC consists of pure C-code without external dependencies except the standard libraries, it should be possible to compile it on Vitis. Of course, you don't have to use the makefiles. Add all .c-files in grampc/src to the project and make sure that the header files in grampc/include can be found by the compiler. If you want to use GRAMPC without dynamic memory allocation, then follow the steps in the GRAMPC manual and add the compiler flag -DFIXEDSIZE.
Regards,
Andreas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i'm using the GRAMPC library and i want port my MPC project on Vitis (Xilinx Software). Is there the possibility to use the library on a development environment without running the make command in the terminal? Thanks
Dear Matteo,
thank you for your interest in GRAMPC. First of all, let me say that I have no experience with Xilinx Vitis platform. From a short internet search I found https://www.xilinx.com/html_docs/xilinx2020_1/vitis_doc/oyw1565072992738.html and https://www.xilinx.com/html_docs/xilinx2020_1/vitis_doc/creatinglibrar_project.html#ipa1565072992673 which describe how to build a library for Vitis. Since GRAMPC consists of pure C-code without external dependencies except the standard libraries, it should be possible to compile it on Vitis. Of course, you don't have to use the makefiles. Add all .c-files in grampc/src to the project and make sure that the header files in grampc/include can be found by the compiler. If you want to use GRAMPC without dynamic memory allocation, then follow the steps in the GRAMPC manual and add the compiler flag -DFIXEDSIZE.
Regards,
Andreas