de10nano_fpga_linux_config icon indicating copy to clipboard operation
de10nano_fpga_linux_config copied to clipboard

Mistake in the program: you mmap a block of largobytes=1 bytes, and then access more than one byte in it

Open yurivict opened this issue 5 years ago • 2 comments

https://github.com/nhasbun/de10nano_fpga_linux_config/blob/master/main.c#L16

yurivict avatar Jan 12 '20 05:01 yurivict

Yeah you are right.

I will have to take a look to know how many bytes are required, but I'm accepting pull request if you are available to help.

nhasbun avatar Jan 19 '20 22:01 nhasbun

largobytes should be GPIO_INTSTATUS+2.

yurivict avatar Jan 19 '20 22:01 yurivict