You haven't put spaces between the filename and the two libraries so it is thinking the filename is all three strings concatenated. It should be
Code: Select all
gcc -Wall -o "%e" "%f" -lm -lbcm2835
Since at this moment in time the only thing we know about this program is that one #include <bcm2835.h> line, the seg fault could be from anywhere in your program and the only person who can see the source code is you. Without being able to see any of the code how do you expect us to help you?
Had you called bcm2835_init() earlier in your program, if so did it return 0? If you didn't call it or it returned 0 then the library hasn't been initialised and the other functions are likely to cause seg faults as they will end up writing to invalid addresses.
No idea... Are you looking in the correct location?harishreddy wrote: ↑Fri Oct 05, 2018 4:49 am2.All our applications i.e., programs(.c files ) will reside on SD card or Processor inbuilt memory????????Please answer the query.we tried to open the SD card with a card reader in laptop all the boot and recovery section appeared but no .c files.Why?????
Yes. If power is cut ant random at least 3 significant things can happen....If any power ON&OFF condition is there any chance of corrupting of SD card.
If the file system on your SD is still readable there are a few ways to go.In any case,if corrupted please help us how to recover the Files over the sd card.
Because the root file system of Raspbian is a Linux ext4 format. Windows is to primitive to understand such things. Hence the need for LFSW. See above....we tried to open the SD card with a card reader in laptop all the boot and recovery section appeared but no .c files.Why?????
You applications will reside on SD card. It also possible to boot some Pi from USB stick or USB connected SSD/hard drive.All our applications i.e., programs(.c files ) will reside on SD card or Processor inbuilt memory
So your Pi does boot and you can login to it using SSH. If you are logged in a "pi" or other non-root user you will need to get root prividges to many things. Use the "sudo" command for this: For example:by using WINSCP application we are able to access the PI directory from windows but not ROOT directory.why so??