Stack overflow or what?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

rew
Posts: 383
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 14 times

Re: Stack overflow or what?

Post by rew »

For debugging: What happens if you roll your own memcpy?

Code: Select all

  for (i=0;i<len;i++) 
      dst[i] = src[i];
 
What /could/ be happening is that one of your pointers is not accessible. If you make it a separate function, prevent inlining and disable a bit of optimization you can step into the function and see the function's arguments.
Post Reply