Intelligent card and method for accessing flash memory of intelligent card

A smart card and flash memory technology, applied in the field of smart cards, can solve the problems of code readability, simplification, cumbersome flash memory access, and easy to generate errors, etc., to achieve the effect of convenient programming and simplifying the process of flash memory reading and writing.

Inactive Publication Date: 2012-07-25
BEIJING WATCH DATA SYST
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the RAM space is not managed well, it is easy to generate RAM space fragmentation, and at the same time, it will have a great impact on the readability and simplification of the code.
[0005] Especially for some transplantation projects, if the program on the original development platform is written in C language, choose to access the structure space in RAM by byte by pointer, and if the program on the target development platform needs to save the structure data in the flash memory, then To access the structure data of the flash memory space by byte by pointer, it is necessary to call the flash interface function many times, and modify the original program code a lot, which will bring great disadvantages to the transplantation of the program, and is prone to errors.
[0006] To sum up, the existing methods for accessing the flash memory of the smart card need to call a large number of flash memory interface functions in the main program body, resulting in cumbersome access to the flash memory and error-prone problems

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
  • Intelligent card and method for accessing flash memory of intelligent card
  • Intelligent card and method for accessing flash memory of intelligent card
  • Intelligent card and method for accessing flash memory of intelligent card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The method for accessing the flash memory of the smart card according to the embodiment of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0017] Such as figure 1 As shown, the method for accessing the smart card flash memory in the embodiment of the present invention includes:

[0018] S1. Setting the access authority of the flash memory address in the address protection unit to be non-readable and writable.

[0019] Specifically, this embodiment takes a smart card using an ARM chip widely used in the industry as an example. The address protection unit of the ARM chip is a memory protection unit (MPU). In the memory protection unit address protection setting program, the flash memory address space that needs to be protected for reading and writing is set. In this embodiment, the flash memory address 0xA0000 to 0xBFFFF is set as unreadable Write.

[0020] S2. When the instruction code accesses the protected fla...

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 discloses an intelligent card and a method for accessing the flash memory of the intelligent card, relates to the field of intelligent cards and aims to solve the problem that a large quantity of flash memory interface functions need calling in a main program body when the intelligent card is accessed in the prior art. The method for accessing the flash memory of the intelligent card comprises the following steps of: setting the access right of a flash memory address to be unavailable to be read or written in an address protection unit; when a command code accesses a protected flash memory address, performing data exception processing to obtain the command type of the command code and command information corresponding to the command type; and accessing the flash memory of the intelligent card according to the command type and the command information corresponding to the command type. The invention also discloses the intelligent card for accessing the flash memory of the intelligent card by the method. The method is used for accessing a memory space by using the intelligent card.

Description

technical field [0001] The invention relates to the field of smart cards, in particular to a smart card and a method for accessing the flash memory of the smart card. Background technique [0002] The smart card hardware structure generally includes a central processing unit (CPU), random access memory (RAM), programmable read-only memory (EEPROM) and read-only memory (ROM). EEPROM is a non-volatile storage unit. Because of its high cost and small storage space, it is gradually replaced by NOR FLASH and NAND FLASH with mature technology, low cost and large storage space. Both NOR FLASH and NAND FLASH are flash memory chips, which are non-volatile memories that are erased and reprogrammed in blocks. [0003] In the actual program writing process, when it is necessary to access the flash memory, its read and write operations need to be erased by block, and then written. Generally, this process is through calling a specific flash memory in the main program written. Interface ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06K17/00G06K19/073
Inventor 贾庆刚
Owner BEIJING WATCH DATA SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products