Tool/software:
Hello Team,
I am working on J722S EVM with 10.00.00.08 SDK.
I tested the NAND flash in J722S by referring https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-j722s/10_00_00_08/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Storage/NAND.html documentation.
Used hexdump command to verify the data, but the written data does not match the read data. Please find the log below
root@j722s-evm:~# flash_erase /dev/mtd0 0 0
Erasing 512 Kibyte @ 0 -- 100 % complete
root@j722s-evm:~#
root@j722s-evm:~# hexdump ospi.txt
0000000 6161 6161 000a
0000005
root@j722s-evm:~#
root@j722s-evm:~# nandwrite -p /dev/mtd0 ospi.txt
Writing data to block 0 at offset 0x0
root@j722s-evm:~#
root@j722s-evm:~# nanddump /dev/mtd0 -f ospi_read.txt
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 262144, page size 4096, OOB size 128
Dumping data starting at 0x00000000 and ending at 0x00080000...
root@j722s-evm:~#
root@j722s-evm:~# hexdump ospi_read.txt
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0001000 ffff ffff ffff ffff ffff ffff ffff ffff
*
0080000
root@j722s-evm:~#
Tested the same using flashcp command and observed the following error.
root@j722s-evm:~# flashcp -v test.txt /dev/mtd0
Erasing blocks: 1/1 (100%)
Writing data: 0k/0k (100%)
Verifying data: 0k/0k (100%)File does not seem to match flash data. First mismatch at 0x00000000-0x00000010
root@j722s-evm:~#
root@j722s-evm:~#
Could you kindly assist in resolving this issue?