Sorry if this is a repeat. A search did not uncover an answer for me.
Has anyone used successfully used SPI with the bcm2835 library with the RPi 2 yet? My program is exiting from the bcm2835_spi_begin() function with code 139. I have not found anything in the bcm2835.c or bcm2835.h code that would return 139. I have used raspi-config to make sure the SPI module is enabled and have rebooted. I'm wondering if anyone else has had this problem. I traced the problem to the bcm2835_spi_begin() function by surrounding each function call with printf messages.
I am using version 1.42 of bcm2835.
Thanks in advance.