I am working on a device driver for the W25Q128JV flash device. This is the first SPI device I've used with the nRF52840. I had some observations and questions about SPI programming on this mcu.
I am working on a device driver for the W25Q128JV flash device. This is the first SPI device I've used with the nRF52840. I had some observations and questions about SPI programming on this mcu.
I made some logical updates which make the code make more sense to me. This handles the offset issue I described previously.
I made some logical updates which make the code make more sense to me. This handles the offset issue I described previously.
Here is a overview of the MAXCNT registers for peripherals on each 52 chip: https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52.html?cp=4
Using nrfx_spi supports longer transfers but since it is legacy SPI peripheral the CPU need to be updated the byte that is sendt\received for each byte.
nrfx_spim will allow you to use 16bit lengths, (65535 bytes) per transfer.
Regards,
Jonathan