Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

oRSC uart ECHO test (working at Chmberlin) #46

Open
tsarangi opened this issue Nov 8, 2013 · 4 comments
Open

oRSC uart ECHO test (working at Chmberlin) #46

tsarangi opened this issue Nov 8, 2013 · 4 comments

Comments

@tsarangi
Copy link

tsarangi commented Nov 8, 2013

@dabelknap

Mathias and I have managed to make the oRSC echo test work at Chamberlin. I have committed all my changes to the master branch.
See 070d4b6

Look at the README file to see how to configure and test it in 904.
https://github.com/uwcms/cms-calo-layer1/blob/master/orsc_be_uart_echo_test/README.md

@dabelknap
Copy link

@tsarangi Great! I'll try this with the 904 setup as soon as I can.

For future reference, when you want to commit changes to uwcms/cms-calo-layer1, it is better to submit a pull-request rather than commit directly to the master branch. This way it is easier to revert the changes if something goes wrong.

@dabelknap
Copy link

I just ran through the README instructions with the 904 setup. First, I copied over whatever bitfiles Mathias has in his orsc_bits directory to make sure I am using up-to-date files.

$ sudo screen /dev/ttyUSB0

In a separate terminal,

$ xmd
XMD$ fpga -f bitfiles/orsc/top_fe.bit -debugdevice deviceNr 2
XMD$ connect mb mdm -debugdevice deviceNr 2
XMD$ dow orsc_fe_uart_echo_test/payload.elf
XMD$ run
XMD$ read_uart

In another terminal,

$ xmd
XMD$ fpga -f bitfiles/orsc/top_be.bit -debugdevice deviceNr 1
XMD$ connect mb mdm -debugdevice deviceNr 1
XMD$ dow orsc_be_uart_echo_test/payload.elf
XMD$ run

However, I don't see anything show up in the "screen" window. Did I miss a step? I'll step through the code to see if I find anything strange.

@tsarangi
Copy link
Author

@dabelknap
You have to first configure the BE and dow the payload on the BE in order to configure the clocks for FE. Don't just yet execute "run" on BE. THen configure the FE all the way to read_uart and then press "run" on BE.

https://github.com/uwcms/cms-calo-layer1/blob/master/orsc_be_uart_echo_test/README.md

THhis file is messed up on github, but read it in a terminal...

@dabelknap
Copy link

I tried that, but it didn't seem to work either. I also tried cleaning and remaking the bsps.

It probably doesn't matter that much, but I am also getting a new compiler error for orsc_be_spi_echo_test:

src/spiecho.c:16:53: fatal error: xparameters.h: No such file or directory

I haven't figured out why it is missing this yet.

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

No branches or pull requests

2 participants