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

Icestudio compatibility (testing on Alhambra)? #92

Closed
drtrigon opened this issue Oct 14, 2018 · 9 comments
Closed

Icestudio compatibility (testing on Alhambra)? #92

drtrigon opened this issue Oct 14, 2018 · 9 comments

Comments

@drtrigon
Copy link

I downloaded the picorv32 and picosoc code and tryied to use it in icestudio in order to put it on an Alhambra II board. I was able to integrate picosoc into icestudio and it works so far: Verify reports an error but Build works anyway. Here how it looks like:
picosoc integrated
Now I am struggling with how to connect the picosoc pins with my hardware (Alhambra) and how to add code into the cpu? (simple led blink example would do the job)

Can you give me any hints on how to proceed?

@Obijuan
Copy link

Obijuan commented Oct 18, 2018

Hi! I have just tested the picorv32 on my Alhambra II board. It is working! :-)

I've uploaded the test and changes to this repo: https://github.com/FPGAwars/Alhambra-II-FPGA/tree/master/examples/picorv32/picosoc

I will test your icestudio block soon, and tell you the changes

@Obijuan
Copy link

Obijuan commented Oct 18, 2018

I've forgotten to upload the picture of the Picosoc working!
alhambra-ii-picorv32

@drtrigon
Copy link
Author

Very very nice!

I compared your code and the one used by me - only changes are you disabled flash_io2 and 3. My biggest questionmarks are how to embed it into a design and how to upload or add c code (e.g. LED blink example).

@Obijuan
Copy link

Obijuan commented Oct 18, 2018

I am preparing an example for you, in icestudio.
The firmware should be uploaded in the flash memory using iceprog, outside of icestudio. In future versión we will integrate it into icestudio as well

i've updated the Alhambra-II picosoc repo. The command for sinthesizing and upload the picosoc is:

apio upload -v (-v is optional. Is for making it verbose)

and for the firmware:

make prog

@Obijuan
Copy link

Obijuan commented Oct 18, 2018

Ready! You have the example in the repo. It is called demo.ice:

picosoc-icestudio-1

It takes around 3 minutes to finish. It is better to verify it first (with the version in that repo there are no errors with the verification process)

@drtrigon
Copy link
Author

drtrigon commented Oct 18, 2018

Thanks a lot! That was fast. I'll test it as soon as possible! (Currently on a short trip for a few days)

@cliffordwolf
Copy link
Collaborator

Thanks @Obijuan for looking into this. Looks like you answered the question so I'm now closing this issue.

@drtrigon
Copy link
Author

I tested it and it works for me too! Thanks again!

I was able to implement equivalents to the Arduino Blink and SerialCallResponseASCII example based on the one given by you.

@drtrigon
Copy link
Author

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