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

Add RT-Thread RTOS porting for nRF51822. #185

Closed
overheat opened this issue Oct 23, 2013 · 8 comments
Closed

Add RT-Thread RTOS porting for nRF51822. #185

overheat opened this issue Oct 23, 2013 · 8 comments

Comments

@overheat
Copy link

内核是普通的cortext-m0,但是外设有些被蓝牙占用了。

@BernardXiong
Copy link
Member

当然可以,你可以做相应的移植,然后提交pull request,我们可以合并到upstream中。

@overheat
Copy link
Author

nRF51822这个芯片如果不使用蓝牙协议栈的话,只使用普通的2.4G外设移植应该不太难,就是个带无线外设的Cortex-M0。
但是,启用蓝牙协议栈后,协议栈会占用一些系统资源(比如Timer0)。他背后的实现方法是利用SVC接管中断,比如产生中断后,会先经过协议栈的处理再返给应用程序。因为我不太清楚RTT的实现原理,有没有可能和这种操作方式兼容?

@BernardXiong
Copy link
Member

RT-Thread并没有使用Timer0来作为时钟中断,而是使用Cortex-M0 Core里面的SysTick。同样的,即使它依赖于一些Timer0,也可以转换成一些软件方式的 Timer来进行处理。

至于说SVC中断处理方式,这种关系也不大,但是会涉及到一些系统上下文切换相关的一些东西。

@overheat
Copy link
Author

如果想做移植的话,有没有好的起点(模版)?还是在其他工程上修改?

发自我的 iPhone

在 2013年10月27日,下午8:30,Bernard Xiong notifications@github.com 写道:

RT-Thread并没有使用Timer0来作为时钟中断,而是使用Cortex-M0 Core里面的SysTick。同样的,即使它依赖于一些Timer0,也可以转换成一些软件方式的 Timer来进行处理。

至于说SVC中断处理方式,这种关系也不大,但是会涉及到一些系统上下文切换相关的一些东西。


Reply to this email directly or view it on GitHub.

@BernardXiong
Copy link
Member

基于LPC1114的工程来做吧,貌似nRF51822里面内置的是一个LPC的M0芯片。

@overheat
Copy link
Author

OK,菜鸟问一句ARM的M0也分不同厂家吗?

2013/10/28 Bernard Xiong notifications@github.com

基于LPC1114的工程来做吧,貌似nRF51822里面内置的是一个LPC的M0芯片。


Reply to this email directly or view it on GitHubhttps://github.com//issues/185#issuecomment-27186159
.

@BernardXiong BernardXiong changed the title 是否可以加入nRF51822的支持,一款cortext-m0+蓝牙4.0的SOC。 Add RT-Thread RTOS porting for nRF51822. Feb 7, 2015
@BernardXiong BernardXiong added this to the v2.1.0 milestone Feb 7, 2015
@BernardXiong
Copy link
Member

Planning to release this BSP in RT-Thread v2.1.0 alpha.

@BernardXiong
Copy link
Member

Close it, because the BSP of nRF51822 has been submitted into github repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants