Thanks for the replies.
I managed to get it to work by rebuilding a number of times until it worked. Here is my next question, I am using the SBT to do all this. First i create my project and test it without any C2H etc in the SBT. Then i use the shell (legacy shell as the latest has some installation issues with perl and aways give a
Strict.pm error @INC) and re-create the makefile. Then rebuild and all is well. Then add the --C2H extension, and create my
C2H.mk using the shell with --enable_quartus=1 --accelerator=MyFunc,MyCFile.c,1,0. Do a build and all looks good but then if i try to re-generate the BSP its now corrupt. I can look in the SOPC builder and it doesnt seem to have added the C2H component. I can resolve this and then re-generate and re-compile. Then the BSP is OK and i can build and it will sometimes work.
Am i doing something stupid here? Is there something i am missing? As you can see i have got to a working point but can't see why its so inconsistent and why the BSP gets corrupted.
Cheers
Tim