Hello Yoshiaki,
Thank you for your prompt response and the suggestion!
I've tried to use memtool from the above link but failed to cross-compile it since my cross-compile environment doesn't have autoconfigure
So I used another source code from the site below to compile memtool:
https://gist.github.com/mike0/2910170
Unfortunately, the read/write operation from/to certain registers (especially, FPGA-related registers) fail.
TChat is, the terminal does not respond to any commands like case the above.
I tried following commands (1 word = 32 bit):
#1
memtool FF001000 1 (read 1 word from 0xFF001000)
Reading 0x1 count starting at address 0xFF001000
0xFF001000: 00000000
#2
memtool FF200000 2 (read 2 words from 0xFF200000, while 0xFF200000 means LEDR)
Reading 0x3 count starting at address 0xFF000000
(freezes)
#3
memtool FF200020=16 (write 32bit word 16 to 0xFF200020, while 0xFF200020 means 7-segment displays register)
Writing 32-bit value 0x16 to address 0xFF200020
(freezes)
#4
memtool FFFEC600 3 (read 3 words from 0xFFFEC600, while 0xFFFEC600 means ARM A9 Private Timer)
Reading 0x3 count starting at address 0xFFFEC600
0xFFFEC600: 00234934 00165135 00000005
#5
memtool FFFEC600 3 (read 3 words again from 0xFFFEC600)
Reading 0x3 count starting at address 0xFFFEC600
0xFFFEC600: 00234934 00138EB5 00000005
The addresses of the registers are based on DE1-SoC_Computer_ARM.pdf
From the above result, should I suppose the FPGA hardware malfunction?
+ More logs using memtool
#6
memtool FFD0501C 3 (read 3 words from 0xFFD0501C, while 0xFFD0501C means FPGA Bridge)
Reading 0x3 count starting at address 0xFFD0501C
[ 68.718423] 8<--- cut here ---
[ 68.725699] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6f0c024
[ 68.733491] pgd = 64d55855
[ 68.736193] [b6f0c024] *pgd=3ffb8831
Bus error (core dumped)
#7
memtool C0000000 1 (read 1 words from 0xC0000000, while 0xC0000000 means SDRAM)
Reading 0x1 count starting at address 0xC0000000
(freezes)