SPI Problems, Pyboard


#1

Hi,
I’m trying to set up the LMS7002M over the SPI interface of a pyboard and can’t get it to either write to or read from any of the registers.

I’m taking my SPI output from the pyboard to the relevant pins of the J7 connector on the EVBv3 evaluation board and have verified my SCLK, MOSI, MISO and SEN lines are reproducing what the MCU is producing, but still getting no response from the LMS7002M. I’m making sure the LMS7002M isn’t reseting by holding its RESET line high, tried various combinations of resetting the onboard MCU, powering only the USB +5V but still nothing. Any suggestions?

Thanks,
Rory


#2

Still Not found a solution,

Has anyone else had any success/problems controlling the LMS7002M via external SPI through the J7 Connector on the evaluation board?


#3

Hello,

I hope your problem is solved by now, we are facing SPI issues too.
We are able to read/write from/to LMS7002 via SPI, but when we write the values of the registers in the .ini file the LMS will be still not configured.

Regards ,


#4

@zack ?


#5

As far as I understand, you are trying to communicate with LMS7002M via J7 via SPI instead of USB. Few questions:

  1. How exactly board is powered up?
  2. What is JP2 jumper position?
  3. You have to hold on board USB MCU in reset state to be able to communicate via J7. There is a double switch next to the USB connector. Switch RST key to the opposite position to put MCU to reset.

#6

Hello @Zack,

1- External Power supply, 5V and initial current ~0.4A.
2- JP2 is set to 5-6
3- Switched to the opposite


#7

Hi @Fahad,
And what is the result? Now you should be able to use SPI communication via J7. Just make sure that J7.44 pin (RESET) is high.


#8

Hello dear @Zack,

I appreciate your quick responses, I postponed my reply yesterday just to bring Osclliscope screenshots along with it.

Here is the results of the attempts to reading the register 0x23, we are sending the command 0x00-0x23-0x00-0x00 via SPI and here what we’ve got:

Green = LMS SDO
Yellow = Altera SoC CS

1- We always get 0s in this case
(RESET switch has been switched ON and OFF with play no significant role here at all)

2- So we tried to force the input CS in the LMS to GND all the time, and we get a good responses, yet the voltage level seems to be a bit low, bu ONLY for the 1st time
(RESET switch has been switched ON and OFF with play no significant role here at all)

3- Since then we always get this result with negative voltage
(RESET switch has been switched ON and OFF with play no significant role here at all)


It will keep repling with this result of negative value, until we the CS is disconnected from GND and put back to Vdd then put it back again to GND again, by that we will get the result #2 only once, and again all what we get is the result #3 only.

4- when J7.44 RESET pin is connected to GND
(RESET switch has been switched ON and OFF with play no significant role here at all)

Hope that clarify something?

Regards ,


#9

Hello @Fahad,

It is not visible from your diagrams, but I suspect that SEN line goes high every 8 SCLK cycles. If this is a case, then this is causing all your problems. You have to hold SEN line low for at least 32 SCLK (i.e. one SPI transaction) clock cycles. Check SPI diagrams in LMS7002M datasheet, page 15 for reference.


#10

Hello dear @Zack,

Exactly, I guess this is how the SPI works in our platform, but since we suspected that, we will implement our own SEN manually that goes LOW for 32 clock cycle and see.

Thanx for your reply, we will be back with the the results.

Regards ,


#11

Hello Dear @Zack,

We are back after modifying the CS pin from being deactivated every 32 clock cycles instead of 8 clock cycles to meet the datasheet timing diagram, yet, we think the LMS is still not configured probbably!

We think the SPI commands are written successfully. We used to write a value to a register, and then we read that register to figure out the value has been written successfully.
Then we trasmit the question is How to know whether the LMS is configured probably or not?
We use J7.MCLK as an indicator for a successful configuration, if the LMS is configured successfully by LMS Suit, the J7.MKLC will start the clock pulses immediatly.
So we disconnect the USB, restart the LMS, try to configure the LMS via SPI, and see whether the J7.MCLK is pulsing or not. Unfortunatly J7.MKLC is pulsing only if it was configured by the LMS Suit, but not by the SPI!
Here are some screenshots that show the behave of the SPI lines.

Single Read Command
(RED: CS - GREEN: SCLK - BLUE: MOSI)




(0x00 0x23 0x00 0x00)







Writing All the Registers from .ini file to the LMS (0x8r 0xrr 0xvv 0xvv)
r: register address - v: register value
(RED: CS - GREEN: SCLK - BLUE: MOSI)



(0x80 0x23 0x01 0x01)







Writing all the registers from .ini file to the LMS (0x8r 0xrr 0xvv 0xvv)
r: register address - v: register value
(RED: CS - GREEN: SCLK - BLUE: MISO)



LMS acknowledged 0s, which sounds good

Tomorrow is our weekend, but I’m gonna be in the office if you have any suggestion.

Regards ,


#12

Hello @Fahad,

You said you are writing content of ini file to the LMS7002M. Are you sure you switching MAC register when configuring A and B channels? Here is an explanation in Programming and Calibration Guide, check section 2.1.


#13

Hello @Zack,

We see how the MAC bits [1:0] are choosing which channel (A or B) to be configured, but since we care about channel A only, we just ignored changing its value.

The default value of the Reg 20 in the ini file was 0x0001, which means MAC[1:0]:
01 – SPI read/write operation possible. Data may be written to or read from the MIMO
channel A only.

We tried all the scenarios and we modified the value of the MAC bits in the Reg #20 in the ini file. We tried, 11, 01 and 10, the values are written successfully and here are the readings to make sure:

(RED: CS - GREEN: SCLK - BLUE: MISO)

MAC = 01

MAC = 10

MAC = 11

Again, after we transmit the ini file, we look at the J7.MCLK whether it is pulsing or not to see whther the configuration has been done successfully or not, is it a valid mechanism?

Unfortunately, the ini file is not authorized to be attached, and thanks in advanced, so here it is:

[file_info]
type=lms7002m_minimal_config
version=1
[lms7002_registers_a]
0x0020=0x0002
0x0021=0x0E9F
0x0022=0x07FF
0x0023=0x5570
0x0024=0x50D2
0x0025=0x0101
0x0026=0x0101
0x0027=0x50E8
0x0028=0x0101
0x0029=0x0101
0x002A=0x0086
0x002B=0x0038
0x002C=0x0000
0x002D=0x0005
0x002E=0x0000
0x002F=0x3840
0x0081=0x0000
0x0082=0x8001
0x0084=0x0280
0x0085=0x0001
0x0086=0x4101
0x0087=0x0000
0x0088=0x0568
0x0089=0x1538
0x008A=0x0514
0x008B=0x21B6
0x008C=0x267B
0x0092=0x0001
0x0093=0x0000
0x0094=0x0000
0x0095=0x0000
0x0096=0x0000
0x0097=0x0000
0x0098=0x0000
0x0099=0x6565
0x009A=0x658C
0x009B=0x6565
0x009C=0x658C
0x009D=0x6565
0x009E=0x658C
0x009F=0x658C
0x00A0=0x6565
0x00A1=0x6565
0x00A2=0x6565
0x00A3=0x6565
0x00A4=0x6565
0x00A5=0x6565
0x00A6=0x0001
0x00A7=0x6565
0x00A8=0x0000
0x00A9=0x0000
0x00AA=0x0000
0x00AB=0x0000
0x00AC=0x0000
0x00AD=0x0000
0x00AE=0x0000
0x0100=0x0409
0x0101=0x7800
0x0102=0x3180
0x0103=0x0A12
0x0104=0x00CC
0x0105=0x0017
0x0106=0x3182
0x0107=0x318C
0x0108=0x9442
0x0109=0x0091
0x010A=0x1FFF
0x010C=0xCC61
0x010D=0x011A
0x010E=0x060C
0x010F=0x3042
0x0110=0x0BF4
0x0111=0x0083
0x0112=0xE066
0x0113=0x03C3
0x0114=0x008D
0x0115=0x0009
0x0116=0x8180
0x0117=0x280C
0x0118=0x018C
0x0119=0x18C9
0x011A=0x2E02
0x011C=0xA941
0x011D=0x0000
0x011E=0x0984
0x011F=0x3680
0x0120=0xB9FF
0x0121=0x3650
0x0122=0x033F
0x0123=0x267B
0x0124=0x0000
0x0200=0x0281
0x0201=0x07FF
0x0202=0x07FF
0x0203=0x0000
0x0204=0x6C60
0x0205=0x0000
0x0206=0x0000
0x0207=0x0000
0x0208=0x41F0
0x0209=0x0000
0x020A=0x0080
0x020B=0x4000
0x020C=0x7FFF
0x0240=0x0020
0x0241=0x0000
0x0242=0x0000
0x0243=0x0000
0x0244=0x0000
0x0245=0x0000
0x0246=0x0000
0x0247=0x0000
0x0248=0x0000
0x0249=0x0000
0x024A=0x0000
0x024B=0x0000
0x024C=0x0000
0x024D=0x0000
0x024E=0x0000
0x024F=0x0000
0x0250=0x0000
0x0251=0x0000
0x0252=0x0000
0x0253=0x0000
0x0254=0x0000
0x0255=0x0000
0x0256=0x0000
0x0257=0x0000
0x0258=0x0000
0x0259=0x0000
0x025A=0x0000
0x025B=0x0000
0x025C=0x0000
0x025D=0x0000
0x025E=0x0000
0x025F=0x0000
0x0260=0x0000
0x0261=0x0000
0x0280=0x0000
0x0281=0x0000
0x0282=0x0000
0x0283=0x0000
0x0284=0x0000
0x0285=0x0000
0x0286=0x0000
0x0287=0x0000
0x0288=0x0000
0x0289=0x0000
0x028A=0x0000
0x028B=0x0000
0x028C=0x0000
0x028D=0x0000
0x028E=0x0000
0x028F=0x0000
0x0290=0x0000
0x0291=0x0000
0x0292=0x0000
0x0293=0x0000
0x0294=0x0000
0x0295=0x0000
0x0296=0x0000
0x0297=0x0000
0x0298=0x0000
0x0299=0x0000
0x029A=0x0000
0x029B=0x0000
0x029C=0x0000
0x029D=0x0000
0x029E=0x0000
0x029F=0x0000
0x02A0=0x0000
0x02A1=0x0000
0x02A2=0x0000
0x02A3=0x0000
0x02A4=0x0000
0x02A5=0x0000
0x02A6=0x0000
0x02A7=0x0000
0x02C0=0x0000
0x02C1=0x0000
0x02C2=0x0000
0x02C3=0x0000
0x02C4=0x0000
0x02C5=0x0000
0x02C6=0x0000
0x02C7=0x0000
0x02C8=0x0000
0x02C9=0x0000
0x02CA=0x0000
0x02CB=0x0000
0x02CC=0x0000
0x02CD=0x0000
0x02CE=0x0000
0x02CF=0x0000
0x02D0=0x0000
0x02D1=0x0000
0x02D2=0x0000
0x02D3=0x0000
0x02D4=0x0000
0x02D5=0x0000
0x02D6=0x0000
0x02D7=0x0000
0x02D8=0x0000
0x02D9=0x0000
0x02DA=0x0000
0x02DB=0x0000
0x02DC=0x0000
0x02DD=0x0000
0x02DE=0x0000
0x02DF=0x0000
0x02E0=0x0000
0x02E1=0x0000
0x02E2=0x0000
0x02E3=0x0000
0x02E4=0x0000
0x02E5=0x0000
0x02E6=0x0000
0x02E7=0x0000
0x0300=0x0000
0x0301=0x0000
0x0302=0x0000
0x0303=0x0000
0x0304=0x0000
0x0305=0x0000
0x0306=0x0000
0x0307=0x0000
0x0308=0x0000
0x0309=0x0000
0x030A=0x0000
0x030B=0x0000
0x030C=0x0000
0x030D=0x0000
0x030E=0x0000
0x030F=0x0000
0x0310=0x0000
0x0311=0x0000
0x0312=0x0000
0x0313=0x0000
0x0314=0x0000
0x0315=0x0000
0x0316=0x0000
0x0317=0x0000
0x0318=0x0000
0x0319=0x0000
0x031A=0x0000
0x031B=0x0000
0x031C=0x0000
0x031D=0x0000
0x031E=0x0000
0x031F=0x0000
0x0320=0x0000
0x0321=0x0000
0x0322=0x0000
0x0323=0x0000
0x0324=0x0000
0x0325=0x0000
0x0326=0x0000
0x0327=0x0000
0x0340=0x0000
0x0341=0x0000
0x0342=0x0000
0x0343=0x0000
0x0344=0x0000
0x0345=0x0000
0x0346=0x0000
0x0347=0x0000
0x0348=0x0000
0x0349=0x0000
0x034A=0x0000
0x034B=0x0000
0x034C=0x0000
0x034D=0x0000
0x034E=0x0000
0x034F=0x0000
0x0350=0x0000
0x0351=0x0000
0x0352=0x0000
0x0353=0x0000
0x0354=0x0000
0x0355=0x0000
0x0356=0x0000
0x0357=0x0000
0x0358=0x0000
0x0359=0x0000
0x035A=0x0000
0x035B=0x0000
0x035C=0x0000
0x035D=0x0000
0x035E=0x0000
0x035F=0x0000
0x0360=0x0000
0x0361=0x0000
0x0362=0x0000
0x0363=0x0000
0x0364=0x0000
0x0365=0x0000
0x0366=0x0000
0x0367=0x0000
0x0380=0x0000
0x0381=0x0000
0x0382=0x0000
0x0383=0x0000
0x0384=0x0000
0x0385=0x0000
0x0386=0x0000
0x0387=0x0000
0x0388=0x0000
0x0389=0x0000
0x038A=0x0000
0x038B=0x0000
0x038C=0x0000
0x038D=0x0000
0x038E=0x0000
0x038F=0x0000
0x0390=0x0000
0x0391=0x0000
0x0392=0x0000
0x0393=0x0000
0x0394=0x0000
0x0395=0x0000
0x0396=0x0000
0x0397=0x0000
0x0398=0x0000
0x0399=0x0000
0x039A=0x0000
0x039B=0x0000
0x039C=0x0000
0x039D=0x0000
0x039E=0x0000
0x039F=0x0000
0x03A0=0x0000
0x03A1=0x0000
0x03A2=0x0000
0x03A3=0x0000
0x03A4=0x0000
0x03A5=0x0000
0x03A6=0x0000
0x03A7=0x0000
0x0400=0x6301
0x0401=0x07FF
0x0402=0x07FF
0x0403=0x0000
0x0404=0x0000
0x0405=0x0000
0x0406=0x0000
0x0407=0x0000
0x0408=0x0000
0x0409=0x0000
0x040A=0x0007
0x040B=0x000F
0x040C=0x40F8
0x040D=0x0000
0x040E=0x0000
0x040F=0x0000
0x0440=0x0000
0x0441=0x0000
0x0442=0x0000
0x0443=0x0000
0x0444=0x0000
0x0445=0x0000
0x0446=0x0000
0x0447=0x0000
0x0448=0x0000
0x0449=0x0000
0x044A=0x0000
0x044B=0x0000
0x044C=0x0000
0x044D=0x0000
0x044E=0x0000
0x044F=0x0000
0x0450=0x0000
0x0451=0x0000
0x0452=0x0000
0x0453=0x0000
0x0454=0x0000
0x0455=0x0000
0x0456=0x0000
0x0457=0x0000
0x0458=0x0000
0x0459=0x0000
0x045A=0x0000
0x045B=0x0000
0x045C=0x0000
0x045D=0x0000
0x045E=0x0000
0x045F=0x0000
0x0460=0x0000
0x0461=0x0000
0x0480=0x0000
0x0481=0x0000
0x0482=0x0000
0x0483=0x0000
0x0484=0x0000
0x0485=0x0000
0x0486=0x0000
0x0487=0x0000
0x0488=0x0000
0x0489=0x0000
0x048A=0x0000
0x048B=0x0000
0x048C=0x0000
0x048D=0x0000
0x048E=0x0000
0x048F=0x0000
0x0490=0x0000
0x0491=0x0000
0x0492=0x0000
0x0493=0x0000
0x0494=0x0000
0x0495=0x0000
0x0496=0x0000
0x0497=0x0000
0x0498=0x0000
0x0499=0x0000
0x049A=0x0000
0x049B=0x0000
0x049C=0x0000
0x049D=0x0000
0x049E=0x0000
0x049F=0x0000
0x04A0=0x0000
0x04A1=0x0000
0x04A2=0x0000
0x04A3=0x0000
0x04A4=0x0000
0x04A5=0x0000
0x04A6=0x0000
0x04A7=0x0000
0x04C0=0x0000
0x04C1=0x0000
0x04C2=0x0000
0x04C3=0x0000
0x04C4=0x0000
0x04C5=0x0000
0x04C6=0x0000
0x04C7=0x0000
0x04C8=0x0000
0x04C9=0x0000
0x04CA=0x0000
0x04CB=0x0000
0x04CC=0x0000
0x04CD=0x0000
0x04CE=0x0000
0x04CF=0x0000
0x04D0=0x0000
0x04D1=0x0000
0x04D2=0x0000
0x04D3=0x0000
0x04D4=0x0000
0x04D5=0x0000
0x04D6=0x0000
0x04D7=0x0000
0x04D8=0x0000
0x04D9=0x0000
0x04DA=0x0000
0x04DB=0x0000
0x04DC=0x0000
0x04DD=0x0000
0x04DE=0x0000
0x04DF=0x0000
0x04E0=0x0000
0x04E1=0x0000
0x04E2=0x0000
0x04E3=0x0000
0x04E4=0x0000
0x04E5=0x0000
0x04E6=0x0000
0x04E7=0x0000
0x0500=0x0000
0x0501=0x0000
0x0502=0x0000
0x0503=0x0000
0x0504=0x0000
0x0505=0x0000
0x0506=0x0000
0x0507=0x0000
0x0508=0x0000
0x0509=0x0000
0x050A=0x0000
0x050B=0x0000
0x050C=0x0000
0x050D=0x0000
0x050E=0x0000
0x050F=0x0000
0x0510=0x0000
0x0511=0x0000
0x0512=0x0000
0x0513=0x0000
0x0514=0x0000
0x0515=0x0000
0x0516=0x0000
0x0517=0x0000
0x0518=0x0000
0x0519=0x0000
0x051A=0x0000
0x051B=0x0000
0x051C=0x0000
0x051D=0x0000
0x051E=0x0000
0x051F=0x0000
0x0520=0x0000
0x0521=0x0000
0x0522=0x0000
0x0523=0x0000
0x0524=0x0000
0x0525=0x0000
0x0526=0x0000
0x0527=0x0000
0x0540=0x0000
0x0541=0x0000
0x0542=0x0000
0x0543=0x0000
0x0544=0x0000
0x0545=0x0000
0x0546=0x0000
0x0547=0x0000
0x0548=0x0000
0x0549=0x0000
0x054A=0x0000
0x054B=0x0000
0x054C=0x0000
0x054D=0x0000
0x054E=0x0000
0x054F=0x0000
0x0550=0x0000
0x0551=0x0000
0x0552=0x0000
0x0553=0x0000
0x0554=0x0000
0x0555=0x0000
0x0556=0x0000
0x0557=0x0000
0x0558=0x0000
0x0559=0x0000
0x055A=0x0000
0x055B=0x0000
0x055C=0x0000
0x055D=0x0000
0x055E=0x0000
0x055F=0x0000
0x0560=0x0000
0x0561=0x0000
0x0562=0x0000
0x0563=0x0000
0x0564=0x0000
0x0565=0x0000
0x0566=0x0000
0x0567=0x0000
0x0580=0x0000
0x0581=0x0000
0x0582=0x0000
0x0583=0x0000
0x0584=0x0000
0x0585=0x0000
0x0586=0x0000
0x0587=0x0000
0x0588=0x0000
0x0589=0x0000
0x058A=0x0000
0x058B=0x0000
0x058C=0x0000
0x058D=0x0000
0x058E=0x0000
0x058F=0x0000
0x0590=0x0000
0x0591=0x0000
0x0592=0x0000
0x0593=0x0000
0x0594=0x0000
0x0595=0x0000
0x0596=0x0000
0x0597=0x0000
0x0598=0x0000
0x0599=0x0000
0x059A=0x0000
0x059B=0x0000
0x059C=0x0000
0x059D=0x0000
0x059E=0x0000
0x059F=0x0000
0x05A0=0x0000
0x05A1=0x0000
0x05A2=0x0000
0x05A3=0x0000
0x05A4=0x0000
0x05A5=0x0000
0x05A6=0x0000
0x05A7=0x0000
[lms7002_registers_b]
0x0100=0x3409
0x0101=0x7800
0x0102=0x3180
0x0103=0x0A12
0x0104=0x0088
0x0105=0x0007
0x0106=0x3182
0x0107=0x318C
0x0108=0x9442
0x0109=0x61C1
0x010A=0x104C
0x010C=0x88FD
0x010D=0x009E
0x010E=0x2040
0x010F=0x3042
0x0110=0x0BF4
0x0111=0x0083
0x0112=0xC0E6
0x0113=0x03C3
0x0114=0x008D
0x0115=0x0009
0x0116=0x8180
0x0117=0x280C
0x0118=0x018C
0x0119=0x18CB
0x011A=0x2E02
0x011C=0xA941
0x011D=0x0000
0x011E=0x0984
0x011F=0x3680
0x0120=0xB9FF
0x0121=0x3648
0x0122=0x033F
0x0123=0x267B
0x0124=0x0000
0x0200=0x0085
0x0201=0x07FF
0x0202=0x07FF
0x0203=0x0000
0x0204=0x0000
0x0205=0x0000
0x0206=0x0000
0x0207=0x0000
0x0208=0x0000
0x0209=0x0000
0x020A=0x0080
0x020B=0x4000
0x020C=0x7FFF
0x0240=0x0020
0x0241=0x0000
0x0242=0x0000
0x0243=0x0000
0x0244=0x0000
0x0245=0x0000
0x0246=0x0000
0x0247=0x0000
0x0248=0x0000
0x0249=0x0000
0x024A=0x0000
0x024B=0x0000
0x024C=0x0000
0x024D=0x0000
0x024E=0x0000
0x024F=0x0000
0x0250=0x0000
0x0251=0x0000
0x0252=0x0000
0x0253=0x0000
0x0254=0x0000
0x0255=0x0000
0x0256=0x0000
0x0257=0x0000
0x0258=0x0000
0x0259=0x0000
0x025A=0x0000
0x025B=0x0000
0x025C=0x0000
0x025D=0x0000
0x025E=0x0000
0x025F=0x0000
0x0260=0x0000
0x0261=0x0000
0x0280=0x0000
0x0281=0x0000
0x0282=0x0000
0x0283=0x0000
0x0284=0x0000
0x0285=0x0000
0x0286=0x0000
0x0287=0x0000
0x0288=0x0000
0x0289=0x0000
0x028A=0x0000
0x028B=0x0000
0x028C=0x0000
0x028D=0x0000
0x028E=0x0000
0x028F=0x0000
0x0290=0x0000
0x0291=0x0000
0x0292=0x0000
0x0293=0x0000
0x0294=0x0000
0x0295=0x0000
0x0296=0x0000
0x0297=0x0000
0x0298=0x0000
0x0299=0x0000
0x029A=0x0000
0x029B=0x0000
0x029C=0x0000
0x029D=0x0000
0x029E=0x0000
0x029F=0x0000
0x02A0=0x0000
0x02A1=0x0000
0x02A2=0x0000
0x02A3=0x0000
0x02A4=0x0000
0x02A5=0x0000
0x02A6=0x0000
0x02A7=0x0000
0x02C0=0x0000
0x02C1=0x0000
0x02C2=0x0000
0x02C3=0x0000
0x02C4=0x0000
0x02C5=0x0000
0x02C6=0x0000
0x02C7=0x0000
0x02C8=0x0000
0x02C9=0x0000
0x02CA=0x0000
0x02CB=0x0000
0x02CC=0x0000
0x02CD=0x0000
0x02CE=0x0000
0x02CF=0x0000
0x02D0=0x0000
0x02D1=0x0000
0x02D2=0x0000
0x02D3=0x0000
0x02D4=0x0000
0x02D5=0x0000
0x02D6=0x0000
0x02D7=0x0000
0x02D8=0x0000
0x02D9=0x0000
0x02DA=0x0000
0x02DB=0x0000
0x02DC=0x0000
0x02DD=0x0000
0x02DE=0x0000
0x02DF=0x0000
0x02E0=0x0000
0x02E1=0x0000
0x02E2=0x0000
0x02E3=0x0000
0x02E4=0x0000
0x02E5=0x0000
0x02E6=0x0000
0x02E7=0x0000
0x0300=0x0000
0x0301=0x0000
0x0302=0x0000
0x0303=0x0000
0x0304=0x0000
0x0305=0x0000
0x0306=0x0000
0x0307=0x0000
0x0308=0x0000
0x0309=0x0000
0x030A=0x0000
0x030B=0x0000
0x030C=0x0000
0x030D=0x0000
0x030E=0x0000
0x030F=0x0000
0x0310=0x0000
0x0311=0x0000
0x0312=0x0000
0x0313=0x0000
0x0314=0x0000
0x0315=0x0000
0x0316=0x0000
0x0317=0x0000
0x0318=0x0000
0x0319=0x0000
0x031A=0x0000
0x031B=0x0000
0x031C=0x0000
0x031D=0x0000
0x031E=0x0000
0x031F=0x0000
0x0320=0x0000
0x0321=0x0000
0x0322=0x0000
0x0323=0x0000
0x0324=0x0000
0x0325=0x0000
0x0326=0x0000
0x0327=0x0000
0x0340=0x0000
0x0341=0x0000
0x0342=0x0000
0x0343=0x0000
0x0344=0x0000
0x0345=0x0000
0x0346=0x0000
0x0347=0x0000
0x0348=0x0000
0x0349=0x0000
0x034A=0x0000
0x034B=0x0000
0x034C=0x0000
0x034D=0x0000
0x034E=0x0000
0x034F=0x0000
0x0350=0x0000
0x0351=0x0000
0x0352=0x0000
0x0353=0x0000
0x0354=0x0000
0x0355=0x0000
0x0356=0x0000
0x0357=0x0000
0x0358=0x0000
0x0359=0x0000
0x035A=0x0000
0x035B=0x0000
0x035C=0x0000
0x035D=0x0000
0x035E=0x0000
0x035F=0x0000
0x0360=0x0000
0x0361=0x0000
0x0362=0x0000
0x0363=0x0000
0x0364=0x0000
0x0365=0x0000
0x0366=0x0000
0x0367=0x0000
0x0380=0x0000
0x0381=0x0000
0x0382=0x0000
0x0383=0x0000
0x0384=0x0000
0x0385=0x0000
0x0386=0x0000
0x0387=0x0000
0x0388=0x0000
0x0389=0x0000
0x038A=0x0000
0x038B=0x0000
0x038C=0x0000
0x038D=0x0000
0x038E=0x0000
0x038F=0x0000
0x0390=0x0000
0x0391=0x0000
0x0392=0x0000
0x0393=0x0000
0x0394=0x0000
0x0395=0x0000
0x0396=0x0000
0x0397=0x0000
0x0398=0x0000
0x0399=0x0000
0x039A=0x0000
0x039B=0x0000
0x039C=0x0000
0x039D=0x0000
0x039E=0x0000
0x039F=0x0000
0x03A0=0x0000
0x03A1=0x0000
0x03A2=0x0000
0x03A3=0x0000
0x03A4=0x0000
0x03A5=0x0000
0x03A6=0x0000
0x03A7=0x0000
0x0400=0x0081
0x0401=0x07FF
0x0402=0x07FF
0x0403=0x0000
0x0404=0x0000
0x0405=0x0000
0x0406=0x0000
0x0407=0x0000
0x0408=0x0000
0x0409=0x0000
0x040A=0x0000
0x040B=0x7FFF
0x040C=0x0000
0x040D=0x0000
0x040E=0x0000
0x040F=0x0000
0x0440=0x0020
0x0441=0x0000
0x0442=0x0000
0x0443=0x0000
0x0444=0x0000
0x0445=0x0000
0x0446=0x0000
0x0447=0x0000
0x0448=0x0000
0x0449=0x0000
0x044A=0x0000
0x044B=0x0000
0x044C=0x0000
0x044D=0x0000
0x044E=0x0000
0x044F=0x0000
0x0450=0x0000
0x0451=0x0000
0x0452=0x0000
0x0453=0x0000
0x0454=0x0000
0x0455=0x0000
0x0456=0x0000
0x0457=0x0000
0x0458=0x0000
0x0459=0x0000
0x045A=0x0000
0x045B=0x0000
0x045C=0x0000
0x045D=0x0000
0x045E=0x0000
0x045F=0x0000
0x0460=0x0000
0x0461=0x0000
0x0480=0x0000
0x0481=0x0000
0x0482=0x0000
0x0483=0x0000
0x0484=0x0000
0x0485=0x0000
0x0486=0x0000
0x0487=0x0000
0x0488=0x0000
0x0489=0x0000
0x048A=0x0000
0x048B=0x0000
0x048C=0x0000
0x048D=0x0000
0x048E=0x0000
0x048F=0x0000
0x0490=0x0000
0x0491=0x0000
0x0492=0x0000
0x0493=0x0000
0x0494=0x0000
0x0495=0x0000
0x0496=0x0000
0x0497=0x0000
0x0498=0x0000
0x0499=0x0000
0x049A=0x0000
0x049B=0x0000
0x049C=0x0000
0x049D=0x0000
0x049E=0x0000
0x049F=0x0000
0x04A0=0x0000
0x04A1=0x0000
0x04A2=0x0000
0x04A3=0x0000
0x04A4=0x0000
0x04A5=0x0000
0x04A6=0x0000
0x04A7=0x0000
0x04C0=0x0000
0x04C1=0x0000
0x04C2=0x0000
0x04C3=0x0000
0x04C4=0x0000
0x04C5=0x0000
0x04C6=0x0000
0x04C7=0x0000
0x04C8=0x0000
0x04C9=0x0000
0x04CA=0x0000
0x04CB=0x0000
0x04CC=0x0000
0x04CD=0x0000
0x04CE=0x0000
0x04CF=0x0000
0x04D0=0x0000
0x04D1=0x0000
0x04D2=0x0000
0x04D3=0x0000
0x04D4=0x0000
0x04D5=0x0000
0x04D6=0x0000
0x04D7=0x0000
0x04D8=0x0000
0x04D9=0x0000
0x04DA=0x0000
0x04DB=0x0000
0x04DC=0x0000
0x04DD=0x0000
0x04DE=0x0000
0x04DF=0x0000
0x04E0=0x0000
0x04E1=0x0000
0x04E2=0x0000
0x04E3=0x0000
0x04E4=0x0000
0x04E5=0x0000
0x04E6=0x0000
0x04E7=0x0000
0x0500=0x0000
0x0501=0x0000
0x0502=0x0000
0x0503=0x0000
0x0504=0x0000
0x0505=0x0000
0x0506=0x0000
0x0507=0x0000
0x0508=0x0000
0x0509=0x0000
0x050A=0x0000
0x050B=0x0000
0x050C=0x0000
0x050D=0x0000
0x050E=0x0000
0x050F=0x0000
0x0510=0x0000
0x0511=0x0000
0x0512=0x0000
0x0513=0x0000
0x0514=0x0000
0x0515=0x0000
0x0516=0x0000
0x0517=0x0000
0x0518=0x0000
0x0519=0x0000
0x051A=0x0000
0x051B=0x0000
0x051C=0x0000
0x051D=0x0000
0x051E=0x0000
0x051F=0x0000
0x0520=0x0000
0x0521=0x0000
0x0522=0x0000
0x0523=0x0000
0x0524=0x0000
0x0525=0x0000
0x0526=0x0000
0x0527=0x0000
0x0540=0x0000
0x0541=0x0000
0x0542=0x0000
0x0543=0x0000
0x0544=0x0000
0x0545=0x0000
0x0546=0x0000
0x0547=0x0000
0x0548=0x0000
0x0549=0x0000
0x054A=0x0000
0x054B=0x0000
0x054C=0x0000
0x054D=0x0000
0x054E=0x0000
0x054F=0x0000
0x0550=0x0000
0x0551=0x0000
0x0552=0x0000
0x0553=0x0000
0x0554=0x0000
0x0555=0x0000
0x0556=0x0000
0x0557=0x0000
0x0558=0x0000
0x0559=0x0000
0x055A=0x0000
0x055B=0x0000
0x055C=0x0000
0x055D=0x0000
0x055E=0x0000
0x055F=0x0000
0x0560=0x0000
0x0561=0x0000
0x0562=0x0000
0x0563=0x0000
0x0564=0x0000
0x0565=0x0000
0x0566=0x0000
0x0567=0x0000
0x0580=0x0000
0x0581=0x0000
0x0582=0x0000
0x0583=0x0000
0x0584=0x0000
0x0585=0x0000
0x0586=0x0000
0x0587=0x0000
0x0588=0x0000
0x0589=0x0000
0x058A=0x0000
0x058B=0x0000
0x058C=0x0000
0x058D=0x0000
0x058E=0x0000
0x058F=0x0000
0x0590=0x0000
0x0591=0x0000
0x0592=0x0000
0x0593=0x0000
0x0594=0x0000
0x0595=0x0000
0x0596=0x0000
0x0597=0x0000
0x0598=0x0000
0x0599=0x0000
0x059A=0x0000
0x059B=0x0000
0x059C=0x0000
0x059D=0x0000
0x059E=0x0000
0x059F=0x0000
0x05A0=0x0000
0x05A1=0x0000
0x05A2=0x0000
0x05A3=0x0000
0x05A4=0x0000
0x05A5=0x0000
0x05A6=0x0000
0x05A7=0x0000
[reference_clocks]
sxr_ref_clk_mhz=30.72
sxt_ref_clk_mhz=30.72

Best Regards ,


#14

Hello @Fahad,

Read operation and MAC = 11b is not valid, while in this case you will get A and B channels transmitting the data at the same time. So, you will get OR-ed result at the MISO line (which may be correct if A and B configurations are exactly the same). This is just a note, it will not influence write operation.
What about J8.18 (TXEN) and J8.38 (RXEN) signals? Are these connected to high? You mentioned RESET line is high.
By the way, are you using the board stand alone? Or it is connected to the Stream Board? If it is stand alone, then you have to solder R184 resistor to supply the level converters.


#15

Hello Dear @Zack,

Exactly, our issue was fixed right after pulling RESET, TXEN 7 RXEN to 3v3 and fixxing the CS signal (deactivated each 32 clock cycle instead of 8 clock cycles).

The chip select gave us hard time to change its behavior. We are using embedded Linux and it seems that it works in a way that it will be triggered every 8 clock cycles.
We came up with a C program with our Altera Cyclone V SoC that doesn’t work, while the same program works just fine on Raspberri Pi.

Do you have any suggestions about changing the behavior of the SPI CS to the needed timing?
Should we modify the SPI Library? or the SPI driver?

Thanks in advance ,


#16

Hello @Fahad,
Did you check the timing diagrams when running the code from Cyclone SoC? Is the wiring OK?
To be honest, I do not understand what an issue is right now. So the more background would is desirable.


#17

Hello @Zack,

After passing the values of the registers in the ini file to the UNITE7002 via SPI, we could get correct clock out of MCLK but the samples from the LimeLight are always 0s.
On the other hand, when we configure the board using LMS Suite with the same ini file it works just fine.

CS is linked to a GPIO pin to lower the clock cycle every 32 bit.
Reset, TxEn and RxEn are connected to 3.3v

Any suggestions?

Thanks in advance ,


#18

Hello @Zack,

I programmed the LMS7002 via SPI to generate a test signal, I have connected the LimeLight from both port 1 and 2, but the LimeLight always gives 0s, and the voltage drops from 5v to about 4v.

Yellow: LimeLight bit0 in port 1 (the same zero results from port 2 as well)
Green: LimeLight MCLK (which gives a good 2MHz as the ini file says)

Also we noticed a fluctuating behavior in both signals sometimes!

Any suggestions?

Thanks in advanced ,


#19

Hello @Fahad,

UNITE7002 board got buffers on LimeLight data ports. Could you double check if port direction of the buffers is set correctly, please.


#20

The direction as you can see in RxFIFO box is RxTSP. Using same ini file, it is programmed fine through LimeSuite not in SPI software. The clock is file but data outputs are 0s.

Here is when it is programmed through LimeSuite displaying only data.

Here is what I get when programming through SPI software.

Here is the ini attached
ini link