[bsp][imxrt]修复了USB通信概率性挂掉的问题。原因是USB_OSA_ENTER_CRITICAL等宏使用的是禁止调度的函数,无法保护中断与任务的临界资…#10360
Merged
Rbb666 merged 1 commit intoRT-Thread:masterfrom Jun 5, 2025
Merged
[bsp][imxrt]修复了USB通信概率性挂掉的问题。原因是USB_OSA_ENTER_CRITICAL等宏使用的是禁止调度的函数,无法保护中断与任务的临界资…#10360Rbb666 merged 1 commit intoRT-Thread:masterfrom
Rbb666 merged 1 commit intoRT-Thread:masterfrom
Conversation
…源,修改为禁止中断可以解决这个问题
supperthomas
approved these changes
Jun 4, 2025
Contributor
Author
|
@Rbb666 这个PR还能过吗? |
Member
|
CI问题处理一下,应该是这个PR引入的 |
Contributor
Author
这个PR只修改了/bsp/nxp/imx/imxrt/libraries里面的一个文件,只有三行变化,请在files changed列表中查看,而出问题的BSP是/bsp/nxp/imx/imx6ull-smart,可以肯定与这个PR没有关系。用仓库中最新的版本测试imx6ull-smart,也存在编译通过不过的情况。 |
Member
感觉是ci的工具链设置的不对 |
Contributor
Author
我clone到我本地的仓库中这个BSP也是编不过的,所以我很好奇,我后面那个PR(10361)他是怎么编过的? |
Member
|
看了下是这个PR引入的6ull的编译:#10273 |
Member
Member
|
ci过了 |
Member
|
我知道了,qemu已经把toolchain改过了,所以其他ci能过 |
Member
|
这个直接合吧。ci问题后面再修复一下。 |
Rbb666
approved these changes
Jun 5, 2025
This file contains hidden or 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
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.


…源,修改为禁止中断可以解决这个问题
拉取/合并请求描述:(PR description)
[
在imxrt的BSP/libraries中,USB的驱动存临界资源未保护的问题,通信过程中有一定的概率会导致MCU挂掉。原因是USB_OSA_ENTER_CRITICAL等宏使用的是禁止调度的函数,无法保护中断与任务的临界资源,修改为禁止中断可以解决这个问题。
请提供验证的bsp和config (provide the config and bsp)
BSP: bsp/nxp/imx/imxrt/imxrt1064-nxp-evk
.config: none
action:
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up