cancel
Showing results for 
Search instead for 
Did you mean: 

SPIRIT1 configuration stucks in SpiritVcoCalibration

Gergo Santha
Associate II
Posted on March 01, 2018 at 20:31

Hi everybody,

and greetings as this is my first post here Anyway, I am experimenting with my X-NUCLEO-IDS01A4 Spirit1 expansion board on a NUCLEO-STM32L476RG board. I'd like to write my own SPIRIT1 driver and I'm using the Low Layer library from the STM32CUBE library, no IDE just Sublime and my Makefile and JLINK to debug.

So far I can read and write the SPIRIT1 registers and now I'd like to configure the registers. I've downloaded the SPIRIT1 DK App and I generated a configuration code (868 MHz, data rate 38.4 kbps) containing 2 functions: SpiritBaseConfiguration and SpiritVcoCalibration. The former executes flawlessly, however, the execution stucks in the latter function, here:

SpiritSpiCommandStrobes(COMMAND_LOCKTX);

do{

SpiritSpiReadRegisters(0xC1, 1, &state);

}while((state&0xFE) != 0x1E); /* wait until LOCK (MC_STATE = 0x0F <<1) */

SpiritSpiReadRegisters(0xE5, 1, &cal_words[0]); /* calib out word for TX */

Between the 2 functions I called my 'send ready' functions as noted in the function. Any help would be great.

1 ACCEPTED SOLUTION

Accepted Solutions
Gergo Santha
Associate II
Posted on March 01, 2018 at 20:57

Okay, please nevermind, there was a copy&paste error in one of my SPI macros, the problem is gone.

View solution in original post

1 REPLY 1
Gergo Santha
Associate II
Posted on March 01, 2018 at 20:57

Okay, please nevermind, there was a copy&paste error in one of my SPI macros, the problem is gone.