2018-04-03 09:56 PM
Hi,
First of all, sorry for the lengthy message.
We are developing a 433 MHz transceiver using SPIRIT1. We were able to run 'SDK_BasicGenreic_A' program provided with the development kit on 'STEVAL-IKR002V3D' daughter-board. But, when we are trying to dump the same code in our own board, SPIRIT1 is unable to enter into 'LOCK' state. We have ensured that the following conditions are met:
1) SPI communication is working (able to read and write to SPIRIT1 registers)
2) 50 MHz sinusoidal signal got generated at crystal's terminals (observed using DSO)
3) SPIRIT1 is entering into 'STANDBY' and 'READY' modes (checked MC_STATE1_BASE register status)
We have compared all the register values at various stages of the code with those of the reference board's registers. All of them are
exactly the same
, except for '0xB2
', which should have been changed to 0xCA, but still is 0x42 (default value).The major difference is occurring, when we executed '
SpiritCmdStrobeLockTx()
' command, whose path in 'SPIRIT Library' is provided below:SpiritRadioInit() => SpiritRadioSetFrequencyBase() => SpiritManagementWaVcoCalibration() => SpiritCmdStrobeLockTx()
After this command, several registers got changed in case of '
'
STEVAL-IKR002V3D'', whereas in our board, only few registers got changed. The differences are shown below in CSV format:
Register,STEVAL (Hex),Our Board (Hex),STEVAL (binary),STEVAL (binary)
2,2,a2,10,101000103,aa,a2,10101010,101000104,aa,a2,10101010,101000107,2a,a3,101010,101000118,0a,0c,1010,11009,d4,84,11010100,10000100A,55,ec,1010101,11101100B,94,51,10010100,1010001C,0a,fc,1010,11111100D,aa,a3,10101010,1010001110,2,3,10,1111,0a,0e,1010,111012,14,1a,10100,1101013,2a,25,101010,10010114,2a,35,101010,11010115,54,40,1010100,100000016,55,4e,1010101,100111018,4,7,100,1111A,94,83,10010100,100000111B,0a,1a,1010,110101C,55,45,1010101,10001011D,15,23,10101,1000111E,d5,48,11010101,10010001F,15,18,10101,1100020,2a,25,101010,10010121,d4,e3,11010100,1110001122,2a,24,101010,10010023,54,58,1010100,101100024,2a,22,101010,10001025,54,62,1010100,110001027,4,5,100,10128,0a,0,1010,031,4,7,100,11132,14,1e,10100,1111033,2a,20,101010,10000036,8a,88,10001010,1000100037,8a,88,10001010,1000100038,8a,88,10001010,1000100039,8a,88,10001010,100010003B,2a,20,101010,1000003C,2a,20,101010,1000003E,2a,30,101010,1100003F,2a,30,101010,11000040,28,30,101000,11000041,28,30,101000,11000044,2,0,10,04D,0a,0,1010,04F,54,70,1010100,111000050,0,2,0,1053,0,1,0,154,4,0,100,055,0,1,0,157,0,1,0,159,2,3,10,1160,8,0,1000,064,d4,ff,11010100,111111116D,54,70,1010100,11100006E,54,48,1010100,10010006F,54,48,1010100,100100099,80,8,10000000,10009A,e3,f7,11100011,111101119E,db,5b,11011011,10110119F,a0,20,10100000,100000A1,25,11,100101,10001A3,35,37,110101,110111B2,ca,42,11001010,1000010BC,22,4,100010,100C1,1f,7,11111,111E5,40,0,1000000,0FA,2,0,10,0FB,6f,0d,1101111,1101Could you please let us know what could be the problem that it is preventing our board entering into LOCK mode?
Thanks & Regards,
S. R. Zinka
============================================================
P.S. We think that the problem could be with SMPS power supply! S
omeone mentioned about a similar problem in another forum message, where the issue got resolved by providing external power to the SMPS IN pin. At least in their case, they were able to enter LOCKWON state, whereas we are unable to enter into that state too.
Please find the attached file, containing the values of all the registers
before and after
SpiritCmdStrobeLockTx() command.#register #lock #spirit1 #smps