« Previous -
Version 5/47
(diff) -
Next » -
Current version
Anthony Rowe, 02/17/2007 10:32 am
= Error Handling =
Nano-RK uses the convention that system calls return -1 upon error and 1 upon success.
NRK_OK 1
NRK_ERROR -1
'''_nrk_errno_set(NRK_ERRNO error_code)'''
This function should be used by user defined system calls to set an error number. Once a function returns 0, this can be used
'''uint8_t nrk_errno_get()'''
'''Kernel Errors'''
*NRK ERROR: ERROR_MESSAGE
''task_id'' is the ID of the task that caused the error. 0 means the kernel had an internal error.
- "Task Stack Overflow" * The canary value in the identified task was over written. Try making the task stack size larger.
- "Reserve Error in Scheduler"
- "Task Reserve Violated"
- "Scheduler Missed Wakeup"
- "Duplicated Task ID"
- "Unexpected Restart"
- "Idle or Kernel Stack Overflow"
- "Extra Task started, is nrk_config ok?"
- "Low Voltage"
- "Unhandled Interrupt Vector"
- "Timer Overflow"
- "Device Driver Error"
- "Kernel function not implemented"
- "UNKOWN"