industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 16.01.2009 | 14:50 | 4 replies

Getting read or write error of SPI

Hi,

How can I see if there is an read or write error to SPI Interface :?:

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 19.01.2009 | 06:59

Hi Rainer,

you will receive an error message from the rcX driver function.

Rainer Versteeg

Rainer Versteeg

| 19.01.2009 | 08:18

Hi Aj,

I use the SPI register.

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 19.01.2009 | 08:27

Hi Rainer,

then is the Forum rcX the wrong place.

In that case you have to take care about the error handling. Please see the data sheet of the used SPI device.

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 19.01.2009 | 09:39

If you expect to get a transfer error from the SPI core in case of a transmission / reception error on the line, you are mistaken. The only thing which can be signalled is a FIFO overflow/underrun error but no transmission error.

There is no such thing as Error check / transmission control on SPI lines. SPI is a simple three wire interface which does not have any additional protocol for checking data transmission. If you need to check if the data has correctly transferred you will need to place checksum, etc. inside your transferred data.

Regards

MT

Login