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

更新port文件,与 rt_kprintf_threadsafe兼容 #14

Merged
merged 1 commit into from
Dec 26, 2022
Merged

更新port文件,与 rt_kprintf_threadsafe兼容 #14

merged 1 commit into from
Dec 26, 2022

Conversation

wdfk-prog
Copy link
Contributor

@wdfk-prog wdfk-prog commented Dec 26, 2022

  • 更新port文件,与 rt_kprintf_threadsafe兼容

  • 详细看这里 > 与软件包 rt_kprintf_threadsafe 同时使用时,测试时死机 #13

  • 启用 rt_kprintf_threadsafe后,cmb无法正常打印错误信息

  • 原因大致为 rt_kprintf_threadsafe中判断不在中断或者在线程中,会创建互斥量保护线程.

  • 而cmb原来用rt_enter_critical()无法被识别为中断中,将会创建互斥量.

  • 互斥量中将会触发RT_DEBUG_SCHEDULER_AVAILABLE

  • 改为使用中断保护,本来也是进入了错误中断触发的

  • 在STM32F4和STM32F7中复现问题,更新代码都得到解决

@armink
Copy link
Member

armink commented Dec 26, 2022

感谢 PR 哈

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.

2 participants