GetError

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetError

Jump to solution
1,235 Views
anil
Contributor I
Occasionally, the processor expert function for receiving a serial port character for a 9s12 returns

ERR_COMMON.

The comments state to call the
GetError method for error specification

1. I can't find where the GetError Method is included

2. What can cause the ERR_COMMON to be returned



** ERR_COMMON - common error occurred (the
** GetError method can be used for error
** specification)
Labels (1)
Tags (1)
0 Kudos
1 Solution
350 Views
CrasyCat
Specialist III

Hello

Which Bean are you using for your SCI?

If you open the Bean Inspector for your SCI bean and go to the Methods tab, you can activate code generation for method "GetError" there.

Calling that function will allow you to detect whether you have a buffer overflow, a framing error or a parity error.

I hope this helps.

CrasyCat

View solution in original post

0 Kudos
1 Reply
351 Views
CrasyCat
Specialist III

Hello

Which Bean are you using for your SCI?

If you open the Bean Inspector for your SCI bean and go to the Methods tab, you can activate code generation for method "GetError" there.

Calling that function will allow you to detect whether you have a buffer overflow, a framing error or a parity error.

I hope this helps.

CrasyCat

0 Kudos