I'm noting that the source code for the Chapter 8, p153 flashmem code works as expected on the Raspberry Pi 3B computer but doesn't seem to be running on the Raspberry Pi 4B.
gpiomem.s:
gpioaddr: .word 0x3F200 @ mem address of gpio register / 4096
Are you sure this is correct for the Raspberry Pi 4B, as indicated on p154's last paragraph?
I'm getting a "Failed to map memory" error from this platform (as run by sudo ...).
ls -l /dev/mem
crw-r----- 1 root kmem 1, 1 Dec 7 17:49 /dev/mem
ls -l /dev/gpiomem
crw-rw---- 1 root gpio 247, 0 Dec 7 17:49 /dev/gpiomem
groups
pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi
I'm noting that the source code for the Chapter 8, p153
flashmem
code works as expected on the Raspberry Pi 3B computer but doesn't seem to be running on the Raspberry Pi 4B.gpiomem.s:
Are you sure this is correct for the Raspberry Pi 4B, as indicated on p154's last paragraph?
I'm getting a "Failed to map memory" error from this platform (as run by
sudo ...
).