FPGA Script Build of MKRVIDOR4000_peripherals - anyone else getting this?

Hello All,

Kicked off the build_all.sh script - at the end I get this:

create ram + flash app.ttf
Jan 20, 2019 10:17:17 PM - (INFO) elf2flash: args = --input=build/software/MKRVI
DOR4000_peripherals/MKRVIDOR4000_peripherals_lite.elf --output=build/output_file
s/MKRVIDOR4000_peripherals_lite.flash --base=0x008E0000 --end=0x008FFFFF --verbo
se --save
Jan 20, 2019 10:17:17 PM - (FINE) elf2flash: Starting
Jan 20, 2019 10:17:17 PM - (FINE) elf2flash: Done
projects
ip
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
cp: omitting directory './ip/QUAD_ENCODER/arduino/VidorEncoder/examples'
cp: cannot stat './distrib/MKRVIDOR4000_graphics/src/VidorNeopixelRainbowStrips.
ino/*': Not a directory

Thanks In Advance,
John

I try to recreate this.
Did you build "vidor_graphics" before building preipheral?

I think you should try to rename or move distrip folder.

Tried to build peripheral version and it was ok.

Edit:
Change following line from assemble_library.sh
folders*=find . | grep $folderName | grep ip | head -n1*
to
_ folders*=find . | grep $folderName | grep /ip/ | head -n1*_
It was grepping only ip word not ip folder. Added "/" characters so it will list only from IP folder.
Edit2:
You can just rerun assemble_library.sh from project folder.

I tried your suggestion(s) - but am getting the same result.

I get a similar result with vidor_graphics as well.

It seems that there was also same bug for getting default libraries "assemble_library.sh" Line 69.
defaultlibs*=find . | grep $folderName | grep /ip/ | head -n1*
Can you run "assemble_library.sh" in project folder where are build_all.sh was failing and copypaste result.

$ assemble_library.sh
projects
ip
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
cp: omitting directory './ip/QUAD_ENCODER/arduino/VidorEncoder/examples'
cp: omitting directory './ip/NEOPIXEL/arduino/VidorNeopixel/examples'

Thats should be ok response.

They should add echo to end of script if it got there and not failing.

OK - but why is the script still running and looking for things it can't find - it makes it appear to be an error and there's no indication that all is well - maybe that's what you mean about the 'echo' - would be nice to know if all is built ok.

When this is built under quartus there are some messages about some tcl scripts not being found or having some type of warning or error - but appears quartus largely ignores that.

In ./output_files I see that app.ttf gets built - but does that mean the script was 100% successful?

Thanks.

After success build_all.sh or assemble_library.sh you should find release folder under distrip folder like
D:\Arduino\VidorBitstream-release\distrib\MKRVIDOR4000_peripherals

That contains examples and src folders and library.properties. I think this is folder that you import / copy to arduino library folder.

src folder should have atleast app.tff and signature.h. Other files are used libraries for using FPGA.
In examples folder you find examples of IP block from FPGA.

D:\Arduino\VidorBitstream-release\distrib\MKRVIDOR4000_peripherals

I can't find anything with a -release that's made from these scripts - can you tell me where you see that?
If you're seeing it as in your post - I'm not seeing anything like that at all.

There should be distrip folder in same level as ip, projects, and TOOLS

Edit:
I have vidor repository in VidorBitstream-release folder.

You mean this?

find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory
find: './distrib/MKRVIDOR4000_peripherals/examples/': No such file or directory

no. distrib folder contains MKRVIDOR4000_peripherals folder that you import/copy to arduino library. that should contain all needed files.

Edit:
distrib folder is in repository root folder or where you extracted zip file.