C166: Serial Example in Getting Started Book fails
Information in this article applies to:
I'm trying to use the serial example in the Getting Started and Creating Applications with µVision and the 166/ST10 manual.
The following code:
generates the following warnings and errors.
How can I fix this?
Warning 140 indicates that the specified function is undefined. In this case, the _testbit_ function. This was a misprint which should have been _testset_.
Error 185 indicates that the code in the atomic section is more than 4 instructions.
Change the program code for this example function to read as follows:
This solves the warning and error that you received.
Last Reviewed: Thursday, February 25, 2021
of your data.