PSRAM write,read
Overview
After the application starts, perform the following operations:
Allocate the memory of PSRAM from the heap
Integer mode reading and writing
Copy the string to PSRAM in memcpy mode and read it out
Copy 1K string to PSRAM in DMA mode, and then print the data in PSRAM
Requirements
Demo uses EVB board, and it needs to add all jumper caps on the seat beside the EEPROM chip
Building and flashing
Example location: examples/peripheral/psram
For operations such as compiling and burning, please refer to: [Quick Start] (../../../../get_started/index. html # build function)
Running result
D/dt [0.000] add device iflash
D/ptb [0.002] partition table base 0xe000
D/ft [0.002] ft_0 base 0, ft_1 base 1000
D/ft [0.002] ft init too
D/ft [0.002] ft init 1
D/main [0.004] boot reason 0
D/main [0.004] heap size 2369888(2.26MB)
D/main [0.004] flash size 0x200000(2MB)
I/example_psram [0.004] psram write/read example.
I/example_psram [0.006] write 32bits integer 0x11223344 to address=30000018
I/example_psram [0.006] read 32bits integer from address=30000018,value=0x11223344
I/example_psram [0.006] CPU copy 0123456789abcdefghij to address=30000018
I/example_psram [0.006] CPU read string from address=30000018,value=0123456789abcdefghij
I/example_psram [0.008] DMA copy string to address=30000018,string is:
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefghijklmnopqrstuvwx
I/example_psram [0.092] DMA read string from address=30000018,value is
=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789abcdefghijklmnopqrstuvwx