Go to advanced search

by Mr. R.
Mon Feb 26, 2018 7:03 pm
Forum: C/C++
Topic: problem mmapping GPIO-Pins
Replies: 6
Views: 1117

Re: problem mmapping GPIO-Pins

joan wrote:
Mon Feb 26, 2018 6:41 pm
The peripherals base physical address depends on the Pi model. All but Pi3 is 0x20000000. Pi3 is 0x3F000000. Not sure where you "officially" find that address.
but i have a rp 2 here and only 0x3F000000 works. wtf?
by Mr. R.
Mon Feb 26, 2018 5:38 pm
Forum: C/C++
Topic: problem mmapping GPIO-Pins
Replies: 6
Views: 1117

Re: problem mmapping GPIO-Pins

ok thank you. i've read the links and found out that the gpio base address is 0x3f2000000 and it works!

theres just one question left (or maybe its two): where can i find this address in the manuals or what do i have to look for?
by Mr. R.
Sun Jan 21, 2018 4:52 pm
Forum: C/C++
Topic: problem mmapping GPIO-Pins
Replies: 6
Views: 1117

problem mmapping GPIO-Pins

hi there i'm trying to let an led switch on and off and somehow it doesn't work and i would like to ask you what's wrong. hardware: raspberry pi 2 model b v 1.1 (bcm2836) code: #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <sys/mman.h> #include <errno.h> #include <stdint.h> int ...

Go to advanced search