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

How to add Lofive board containing FE310-G000 RISC V based microcontroller #3

Open
PriyamvadAcharya opened this issue Aug 30, 2019 · 14 comments
Labels
help wanted Extra attention is needed

Comments

@PriyamvadAcharya
Copy link

Supporting Link:-https://groupgets.com/manufacturers/qwerty-embedded-design/products/lofive-risc-v
https://github.com/mwelling/lofive/tree/master/libs

@ivankravets ivankravets transferred this issue from platformio/platformio-core Aug 30, 2019
@PriyamvadAcharya
Copy link
Author

Hello @ivankravets
Please explain me the process of how to add Lofive board containing FE310-G000 RISC V based microcontroller.

@ivankravets
Copy link
Member

Do you have this board?

@PriyamvadAcharya
Copy link
Author

Yes,I have this board.
I am thinking of testing custom instructions in RISC V ISA

@ivankravets ivankravets added the help wanted Extra attention is needed label Sep 9, 2019
@ivankravets
Copy link
Member

Could you try using e310-arty profile?

[env:lofive]
platform = sifive
framework = freedom-e-sdk
board = e310-arty
monitor_speed = 115200

@PriyamvadAcharya
Copy link
Author

Hello ivans,
I have tried below lines of code in platformio.ini file but I am getting below error shown in below image
lofive-board-upload-error

Could you try Husing e310-arty profile?

[env:lofive]
platform = sifive
framework = freedom-e-sdk
board = e310-arty
monitor_speed = 115200

@PriyamvadAcharya
Copy link
Author

Hello ivans,
I have solved problem shown in image by giving below command
Command:-sudo apt install libftdi1-dev

@ivankravets
Copy link
Member

Does it work for you?

@PriyamvadAcharya
Copy link
Author

Yes ivankravets,
I worked for me but now I am facing new problem shown by below image
platformio_upload_adapter_speed_issue
apter_speed_issue.png…]()

@PriyamvadAcharya
Copy link
Author

The error is related to adapter speed .
So I have changed minimodule.cfg in directory .platformio/packages/tool-openocd-riscv/share/openocd/scripts/interface/ftdi.
I have added a line below line in minimodule.cfg
adapter_khz 10000
After that I have given below command in platformio
pio update

@PriyamvadAcharya
Copy link
Author

But after doing these changes the above error shown in image still occurs.

@ivankravets
Copy link
Member

What is your debug tool?

@PriyamvadAcharya
Copy link
Author

I am using openocd as debug tool

@ivankravets
Copy link
Member

@PriyamvadAcharya
Copy link
Author

Please tell me the whole process of how to add a board which is not supported in Platformio.
Like I have Lofive board which is not supported by Platformio ,so how to upload hex files in this board.
For your information Lofive board contains FE310 microcontroller(same in Hifve1 board made by SIfive).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants