2020-12-09 04:55 AM
Hi its me again,
I'm told that i need to use SX1280 Transceiver with a STM32MP157A-DK1 (using ARM Cortex A-7 coding in C/C++) for SPI connection, im gonna take that SPI data and save it into a .txt file. Saving it into txt file is the easy, right now i can write given pre-made string into a txt file and save it on the Board. But i actually dont understands how to access/use SPI. i've looked and made some research about SPI in these sites and many more:
https://www.semtech.com/products/wireless-rf/24-ghz-transceivers/sx1280 (the transmitter)
https://www.analog.com/en/analog-dialogue/articles/introduction-to-spi-interface.html#
https://www.kernel.org/doc/Documentation/spi/spi-summary
then i was told that if im gonna use this transmitter then i need to use this driver in my project:
https://github.com/YukiWorkshop/sx128x_linux_driver
which is the real confusing part for me, i can't managed to use this driver. It has some example codes in it (the Test.cpp) but i cant build them and i got several build errors.
Then i found this following pages :
https://wiki.st.com/stm32mpu/wiki/SPI_overview#Kernel_configuration
https://wiki.st.com/stm32mpu/wiki/How_to_use_SPI_from_Linux_userland_with_spidev#pnl-glhvfb87ri
Can i use this to communicate to receive and transmit data with SX1280?
2023-01-23 07:42 AM
yes you can do it. SX1280 is slave and STM32MPU is master right? You have to modify the DT on A7 side
Regards,
R