adamShiau
New Contributor
11 months agoHow to Properly Include a Custom Library in Quartus Prime Nios II Project?
Hi, I'm using Quartus Prime 18.1 to develop an FPGA project with Nios II. I have written a UART library (uart.c and uart.h) that I want to include in my main code main.c. Currently, the way I add ...
- 11 months ago
Hi
After adding the .c and .h into the project the make file should be update.
Could you check if the .h and .c is added into the make file of you project?
If not you would need to add them in manually.
You could check the line below in the make file:
# List of include directories for -I compiler option (-I added when used).
# Includes the BSP.
ALT_INCLUDE_DIRS := <File path here>
# List of library directories for -L linker option (-L added when used).
# Includes the BSP.
ALT_LIBRARY_DIRS := <File path here>
Regards
Jingyang, Teh