Hi, I can get ahold of the SPI device and call the spi_transceive function wihtout returning error codes. Logic analyzer shows nothing happening, such as SCK clocking. I am using the NRF52833-DK board.
In pj.conf:
CONFIG_SPI=y
Hi, I can get ahold of the SPI device and call the spi_transceive function wihtout returning error codes. Logic analyzer shows nothing happening, such as SCK clocking. I am using the NRF52833-DK board.
In pj.conf:
CONFIG_SPI=y
Hello,
Kind regards,
Øyvind
Hi Øyvind,
-Are you referring to the .ninja_log? Will provide when certain.
-SDK version is 2.2.0
--Yes, started with 'hello world' for nRF52833. Have 802.15.4, GPIO output, GPIO inputs w/ interrupts, and GPIOTE working
Thank you!
-Ben
Forgot to add this as it shows where the error is being generated:
It looks like I missed some steps in West. I think this can be closed and I have to go back and familiarize myself with the initial env. setup. Thanks for the SPI example though! It was useful.
After realizing I made some dumb mistakes, I have it linking. Figured I'd post in case someone else wants some snippets. Thanks again!
Thanks for sharing, bmalchow ! Happy to hear that you found the solution.
Did you end up getting this code working? I am going to use the same chip and was curious if you had posted your code anywhere? I would love to take a look at it.
Did you end up getting this code working? I am going to use the same chip and was curious if you had posted your code anywhere? I would love to take a look at it.
I did, it works well and reliably. All code is pasted in this thread. Used git post that was recommended as well. Changed these lines as well:
#define MY_SPI_MASTER DT_NODELABEL(canspi)
#define MY_SPI_DEVICE DT_NODELABEL(mcp2517fd)
spi_dev = DEVICE_DT_GET(MY_SPI_MASTER);