Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adc-bram example for ALPHA250-4 #577

Open
elhaouati opened this issue Jul 25, 2023 · 24 comments
Open

adc-bram example for ALPHA250-4 #577

elhaouati opened this issue Jul 25, 2023 · 24 comments

Comments

@elhaouati
Copy link

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.

@tvanderbruggen
Copy link
Member

Hi,

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

@elhaouati
Copy link
Author

elhaouati commented Jul 25, 2023

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

@tvanderbruggen
Copy link
Member

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

@elhaouati
Copy link
Author

this what I've got
cap

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

@tvanderbruggen
Copy link
Member

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

@elhaouati
Copy link
Author

I am using ubunto 20.04.1

@tvanderbruggen
Copy link
Member

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

@elhaouati
Copy link
Author

12
uwsgi

@tvanderbruggen
Copy link
Member

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 ?

@elhaouati
Copy link
Author

elhaouati commented Jul 25, 2023

I use the command scp system_wrapper.bit root@192.168.1.100:/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

@tvanderbruggen
Copy link
Member

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 ?

@elhaouati
Copy link
Author

make

@tvanderbruggen
Copy link
Member

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

@elhaouati
Copy link
Author

elhaouati commented Jul 25, 2023

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

@tvanderbruggen
Copy link
Member

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.

@elhaouati
Copy link
Author

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

@tvanderbruggen
Copy link
Member

You need to install the Typescript copiler tsc.

Running make setup_web should do it.

@elhaouati
Copy link
Author

After installing tsc I've got this problem
errrr2

@tvanderbruggen
Copy link
Member

Can you try

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

@elhaouati
Copy link
Author

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

@tvanderbruggen
Copy link
Member

I've got this error on CI and solve it upgrading node to 14.x. (1aced26)

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

@elhaouati
Copy link
Author

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

@tvanderbruggen
Copy link
Member

Good if it works !

@elhaouati
Copy link
Author

Thank you so much for your time and efforts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants