How to configure BlueNRG-2 for SPI communication
The BlueNRG-2 has multiple communication protocols available (UART, SPI, I2C). I am planning to use it in a custom PCB and would like to configure it for SPI, which I can only find mentioned in Section 3.8.2.2 "Procedure for enabling SPI" in the BlueNRG-2 Datasheet. How are you supposed to interact with it at this level (to program IO_MODE to route SPI port signals on those GPIOs)? What would the hardware setup look like? For this method, do you use the UART bootloader to program the on-board memory?
I may be wrong, but from what I have read, there are only two ways of configuring it. One way is to use UART and open a COM port, and the other way is by using an ST Link/V2 programmer and connecting it to the SWD pins. Then by using the BlueNRG-2 Flashing Utility to load the DTM_SPI.hex file onto the chip. Is this accurate?
I was wondering if anyone could explain any other options for configuring this chip for use with SPI, or provide any helpful information or resources pertaining to what it seems like I am currently trying to do.
Thank you!
