This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unexpected return code from os_mbx_send

I am using : µVision V4.22.22.0 Toolchain: MDK-ARM Standard Version: 4.22a

This code is causing my problem:

                        U8 res = os_mbx_send (CB_XMIT_MAILBOX, packetInfo, 0xFFFF);
                        if(OS_R_OK != res)
                        {
                                printf("CB_XMIT_MAILBOX ret code: %x\n", res);
                                abort();
                        }

Documentation says the return code can be either; OS_R_TMO OR OS_R_OK. Very infrequently the return code is 0x78. Does anyone know what this return code means?

                        From rtl.h
                        OS_R_TMO        The timeout has expired.
                        OS_R_OK         The message has been put in the mailbox.
                        #define OS_R_TMO        0x01
                        #define OS_R_OK         0x00

0