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

Where to grab the toolchain? #14

Open
kristofmulier opened this issue Jun 30, 2023 · 5 comments
Open

Where to grab the toolchain? #14

kristofmulier opened this issue Jun 30, 2023 · 5 comments

Comments

@kristofmulier
Copy link

I'm trying to get a Hello World sample project running for my HPM6200EVK_RevB board. Unfortunately, I got stuck.

I followed all the installation steps pointed out on https://github.com/hpmicro/hpm_sdk

The only step I could not understand completely, is this one:

Grab a copy of toolchain zip package and unzip to certain path, take TOOLCHAIN_PATH for example, (riscv32-unknown-elf-gcc is supposed to be found in TOOLCHAIN_PATH/bin)

This step does not explain where to grab a copy of the toolchain. I have no idea where that toolchain is. Perhaps this one:
https://github.com/hpmicro/riscv-gnu-toolchain/releases/tag/2022.05.15

But it has no build for Windows. Where can I find a Windows toolchain for HPMicro?

@jhqian
Copy link
Contributor

jhqian commented Jun 30, 2023

For windows users, we prepared sdk_env for them, in which all dependencies have been included (cmake/python/toolchain/openocd/ninja).

It can be downloaded from here
http://hpmicro.com/resources/detail.html?id=a313eb8f-afbf-4d12-95a2-ce22bda8d3c0
image

after download that package, you can execute start_cmd.cmd
image

in that newly opened windows console, you can generate project using cmake commands mentioned in readme and also build it using ninja or segger embedded studio

@jhqian
Copy link
Contributor

jhqian commented Jun 30, 2023

BTW, yes, the toolchain URL you mentioned is correct. We'll upload one for windows

@eggcar
Copy link

eggcar commented Aug 18, 2023

For windows users, we prepared sdk_env for them, in which all dependencies have been included (cmake/python/toolchain/openocd/ninja).

It can be downloaded from here http://hpmicro.com/resources/detail.html?id=a313eb8f-afbf-4d12-95a2-ce22bda8d3c0 image

after download that package, you can execute start_cmd.cmd image

in that newly opened windows console, you can generate project using cmake commands mentioned in readme and also build it using ninja or segger embedded studio

Have you modified the risc-v 'official' gnu toolchain to support features of hpm chips, or the official release can be used the same?
Is the one in your own forked repo necessary?

@helloeagleyang
Copy link

For windows users, we prepared sdk_env for them, in which all dependencies have been included (cmake/python/toolchain/openocd/ninja).
It can be downloaded from here http://hpmicro.com/resources/detail.html?id=a313eb8f-afbf-4d12-95a2-ce22bda8d3c0 image
after download that package, you can execute start_cmd.cmd image
in that newly opened windows console, you can generate project using cmake commands mentioned in readme and also build it using ninja or segger embedded studio

Have you modified the risc-v 'official' gnu toolchain to support features of hpm chips, or the official release can be used the same? Is the one in your own forked repo necessary?

We didn't modify the official GNU toolchain, instead, we enabled multilib support and provided the widest range of arch and abi combinations. Actually, it is okay to use the official GNU toolchain as long as users know how to specify the correct ABI and ARCH.

@eggcar
Copy link

eggcar commented Aug 18, 2023

We didn't modify the official GNU toolchain, instead, we enabled multilib support and provided the widest range of arch and abi combinations. Actually, it is okay to use the official GNU toolchain as long as users know how to specify the correct ABI and ARCH.

Thanks, that's good, so we can build the toolchain from scratch.

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

4 participants