koheron-sdk icon indicating copy to clipboard operation
koheron-sdk copied to clipboard

adc-bram example for ALPHA250-4

Open elhaouati opened this issue 2 years ago • 24 comments

Hi

I'm working on the adc-bram example, after sending my bitstream file to /dev/xdevcfg, I can't execute the python test file even after correcting the ip adress. adc-bram

I did installed the requirements libraries such as koheron , pyyaml , jinja2

Thanks in advance.

elhaouati avatar Jul 25 '23 07:07 elhaouati

Hi,

To start an instrument please use the make run command. See the documentation.

tvanderbruggen avatar Jul 25 '23 07:07 tvanderbruggen

I used $ make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run command to generate the project.

Is this what do you mean by make run or I am missing something

elhaouati avatar Jul 25 '23 08:07 elhaouati

Can you show me the instruments available by going to the 192.168.1.100 address on a web browser ?

tvanderbruggen avatar Jul 25 '23 10:07 tvanderbruggen

this what I've got cap

and after few seconds of the sending of my bitstream i can no longer reach this page

elhaouati avatar Jul 25 '23 10:07 elhaouati

Can you tell me on which version of Ubuntu you are building the instrument ?

tvanderbruggen avatar Jul 25 '23 10:07 tvanderbruggen

I am using ubunto 20.04.1

elhaouati avatar Jul 25 '23 11:07 elhaouati

That version should be fine. Can you connect in ssh to the board and give the following logs:

  • journalctl -u koheron-server -n 200
  • journalctl -u uwsgi -n 200

tvanderbruggen avatar Jul 25 '23 12:07 tvanderbruggen

12 uwsgi

elhaouati avatar Jul 25 '23 12:07 elhaouati

I don't understand why you use the command cat /tmp/system_wrapper.bit > /dev/xdevcfg ? Loading of the bitstream is done when starting the instrument.

Can you send the bottom of uwsgi log after you callled make run for the adc-bram instrument ?

tvanderbruggen avatar Jul 25 '23 12:07 tvanderbruggen

I use the command scp system_wrapper.bit [email protected]:/tmp to send the bitstream file to the board and then cat /tmp/system_wrapper.bit > /dev/xdevcfg to load it to xdevcfg

I am not sure that I understand what do you mean with make run when and where should i use it

  1. I used make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run command to generate the project.
  2. I generated the bitsream file using vivado
  3. and then I sent it to the board and load it to xdevcfg

elhaouati avatar Jul 25 '23 12:07 elhaouati

Running make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run does the following:

  • Generate project & bitstreams + build instrument server + package everything together
  • Send the package to the HOST
  • Start instrument: Load bitstream + server

So make run is all you have to do. Now in your case, for some reason when you call it the adc-ram instrument is not loaded on the board... Can you show me result of the call make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run ?

tvanderbruggen avatar Jul 25 '23 13:07 tvanderbruggen

make

elhaouati avatar Jul 25 '23 13:07 elhaouati

Can call make clean all and then make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run again and show what you have

tvanderbruggen avatar Jul 25 '23 13:07 tvanderbruggen

I did a make clean all command and it seemed that it has a problem clean all

So i deleted the folder /adc-bram located in /tmp folder manually then I did a make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run that was the result err Note: I don't have internet access here cause I am using the ethernet port to connect the board

elhaouati avatar Jul 25 '23 14:07 elhaouati

That's why it crashes. What you can do is set internet access to your computer and then call make CONFIG=examples/alpha250-4/adc-bram/config.yml (no run) that will only build the instrument and fetch what is required from the net.

Once this is done you can reconnect the ethernet to the board and call make CONFIG=examples/alpha250-4/adc-bram/config.yml HOST=192.168.1.100 run, it will used what has already been downloaded.

tvanderbruggen avatar Jul 25 '23 14:07 tvanderbruggen

I did the make CONFIG=examples/alpha250-4/adc-bram/config.yml command and now it crashes at this step: err1

elhaouati avatar Jul 25 '23 14:07 elhaouati

You need to install the Typescript copiler tsc.

Running make setup_web should do it.

tvanderbruggen avatar Jul 25 '23 14:07 tvanderbruggen

After installing tsc I've got this problem errrr2

elhaouati avatar Jul 25 '23 15:07 elhaouati

Can you try

curl -sL https://deb.nodesource.com/setup_14.x and then make setup_web ?

tvanderbruggen avatar Jul 25 '23 15:07 tvanderbruggen

still the same SyntaxError message, is it a problem with the version of tsc

elhaouati avatar Jul 25 '23 15:07 elhaouati

I've got this error on CI and solve it upgrading node to 14.x. (https://github.com/Koheron/koheron-sdk/commit/1aced26963278226c81ae422373237a857c6ea0f)

I think I've made a mistake, the command you should run is curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -; sudo make setup_web

tvanderbruggen avatar Jul 25 '23 16:07 tvanderbruggen

I did some researches in some forums and I found that I can just change the syntax ?? with || and it worked then I did a make run command then I executed the python files after installing the required libraries such as Tkinter and PIL and it worked in the end for test.py

elhaouati avatar Jul 25 '23 16:07 elhaouati

Good if it works !

tvanderbruggen avatar Jul 25 '23 16:07 tvanderbruggen

Thank you so much for your time and efforts

elhaouati avatar Jul 25 '23 16:07 elhaouati