User Activity

I am trying to receive variable length of data by manipulating the the RxXferCount value and pRxBUffPtr.I am getting desired results most of the time but for certain time the receive buffer is unable to capture all the bytes i sent.I tried to debug i...
When I plug on my device and run my code on the attolic debugger for 1st time my code is working as per my given logic.However if i stop my debugger and then re-run,my program is getting stuck at hardfault.