Saturday, January 20th 2018, 12:05am UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-1 of 1.

Friday, May 19th 2017, 1:39pm

Author: DirkAust


I'm using RTT to print out a heartbeat from time to time (several seconds!) after a number of printouts I get a memory exception at the first call to "memcpy" in the function below. static void _WriteNoCheck(SEGGER_RTT_BUFFER_UP* pRing, const char* pData, unsigned NumBytes) { unsigned NumBytesAtOnce; unsigned WrOff; unsigned Rem; WrOff = pRing->WrOff; Rem = pRing->SizeOfBuffer - WrOff; if (Rem > NumBytes) { // // All data fits before wrap around // memcpy(pRing->pBuffer + WrOff, pData, NumBytes)...