# allocator.getBlockCapacity() is jumping to exceptional handler

**URL:** <https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787>\
**Category:** LibCyphal\
**Created:** [November 9, 2022, 10:22am UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787 "2022-11-09T10:22:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pramod](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/p/71c47a/32.png) [@Pramod](https://forum.opencyphal.org/u/Pramod)\
**Post date:** [November 9, 2022, 10:22am UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787/1 "2022-11-09T10:22:30Z")

</div>

Hi,

During initialization of uavcan, execution is jumping to exception handler by executing the function allocator.getBlockCapacity(). This function is called by the constructor CanIOManager::CanIOManager().

I’ve tried varying the memory size of both MemPoolBlockSize and NodePoolSize but couldn’t find a solution.

What else could go wrong here?

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [November 9, 2022, 10:26am UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787/2 "2022-11-09T10:26:09Z")

</div>

> [@Pramod](#):
>
> What else could go wrong here?

Literally anything. Stack overflow, a bona fide interrupt, memory corruption, heavy particles from outer space, glitch in the Matrix, I don’t even know.

---

<div class="post-metadata">

**Author:** ![Pramod](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/p/71c47a/32.png) [@Pramod](https://forum.opencyphal.org/u/Pramod)\
**Post date:** [November 9, 2022, 10:32am UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787/3 "2022-11-09T10:32:39Z")

</div>

Are there any documents available to configure uavcan memory requirements?  
Like modifying linkers, ram specific settings etc.

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [November 9, 2022, 10:34am UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787/4 "2022-11-09T10:34:02Z")

</div>

> **[1. Library build configuration - DroneCAN](https://dronecan.github.io/Implementations/Libuavcan/Tutorials/1._Library_build_configuration/)**
>
> DroneCAN is the primary CAN protocol used by the ArduPilot and PX4 projects for communication with CAN peripherals. It is an open protocol with open communication, specification and multiple open implementations.

> **[2. Node initialization and startup - DroneCAN](https://dronecan.github.io/Implementations/Libuavcan/Tutorials/2._Node_initialization_and_startup/#memory-management)**
>
> DroneCAN is the primary CAN protocol used by the ArduPilot and PX4 projects for communication with CAN peripherals. It is an open protocol with open communication, specification and multiple open implementations.

---

<div class="post-metadata">

**Author:** ![aentinger](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/aentinger/32/1428_2.png) [@aentinger](https://forum.opencyphal.org/u/aentinger)\
**Post date:** [November 9, 2022, 4:16pm UTC](https://forum.opencyphal.org/t/allocator-getblockcapacity-is-jumping-to-exceptional-handler/1787/5 "2022-11-09T16:16:15Z")

</div>

If you run on PC try valgrind, if you run bare-metal on any Cortex-M try [How to debug a HardFault on an ARM Cortex-M MCU | Interrupt](https://interrupt.memfault.com/blog/cortex-m-hardfault-debug) to identify the instruction triggering the exception.
