Page 1 of 1

NANO M4 GPIO Physical memory map base address

Posted: Wed Jan 02, 2019 5:50 pm
by edinsam
Congratulations on the M4, very nice!

I am converting some existing software from RPI which uses direct memory mapped access to the GPIO ports.

Does anybody know the (physical) base address for the GPIO ports for the M4 (i.e. as mapped by software, not necessarily the same as the direct access addresses as shown on the RK3399 data sheet)

Thanks in advance

Re: NANO M4 GPIO Physical memory map base address

Posted: Thu Jan 03, 2019 7:59 am
by pavelectric
1. http://wiki.friendlyarm.com/wiki/index.php/WiringPi_for_RK3399 - section 4.1, pay attention to it.
2. http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4 - section 3.1, pay attention to it.
I myself have not gotten to work with GPIO, but the other day I will try it inapplicable.

Sincerely, Pavel.

Re: NANO M4 GPIO Physical memory map base address

Posted: Thu Jan 03, 2019 8:58 am
by edinsam
Thanks, but that doesn't solve the problem. There is no mention of physical memory map adresses in those references. Nor there is in the WiringPi source code in github (the current sourcecode version doesn't seem to cover the M4)

What I am after is the physical start address of the GPIO block(s), this is the one entered in the mmap() function call. See for example (for the Odroid XU4)

https://wiki.odroid.com/odroid-xu4/appl ... apped_gpio

Regards