hii thanks for your quick reply
i tried the first option it didn't work for me , so i created a new nios project from template , and deleted .c.h files , and added them again
i built the project and i see an error that altera_msgdma.h is not defined and indeed , when i look at the included files in the drivers folder of the bsp , i can see that the include file has a different names , for example altera_msgdma.h is named altera_avalon_msgdma.h ( i attached the picture ) ,
plus i see "altera_msgdma_prefetcher_regs.h" that is included in ins_tse_mac.h , and when i look at drivers folder of the bsp , i don't see any file that is related to it .even with a different name
how can i advance from here to clean the error and build the project .