You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Awesome implimentaion of SPI driver using Raspberry pi.
I started to impliment the same ,while implimenting this in raspberry Pi 4 , i stuck with the problem of execution of Makefile. Below is the error message:
sudo make
make -C /lib/modules/6.1.21-v7l+/build M=/home/mihir/Desktop/SPI modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v7l+'
CC [M] /home/mihir/Desktop/SPI/spi_ssd1306_driver.o
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c: In function ‘etx_spi_init’:
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:12: error: implicit declaration of function ‘spi_busnum_to_master’ [-Werror=implicit-function-declaration]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^~~~~~~~~~~~~~~~~~~~
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:10: warning: assignment to ‘struct spi_controller *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^
cc1: some warnings being treated as errors
make[2]: * [scripts/Makefile.build:250: /home/mihir/Desktop/SPI/spi_ssd1306_driver.o] Error 1
make[1]: * [Makefile:2012: /home/mihir/Desktop/SPI] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v7l+'
make: * [Makefile:8: all] Error 2
Request to suggest solution for the above problem.
The text was updated successfully, but these errors were encountered:
Actually i have found a temporary solution
*Use the older version of the kernel ie. 5.10._____ *
*dont use 6._____*
*i am working on the code for the 6.____ version*
there* is an issue in the .c code when the version changes.*
If u have any further discussions or any issues or any lead do contact me
on linkedin or github itself
Hi,
Awesome implimentaion of SPI driver using Raspberry pi.
I started to impliment the same ,while implimenting this in raspberry Pi 4 , i stuck with the problem of execution of Makefile. Below is the error message:
sudo make
make -C /lib/modules/6.1.21-v7l+/build M=/home/mihir/Desktop/SPI modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v7l+'
CC [M] /home/mihir/Desktop/SPI/spi_ssd1306_driver.o
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c: In function ‘etx_spi_init’:
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:12: error: implicit declaration of function ‘spi_busnum_to_master’ [-Werror=implicit-function-declaration]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^~~~~~~~~~~~~~~~~~~~
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:10: warning: assignment to ‘struct spi_controller *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^
cc1: some warnings being treated as errors
make[2]: * [scripts/Makefile.build:250: /home/mihir/Desktop/SPI/spi_ssd1306_driver.o] Error 1
make[1]: * [Makefile:2012: /home/mihir/Desktop/SPI] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v7l+'
make: * [Makefile:8: all] Error 2
Request to suggest solution for the above problem.
The text was updated successfully, but these errors were encountered: