I am using RTX kernel. One of my task is consisting of number of events. After a particular event is served I am clearing it using os_evt_clr(event_no,task). It is working fine till the no of events are less then 10. i.e. 0x0400 if any more event is added and os_evt_clr(event_no,task) is invoked the OS entered into hardfault_handler mentioned in startup.s.
Please suggest me why it is happening does it is related to the task stack??
The hard fault probably has nothing to do with what you posted above. Did you try to debug it? Try the fault reports of uv4.