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

Need toolchain and compilation instructions #11

Closed
szczys opened this issue Oct 11, 2019 · 6 comments
Closed

Need toolchain and compilation instructions #11

szczys opened this issue Oct 11, 2019 · 6 comments

Comments

@szczys
Copy link
Contributor

szczys commented Oct 11, 2019

I've put together the steps I've used sucessfully here:
https://gist.github.com/szczys/f4ec190bfe5ceaf851ca03e4f9090393

Not working on one of my machines is the tinyprog. It seem the pip3 repo install method should work but so far I get a device or resource busy on ttyACM0 that I haven't been able to work out yet.

I'll keep working on it but wanted to open this issue in case anyone else was also snooping around on this topic.

@smunaut
Copy link
Contributor

smunaut commented Oct 11, 2019

I would actually recommend switching over to the https://gnu-mcu-eclipse.github.io/blog/2019/05/21/riscv-none-gcc-v8-2-0-2-2-20190521-released/ toolchain.

The one from sifive is mostly built for large riscv with linux support and such. This one is targeted at much smaller targets and include specs file to reflect that. (nano.specs for instance).

@davidthings
Copy link

The riscv32-unknown-elf- toolchains are deprecated. New ones are here:

https://xpack.github.io/riscv-none-embed-gcc/install/#manual-install

The riscv-none-embed- tools work fine once the Makefiles (in apps-sdk (sdk.mk), boot, & ipl) reflect the new preffix:

eg

#PREFIX := $(RISCV_TOOLCHAIN_PATH)/riscv32-unknown-elf-
PREFIX := $(RISCV_TOOLCHAIN_PATH)/riscv-none-embed-

@szczys
Copy link
Contributor Author

szczys commented Oct 14, 2019

@xobs do you have any thoughts on this?

@smunaut
Copy link
Contributor

smunaut commented Oct 14, 2019

@davidthings Oh yeah, I hadn't noticed that the gnu eclipse ones had been moved over to the xpack project.

@xobs
Copy link
Contributor

xobs commented Oct 14, 2019

@szczys I was planning on moving to this toolchain once the gdb bug I reported was fixed. That issue was closed yesterday, so I'll take another look.

I was also investigating the possibility of switching packaging methods to allow me to include tinyprog, which should solve your other issue.

@Spritetm
Copy link
Owner

I'm gonna close this as the docs have a nice place for toolchain instructions now.

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

5 participants