Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2020-11-06
SHANGHAI SIIC TRANSPORTATION ELECTRIC
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the writing and erasing speed of NOR FLASH is very slow, and when NOR FLASH is read and written, other operation requests for NOR FLASH will be ignored. In a system, users cannot know that NOR FLASH is currently in operation It is still in an inoperable state; after the user sends an operation command, it is impossible to know whether the operation on the FLASH is successful, especially when multiple peripheral modules in the system need to operate on the FLASH

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • NOR FLASH operation processing method, terminal, computer equipment and storage medium
  • NOR FLASH operation processing method, terminal, computer equipment and storage medium
  • NOR FLASH operation processing method, terminal, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an NOR FLASH operation processing method, a terminal, computer equipment and a storage medium, and the method comprises the steps: receiving a FLASH operation instruction, and adding the FLASH operation instruction into an operation queue; obtaining a callback function corresponding to the FLASH operation instruction; and sequentially executing the FLASH operation instructions in the operation queue, and executing the corresponding callback functions when the FLASH operation instructions are completed. The terminal comprises a receiving module used for receiving a FLASHoperation instruction and adding the FLASH operation instruction into an operation queue; an acquisition module used for acquiring a callback function corresponding to the FLASH operation instruction;and an execution module used for sequentially executing the FLASH operation instructions in the operation queue and executing the corresponding callback functions when the FLASH operation instructions are completed. Multiple peripheral operations can be processed at the same time, multiple requests of peripherals are not needed, in addition, the operation state of the NOR FLASH can be fed back in time, and the system operation efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of NOR FLASH, in particular to a NOR FLASH operation processing method, a terminal, computer equipment and a storage medium. Background technique [0002] In the field of industrial electronics and consumer electronics, it is often necessary to save some data that is not easy to lose when power off, and can be quickly read when needed. The common EEPROM and FLASH EEPROM memory can meet the above requirements. NOR FLASH is a part of FLASH EEPROM memory. It has the performance of electronically erasable and programmable (EEPROM), and like common SDRAM (a power-down volatile memory), it provides a complete addressing and data bus, allowing random access to any area on the memory , Compared with EEPROM, the cost is very low, and it can store data that is not frequently modified but often read. [0003] However, the writing and erasing speed of NOR FLASH is very slow, and when NOR FLASH is read and written, othe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/06
CPCG06F3/0604G06F3/0659G06F3/0679
Inventor 秦伟
Owner SHANGHAI SIIC TRANSPORTATION ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products