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

// 添加 软核 picorv32 支持 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flyfishR
Copy link

1、目前的问题,使用cmake 构建工程后,需要修改产生的 link.txt 文件 删除 -rdynamic 选项 (目录为 CMakeFiles/RISC_V.elf.dir/link.txt)

 1、前的问题 cmake 构建工程后   需要修改 产生的 link.txt  删除 -rdynamic 选项 (目录为 CMakeFiles/RISC_V.elf.dir/link.txt)
*(volatile int*)0x02000008= (int)ch;
}

void rt_hw_console_output(const char *str)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,我试了一下移植在 EG4S20 的 picorv32 软核上确实正常运行,但是这里实现了 rt_hw_console_output 却没有实现 rt_hw_console_getchar,控制台就无法读取输入了。

@wuhanstudio
Copy link

wuhanstudio commented Nov 25, 2020

感谢你的移植,我最近在你的基础上修改了一些:
https://github.com/wuhanstudio/rtthread-nano

  • 修复 CMake 的 -rdynamic 编译 bug
  • 实现 rt_console_getchar() 并添加 finsh 组件
  • 修改文件结构为 RTT bsp 的结构

并且总结了一下在 Picorv32 RISC-V 软核上运行 RT-Thread:
https://github.com/wuhanstudio/picorv32_tang

@flyfishR
Copy link
Author

flyfishR commented Nov 30, 2020 via email

@wuhanstudio
Copy link

很高兴收到您的邮件,最近刚刚换工作,没有注意到邮件的消息,表示非常抱歉。之前finsh支持我在本地有尝试过,但并未上传,之前实际测试中内存管理和finsh 一直不能在FPGA上共存使用,我这边就没有上传源码。 目前的代码就只是单独做了打印, 很高兴您能为它添加一些新的功能,还有文件结构修改的很不错 在 2020-11-26 06:22:58,"Wu Han" [email protected] 写道: 感谢你的移植 我最近在你的基础上修改了一些: https://github.com/wuhanstudio/rtthread-nano 修复 CMake 的 -rdynamic 编译 bug 实现 rt_console_getchar() 并添加 finsh 组件 修改文件结构为 RTT bsp 的结构 并且总结了一下在 Picorv32 RISC-V 软核上运行 RT-Thread: https://github.com/wuhanstudio/picorv32_tang — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

没事没事,开源就是一起改进嘛,其实我是直接在 github 上 rtthread-nano 的 PR里回复的,看样子自动发送邮件通知了 ;)

#4

@mysterywolf
Copy link
Member

你好 这个pr能否直接提交到rt-thread主仓库上:https://github.com/RT-Thread/rt-thread。

@flyfishR
Copy link
Author

flyfishR commented Feb 28, 2022 via email

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

Successfully merging this pull request may close these issues.

3 participants