chvprintf causing unhandled exception

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

chvprintf causing unhandled exception

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: chvprintf causing unhandled exception

Post 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
Post Reply