Assertion failed at file:sem_post.c line: 122 task: ArduCopter

Assertion failed at file:sem_post.c line: 122 task: ArduCopter
sp: 2000c0f8
IRQ stack:
base: 2000c17c
size: 000002e8
2000c0e0: 080d4d37 0000007a 080d632a 2000c0f8 1000e2b8 080a0219 080d4d37 0000007a
2000c100: 00007fff 00007fff 20000d6c 20000ed8 00000008 0809c1d7 20000d6c 00000000
2000c120: 2000c144 080b7605 20001080 0000013c 1000e14c 00000000 200148d0 080b5e37
2000c140: 0000003e 080b2788 7e3601a5 01410123 e000e100 2000be80 00000024 080aa229
2000c160: 00000000 20004100 20021770 1000e23c 00000000 080a0419 1000e14c 00000000
sp: 1000e220
User stack:
base: 1000e2b8
size: 00001ffc
1000e220: 00001d44 0024b800 200030e8 000014f4 20005268 0803f8a5 200030e8 00000000
1000e240: 200030e8 8c09a64c 20005268 08035797 20003460 0803581f 2000ae5c 2000aea8
1000e260: 2000b3a4 08071153 080711ad 00000000 00000000 00000000 8c0b2789 00000000
1000e280: 00000000 00000000 080711ad 00000000 00000000 00000000 00000000 00000000
1000e2a0: 00000000 00000000 00000000 080a6f4b 00000000 00000000 ffffffff 9f08f61f
R0: 8c09a6b0 00000000 000003e8 00000000 20004100 20021770 1000e23c 00000000
R8: 200148d0 20014260 2000b280 00000000 00000000 1000e220 08054f33 080b2706
xPSR: 61000000 BASEPRI: 00000000 CONTROL: 00000000
EXC_RETURN: ffffffe9

How to debug such problem ?

Hello,

Can you develop how do you get this ? (OS, make/waf?, target, gcc version, etc… )

Assertion failed at file:sem_post.c line: 122 task: ArduCopter

Is this a stock firmware?

What version is it?

To your question - to debug this you need a reproducible testcase!

After you have that you can sprinkle printf’s to try to work out what’s
going on.

Other options do include using JTAG on the board - but you do need
equipment for that.