- This topic has 1 reply, 2 voices, and was last updated 9 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › Raspberry Pi › Raspberry PI GPIO pin execution error
I was doing a basic LED on off operation on raspberry pi using GPIO pins
i reffered to the following article on EG,
http://www.engineersgarage.com/embedded/raspberry-pi/how-to-blink-led-using-raspberry-pi
compilation is successful
but whenever i execute the binary file by using the command : ./led2
(led2 is the filename)
following error is displayed on the terminal
bcm2835_init: Unable to open /dev/mem: Permission denied
Hi Rohit
This Problem is due to the permission error. Check these key points
Make sure that u placed the /home/pi folder.
You can directly download the zip file to the /home/pi folder using "wget" followed by the link to download the zip file and follow by the commands in the tutorial.
You can try "sudo./blink"