Hey Santiago,
If the Kwikstik codewarrior project source is proprietary, it would still be nice to know how to use the SPI interface with the BR-SS-S2A module. Since there is no UART module connected to the TWRPI Pins 17-20, SPI is the only remaining option.
I've already contacted Stonestreet support and here is a summary of what I learned thus far:
The K10 SPI CTAR settings are:
Clock polarity : Inactive state value of SCK is Low (CPOL=0)
Clock phase : Data is captured on the leading edge of SCK and changes on the following edge (CPHA=0)
Frame Size : 8 bits (FMSZ=b0111)
MSB of frame is transferred first (LSBFE=0)
Also, the default bit rate is set to achieve 2Mbps at this time. However, it may be set to as high as 10Mbps.
Currently the AT Command firmware looks at the CTS line during power-up after reset and if it’s low (pulled down) it assumes UART and sets up for that. If not, it assumes SPI. For this testing, the pin is set up as an input with pull-up enabled.
There are other unknowns beyond this, such as who as set up as the Master/Slave, that I have yet to uncover.
Please help with setting up the SPI and I can handle learning the AT commands on my own.