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

Problem with make firmware-connect #304

Open
dafchaparroar opened this issue Jan 28, 2020 · 6 comments
Open

Problem with make firmware-connect #304

dafchaparroar opened this issue Jan 28, 2020 · 6 comments

Comments

@dafchaparroar
Copy link

dafchaparroar commented Jan 28, 2020

I'm working with the ice40_hx8k_b_evn. In time to do the "make firmware-connect" the console keeps loading and doesn't respond anymore.

~/litex-buildenv $ make firmware-connect
flterm --port=/dev/ttyUSB1 --speed=115200
[FLTERM] v2.4-29-g47d3b15 Starting...

@mithro
Copy link
Member

mithro commented Jan 29, 2020

I'm afraid ice40_hx8k_b_env is currently broken - see #277 - I have some WIP fixes but haven't had time to pull it ll together.

@dafchaparroar
Copy link
Author

dafchaparroar commented Jan 30, 2020

Thanks for your comment. Now, I'm trying to simulate the program to search for possible issues in the BIOS but is not possible. I'm using the "sim" platform in the environment variables but in the moment to do the make gateware I have this message:

  File "/cain/litex-buildenv/platforms/sim.py", line 1, in <module>
    from litex.boards.platforms import sim
ImportError: cannot import name 'sim' from 'litex.boards.platforms' (/cain/litex-buildenv/third_party/litex/litex/boards/platforms/__init__.py)

I'm not sure about the problem because the file sim.py is in the platform file. Maybe the best option is to build the simulation using the top.v directly with the simulator.

@mithro
Copy link
Member

mithro commented Jan 30, 2020

@dafchaparroar

Sorry about this, but we currently don't have good simulation support. @stffrdhrn was trying to fix the issues with that in the pull request #82 but I don't think it was ever finished.

On what the issues is with this board, there appear to be multiple problems. I created a work in progress pull request at #313 and I believe the issues to be fixed are;

  • Update the targets/ice40_hx8k_b_evn/base.py file for changes in upstream litex.
  • Fix the SPI XIP Flash module to use the correct endian.
  • Figure out why VexRISCV seems to require something to be mapped to address 0.

FYI - When trying to fix this we got side tracked in adding uart terminal over uart wishbone bridge support into wishbone-tool so we could attach gdb to the CPU and figure out why the firmware wasn't executing correctly.

@mithro
Copy link
Member

mithro commented Jan 30, 2020

@dafchaparroar - I would also like to apologize that you have hit the following issues, things have been a bit more bumpy than we would like at the moment.

@stffrdhrn
Copy link
Contributor

@dafchaparroar

Sorry about this, but we currently don't have good simulation support. @stffrdhrn was trying to fix the issues with that in the pull request #82 but I don't think it was ever finished.

I had sim working but I remember there were a few problems:

  1. We wanted the CI to work with sim but there were problems with the verilator toolchain available in CI, those are probably fixed now?
  2. There seems to be some problem with how we setup network in the sim environment, I had it working but it maybe needed some hacking.

I can't remember what else was left, but it was working it was just not in a state that CI could run reliably.

@dafchaparroar
Copy link
Author

@dafchaparroar - I would also like to apologize that you have hit the following issues, things have been a bit more bumpy than we would like at the moment.

Don't worry. We are learning about the topic and is important to understand the functioning of the project. With respect to my problems I had done the following:

  1. In Ice40 HX8K EVB issues #277 @niklasnisbeth recommended to work with the da7488c commit. Here uP is working for my FPGA using the LM32, and now I'm working with this information searching the changes in the commits.
  2. With respect to the simulation a partner is working with the top.v file. Is possible to create a new simulation project in Vivado (for now) using the information of this file without specifying a FPGA. Maybe here is possible to view the principal signals for search specifically issues. Also, I think that is possible to implement in Verilator or Gkwave, If we manage to do this, I will be commenting.

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

3 participants