Skip to content

[Bug] sfud组件的wait_busy函数实现性能问题 #11079

@609146193

Description

@609146193

RT-Thread Version

v5.2.2

Hardware Type/Architectures

mcu

Develop Toolchain

GCC

Describe the bug

测试环境:
1、py25q128ha nor flash四线模式
2、在启用sfud组件后,执行sf bench yes
测试现象:
1、示波器测量QSPI的clk/(HOLD#/RESET#)管脚,出现约10ms一个的波形,会影响写入性能
2、将retry_delay_100us函数rt_thread_delay((RT_TICK_PER_SECOND * 1 + 9999) / 10000);改为rt_hw_us_delay(1);后性能会得到明显提升,但这样的改动会导致CPU阻塞在此,造成系统卡顿

Other additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions