Gemalto is now part of the Thales Group, find out more.

You are here

SPI transmission fails | Thales IoT Developer Community

November 3, 2015 - 10:04am, 1483 views

Hello Gemalto,

im strugling with my SPI connection. As described in concept_board_HardwareInterfaceDescription_v01a i have on the right switch bank configured the switches 

1: "on"
2: "on"
3: "off"
4: "on"

ive changed my SPI settings to "std" and my SCFG looks like this:

^SCFG: "Call/ECC","0"<CR><LF>
^SCFG: "GPRS/AutoAttach","enabled"<CR><LF>
^SCFG: "Gpio/****/ASC1","rsv"<CR><LF>
^SCFG: "Gpio/****/DAI","gpio"<CR><LF>
^SCFG: "Gpio/****/DCD0","std"<CR><LF>
^SCFG: "Gpio/****/DSR0","rsv"<CR><LF>
^SCFG: "Gpio/****/DTR0","std"<CR><LF>
^SCFG: "Gpio/****/FSR","gpio"<CR><LF>
^SCFG: "Gpio/****/HSIC","rsv"<CR><LF>
^SCFG: "Gpio/****/PULSE","gpio"<CR><LF>
^SCFG: "Gpio/****/PWM","gpio"<CR><LF>
^SCFG: "Gpio/****/RING0","std"<CR><LF>
^SCFG: "Gpio/****/SPI","std"<CR><LF>
^SCFG: "Gpio/****/SYNC","gpio"<CR><LF>
^SCFG: "Ident/Manufacturer","Cinterion"<CR><LF>
^SCFG: "Ident/Product","EHS6"<CR><LF>
^SCFG: "MEShutdown/Fso","0"<CR><LF>
^SCFG: "MEopMode/SoR","off"<CR><LF>
^SCFG: "Radio/Band","511"<CR><LF>
^SCFG: "Radio/OutputPowerReduction","4"<CR><LF>
^SCFG: "Serial/Interface/Allocation","1","1"<CR><LF>
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0058","Cinterion Wireless Modules","EHx",""<CR><LF>
^SCFG: "Tcp/IRT","3"<CR><LF>
^SCFG: "Tcp/MR","10"<CR><LF>
^SCFG: "Tcp/OT","6000"<CR><LF>
^SCFG: "Tcp/WithURCs","on"<CR><LF>
^SCFG: "Trace/Syslog/Otap","0"<CR><LF>
^SCFG: "URC/Ringline","local"<CR><LF>
^SCFG: "URC/Ringline/ActiveTime","2"<CR><LF>
^SCFG: "Userware/Autostart","1"<CR><LF>
^SCFG: "Userware/Autostart/Delay","0"<CR><LF>
^SCFG: "Userware/DebugInterface","","","0"<CR><LF>
^SCFG: "Userware/DebugMode","on"<CR><LF>
^SCFG: "Userware/Passwd",<CR><LF>
^SCFG: "Userware/Stdout","null",,,,"off"<CR><LF>
^SCFG: "Userware/Watchdog","0"<CR><LF>

Now when i restart my concept board the SCK and MOSI diodes are turned on.

Using an osciloscope i see that SCK goes low when i send data, and goes high when i close. But my CS and MOSI stays high the entire time?

When the program has terminated the SCK,MOSI and CS diodes are turned on.

my application looks like this:

i have made some code that reads the input buffer and it seems there is something wrong with my protocol.
The buffer contains {2!0003} and the exclamation mark means that there is a protocol error?

I haven't connected a SPI device yet, so could that be the problem?