Page 1 of 1

chvprintf causing unhandled exception

Posted: Fri Aug 19, 2016 11:41 am
by Tabulous
Ive currently got the SERIAL_BUFFERS_SIZE at 512

if a pass alot of strings using chvprintf it causes a unhandled exception, as in the picture, but there is not clue in the debugger as to where the problem came from i.e. no call trace.....so how is one to debug this and why does this happen ?

Untitled.jpg

Re: chvprintf causing unhandled exception

Posted: Fri Aug 19, 2016 2:19 pm
by Giovanni
Hi,

You must inspect the stack and look at the address in the pushed LR register, that is the exception point.

I can't see any reason for buffers to stop working when size==512 however, there must be something (else) overflowing, a stack for example.

Giovanni