Prepare for analysis
After reading "NandFlash Application of S5PV210 (II)", I have a certain understanding of the access method of the first 16k of binary files. This time, I want to prove the access method after the 4th page of NandFlash. 210.bin (16k in size) in "NandFlash Application of S5PV210 (II)" is stored in the first 4k of each page of the first 4 pages (0, 1, 2, 3) in units of 4k. For this reason, I wrote an 8k binary file (named AB) and pasted it behind 210.bin. According to the inference, the 8k should be stored in the 4th page. Then change to nand_cp.c to read the 4th page in 8k mode, and then output the data to the serial port, and then compare it with the original binary file.
Resource Tools
Same as "LED Application of S5PV210 (I)"
NandFlash: K9GAG08U0F (2G)
Special binary file AB:
Start writing the program
(1) int nandll_read_blocks (ulong dst_addr, ulong size, int large_block), reads a block size. Here it is changed to read a page in 8k mode.
(2) cat 210.bin AB > 210210.bin can merge two files
Specific implementation:
/*
* Read data from NAND.
*/
static int nandll_read_blocks (ulong dst_addr, ulong size, int large_block)
{
fly *buf = (fly *)dst_addr;
int i;
uint page_shift = 9;
if (1 == large_block)
{
page_shift = 11;
/* Read pages */
for (i = (0x6000>>page_shift); i < (size>>page_shift); i++, buf+=(1< nandll_read_page(buf, i, large_block); } } else if(3 == large_block) { page_shift = 13; //Read a page in 8k mode for (i = 4; i < 5; i++, buf+=(1<<(page_shift))) { nandll_read_page(buf, i, large_block); } } return 0; } Download and run Same as "LED Application of S5PV210 (I)" The download file is: 210210.bin Run Debug The comparison with the "special binary file AB" is shown in the figure: There were no problems with the three important points and they all corresponded to each other, confirming the hypothesis. It is concluded that files after 16k are stored starting from page 4 of NandFlash. Remaining problem 1. None
Previous article:NandFlash application of S5PV210 (I)
Next article:Uart application of S5PV210
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- Share the open source information of the creative Coke power bank I collected, including schematics, PCB, and code
- Share a STMF105RBT6 and 103RCT6_keil_C++ source program
- MSP430 MCU Example 3 - Colored Light Control
- EEWORLD University-What is an isolated gate driver?
- Burning image and mounting USB disk with busybox file system failed
- Switching Circuit
- EEWORLD University Hall----Open Source PWM Robotic Arm (Version 51)
- MakeCode Extension for the LSM6DSO Sensor
- PCB reliability test
- It is rare for home appliance manufacturers to issue price increase letters, simply because of rising costs of chips and other items!