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
Picolib support #9
Open
tsmk94
wants to merge
16
commits into
esa-tu-darmstadt:master
Choose a base branch
from
tsmk94:picolib_support
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a script to build picolibc by using make picolibc. The script works with riscv32 and riscv64 compilers. It is installed locally to the repository with a specs-specs file containing all necessary options for correct linking. Also a dummyfile is included for printf support which needs to be adjusted in future commits.
Include the build of our __iob implementation for printf support in the meson build of picolibc Adjust clean target of Makefile
Move sections containing function pointers (and not code as I initially thought) to the data memory as well. Otherwise the start up code cannot load these pointers from memory.
RVController contains now all required registers for the picolibc support and interrupt is set after grace period.
Add implementation of putc and getc operations on stdin/stdout. In initialization phase base addresses of the RAM buffers are fetched. One buffer is used to write stdout output and one for "reading" from stdin.
The Controller resets the RISC-V core now with every write of '1' to the start register at 0x0, no matter in which state it is currently. This is required for proper support of the cores' debug modules.
Add an example using the picolibc with software and makefiles for both host and PE.
Delay core reset after interrupt by four cycles to avoid reset directly with new write request of Pico since this will cause that the Pico cannot be resetted properly and will hang-up in a second execution.
…by using PICOLIBC_OPTS variable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the picolibc support to the repository. The library is build automatically with a script calling make picolibc. Also software and hardware (controller) implementation is provided to support stdin/stdout with memory buffers. An example is added to show how to use is properly.
Also the controller is now resetted with every write to 0x0.