NOR FLASH operation processing method, terminal, computer equipment and storage medium
An operation processing and terminal technology, applied in the field of NORFLASH, can solve the problems of slow writing and erasing of NORFLASH, users cannot know whether the NORFLASH is operable or inoperable, and cannot know whether the FLASH operation is successful, etc., and achieves the transparency of the operation status. , the effect of improving system operation efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] An embodiment of the present invention, such as figure 1 As shown, the present invention provides a kind of NOR FLASH operation processing method, comprises steps:
[0061] S1. Receive a FLASH operation instruction, and add the FLASH operation instruction to an operation queue.
[0062] Specifically, the peripherals used to send FLASH operation instructions mainly refer to peripheral modules in the system that need to store data that is not easily lost after power failure, including but not limited to analog quantity acquisition modules, digital quantity acquisition modules, security encryption modules, communication modules and Other subsystem modules in the system, etc.
[0063] In addition, the length of the FLASH operation queue is adjustable, and its length depends on the maximum demand for FLASH operations in the system within a certain period of time, which is determined by the system engineer.
[0064] Further, the length of the FLASH operation queue can be de...
Embodiment 2
[0071] An embodiment of the present invention, such as image 3 As shown, on the basis of Embodiment 1, step S3 sequentially executes the FLASH operation instructions in the operation queue, and executes the corresponding callback function when the FLASH operation instruction is completed, specifically including:
[0072] S31 . Detect the current state of the FLASH by polling the FLASH time slice. The current state includes a read operation state, a write operation state, an erase operation state, and a no-operation state.
[0073] S32. Execute the corresponding operation cycle task according to the current state of the FLASH, and when the operation cycle task is completed, modify the current state of the FLASH to the no-operation state, and modify the last operation mark to the corresponding completed operation mark, including the read operation , write operation, erase operation and no operation, the operation period tasks include read operation period tasks, write operation...
Embodiment 3
[0078] In one embodiment of the present invention, on the basis of embodiment 1 or embodiment 2, when the operation period task is completed, modifying the current state of FLASH to the no-operation state specifically includes:
[0079] Detect the completion of the operation state corresponding to the current state. If it is not completed, wait for the next detection; if it is completed, modify the current state of the FLASH to the no-operation state.
[0080] Since each polling of the FLASH time slice is to detect a time point, in order to accurately judge whether the operation cycle task is completed, the completion of the operation state corresponding to the current state can be detected. If it is not completed, wait for the next detection; if it is completed, Then the state of the FLASH is changed to the no-operation state, and at this time, the no-operation periodic task can be performed.
[0081] Preferably, after detecting the current state of the FLASH through FLASH ti...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com