# Libcanard

**URL:** https://forum.opencyphal.org/c/app/libcanard/8.md?page=1

[Latest](https://forum.opencyphal.org/latest.md) · [Categories](https://forum.opencyphal.org/categories.md)

**Page:** 2

---

## [Memory leak libcanrad](https://forum.opencyphal.org/t/memory-leak-libcanrad/1611)

<div class="topic-metadata">

**Author:** [@teremok](https://forum.opencyphal.org/u/teremok)\
**Replies:** 1\
**Last updated:** [March 13, 2022, 12:18am UTC](https://forum.opencyphal.org/t/memory-leak-libcanrad/1611 "2022-03-13T00:18:16Z")

</div>

When using the module, we periodically observe that the canardFree is trying to release the null pointer. canardAlloc: 30688416 bytes: 40 canardFree: 30688416 canardAlloc: 31360032 bytes: 32 canardAlloc: 30720600 byt…

---

## [Libcanard with static memory](https://forum.opencyphal.org/t/libcanard-with-static-memory/1607)

<div class="topic-metadata">

**Author:** [@jblesa](https://forum.opencyphal.org/u/jblesa)\
**Replies:** 1\
**Last updated:** [March 8, 2022, 10:29am UTC](https://forum.opencyphal.org/t/libcanard-with-static-memory/1607 "2022-03-08T10:29:37Z")

</div>

Hello, I’m trying to integrate the libcanard in my system and I need to use only static memory. I’ve seen that an memory\_allocate and memory\_free mathods are needed in canardInit. My idea was to do a pool or a similar m…

---

## [Libcanard v2.0 released](https://forum.opencyphal.org/t/libcanard-v2-0-released/1536)

<div class="topic-metadata">

**Author:** [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Replies:** 4\
**Last updated:** [December 7, 2021, 12:52pm UTC](https://forum.opencyphal.org/t/libcanard-v2-0-released/1536 "2021-12-07T12:52:08Z")

</div>

The new version brings several major improvements: Dedicated transmission queues per redundant CAN interface with depth limits. The application is now expected to instantiate CanardTxQueue (or several in case of redun…

---

## [Is there any plan to migrate canard protocol stack to zephyr？](https://forum.opencyphal.org/t/is-there-any-plan-to-migrate-canard-protocol-stack-to-zephyr/1533)

<div class="topic-metadata">

**Author:** [@Cherish-forever](https://forum.opencyphal.org/u/Cherish-forever)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 8:31am UTC](https://forum.opencyphal.org/t/is-there-any-plan-to-migrate-canard-protocol-stack-to-zephyr/1533 "2021-11-26T08:31:28Z")

</div>

Zephyr is an excellent real-time operating system： https://docs.zephyrproject.org/latest/

---

## [Libcanard v1 STM32 driver design guidelines](https://forum.opencyphal.org/t/libcanard-v1-stm32-driver-design-guidelines/798)

<div class="topic-metadata">

**Author:** [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Replies:** 6\
**Last updated:** [November 23, 2021, 7:42pm UTC](https://forum.opencyphal.org/t/libcanard-v1-stm32-driver-design-guidelines/798 "2021-11-23T19:42:25Z")

</div>

At Wednesday’s call, @lorenz.meier suggested that I prepare a design guideline for the low-level STM32 driver for Libcanard and Libuavcan. I decided to postpone the latter because Libuavcan is not yet finished and the lo…

---

## [Libcanard: Examples, Starters, Tutorials](https://forum.opencyphal.org/t/libcanard-examples-starters-tutorials/935)

<div class="topic-metadata">

**Author:** [@hugo](https://forum.opencyphal.org/u/hugo)\
**Replies:** 7\
**Last updated:** [September 25, 2021, 8:08pm UTC](https://forum.opencyphal.org/t/libcanard-examples-starters-tutorials/935 "2021-09-25T20:08:06Z")

</div>

Good day :slight\_smile: This topic is dedicated to collect and provide links supplied by the community. What you will find here are: Examples: Gists, posts links to other forum like Stack Overflow which present a whol…

---

## [Use libcanard for UAVCAN v0 (legacy)](https://forum.opencyphal.org/t/use-libcanard-for-uavcan-v0-legacy/1278)

<div class="topic-metadata">

**Author:** [@vilian](https://forum.opencyphal.org/u/vilian)\
**Replies:** 3\
**Last updated:** [September 23, 2021, 3:47pm UTC](https://forum.opencyphal.org/t/use-libcanard-for-uavcan-v0-legacy/1278 "2021-09-23T15:47:50Z")

</div>

Hello,everyone! Our customer would use UAVCAN v0 for their product communication,we shall provide them with our motor driver,which should support UAVCAN protocol. For now, I have learned that libcanard(https://github.co…

---

## [Libcanard on mcp2517/mcp2518](https://forum.opencyphal.org/t/libcanard-on-mcp2517-mcp2518/1410)

<div class="topic-metadata">

**Author:** [@kent.martin](https://forum.opencyphal.org/u/kent.martin)\
**Replies:** 1\
**Last updated:** [August 31, 2021, 7:28am UTC](https://forum.opencyphal.org/t/libcanard-on-mcp2517-mcp2518/1410 "2021-08-31T07:28:09Z")

</div>

HI all, I hope everyone is coping with part shortages ok. We have come across a stumbling block for newly developed products where we cannot get STM parts with 3CAN bus or pretty much any CAN bus. However we do have s…

---

## [About the allocation of dynamic nodes](https://forum.opencyphal.org/t/about-the-allocation-of-dynamic-nodes/1343)

<div class="topic-metadata">

**Author:** [@L\_Sir](https://forum.opencyphal.org/u/L_Sir)\
**Replies:** 4\
**Last updated:** [July 13, 2021, 12:54am UTC](https://forum.opencyphal.org/t/about-the-allocation-of-dynamic-nodes/1343 "2021-07-13T00:54:08Z")

</div>

\[https://legacy.uavcan.org/Specification/6.\_Application\_level\_functions/\] I have seen the example of dynamic allocation of nodes in this link Time CAN ID CAN data field 1.117 1EEE8100 01 44 C0 8B 63 5E 05 C0 1.117 1E00…

---

## [Static\_assert Error in generated include file](https://forum.opencyphal.org/t/static-assert-error-in-generated-include-file/1202)

<div class="topic-metadata">

**Author:** [@alantrow](https://forum.opencyphal.org/u/alantrow)\
**Replies:** 11\
**Last updated:** [June 29, 2021, 8:19pm UTC](https://forum.opencyphal.org/t/static-assert-error-in-generated-include-file/1202 "2021-06-29T20:19:03Z")

</div>

I’m using these commands to generate my include files: $ nnvg --target-language c --target-endianness=little --enable-serialization-asserts uavcan --outdir uavcan\_messages $ nnvg --target-language c --target-endianness…

---

## [o1heapInit alignment issue](https://forum.opencyphal.org/t/o1heapinit-alignment-issue/1311)

<div class="topic-metadata">

**Author:** [@Mechatronikus](https://forum.opencyphal.org/u/Mechatronikus)\
**Replies:** 8\
**Last updated:** [June 24, 2021, 2:10pm UTC](https://forum.opencyphal.org/t/o1heapinit-alignment-issue/1311 "2021-06-24T14:10:44Z")

</div>

Hi I am trying to setup libcanard on a STM32F429I Discovery board. When I am initializing o1heap the function returns 0. When I debug the programm I see that the check (((size\_t) base) % O1HEAP\_ALIGNMENT) == 0U) fails …

---

## [Libcanard v0 dsdl\_compiler .uavcan to .h](https://forum.opencyphal.org/t/libcanard-v0-dsdl-compiler-uavcan-to-h/948)

<div class="topic-metadata">

**Author:** [@newcomer](https://forum.opencyphal.org/u/newcomer)\
**Replies:** 6\
**Last updated:** [June 24, 2021, 1:31pm UTC](https://forum.opencyphal.org/t/libcanard-v0-dsdl-compiler-uavcan-to-h/948 "2021-06-24T13:31:01Z")

</div>

What is the command to generate .h for libcanard v0?

---

## [Get UAVCAN v0 (legacy) DSDL files](https://forum.opencyphal.org/t/get-uavcan-v0-legacy-dsdl-files/1301)

<div class="topic-metadata">

**Author:** [@vilian](https://forum.opencyphal.org/u/vilian)\
**Replies:** 2\
**Last updated:** [June 11, 2021, 3:04am UTC](https://forum.opencyphal.org/t/get-uavcan-v0-legacy-dsdl-files/1301 "2021-06-11T03:04:34Z")

</div>

Hello,everyone! I have some questions about the DSDL files now: 1)Where could I get the standard DSDL files for UAVCAN v0 (legacy) version? 2)How to compiler these files and my customered DSDL files together(in Window…

---

## [Libcanard listing active CanardRxSubscription](https://forum.opencyphal.org/t/libcanard-listing-active-canardrxsubscription/1266)

<div class="topic-metadata">

**Author:** [@PetervdPerk](https://forum.opencyphal.org/u/PetervdPerk)\
**Replies:** 5\
**Last updated:** [May 20, 2021, 9:33am UTC](https://forum.opencyphal.org/t/libcanard-listing-active-canardrxsubscription/1266 "2021-05-20T09:33:47Z")

</div>

Currently you’ve to keep a seperate list of the active CanardRxSubscription to be able to print information e.g. active portIds of all active subscribers. Although technically this information is already available in lib…

---

## [Libcanard calling canardRxAccept handler in O(1) time](https://forum.opencyphal.org/t/libcanard-calling-canardrxaccept-handler-in-o-1-time/1257)

<div class="topic-metadata">

**Author:** [@PetervdPerk](https://forum.opencyphal.org/u/PetervdPerk)\
**Replies:** 2\
**Last updated:** [May 12, 2021, 5:29pm UTC](https://forum.opencyphal.org/t/libcanard-calling-canardrxaccept-handler-in-o-1-time/1257 "2021-05-12T17:29:52Z")

</div>

On a system implementing many CanardRxSubscription instances you will end up with a big list to iterate trough when receiving a frame from canardRxAccept yielding a processing time of O(n). Pavel made a proposal to chan…

---

## [UAVCAN V0 on CAN3 peripheral, STM32F7](https://forum.opencyphal.org/t/uavcan-v0-on-can3-peripheral-stm32f7/1144)

<div class="topic-metadata">

**Author:** [@EFalcione](https://forum.opencyphal.org/u/EFalcione)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 4:29pm UTC](https://forum.opencyphal.org/t/uavcan-v0-on-can3-peripheral-stm32f7/1144 "2021-05-11T16:29:53Z")

</div>

I am working on an existing project that uses UAVCAN V0 Libcanard on an STM32F7. My understanding is that this microcontroller has three CAN outputs. CAN1 and 2 are multiplexed on the same hardware, and CAN3 has its own …

---

## [Apply Libcanard on ChibiOS using C language](https://forum.opencyphal.org/t/apply-libcanard-on-chibios-using-c-language/1204)

<div class="topic-metadata">

**Author:** [@jslee](https://forum.opencyphal.org/u/jslee)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 9:22am UTC](https://forum.opencyphal.org/t/apply-libcanard-on-chibios-using-c-language/1204 "2021-04-27T09:22:50Z")

</div>

Hello. I’m new about UAVCAN. I’m trying implementation UAVCAN on ChibiOS using C language. I found that I need to apply “libcanard” for C language. I’m reading UAVCAN\_Specification depending on the text “RTFM at \[url\]…

---

## [Multi-frame transfer failure](https://forum.opencyphal.org/t/multi-frame-transfer-failure/1199)

<div class="topic-metadata">

**Author:** [@nburkitt](https://forum.opencyphal.org/u/nburkitt)\
**Replies:** 4\
**Last updated:** [April 16, 2021, 7:11pm UTC](https://forum.opencyphal.org/t/multi-frame-transfer-failure/1199 "2021-04-16T19:11:31Z")

</div>

Hi. I’m having trouble with libcanard receiving multi-frame transfers of a specific size. The frames are being received, but libcanard isn’t reassembling them into a transfer. I’m using “classic” CAN 2.0 B, with 8-byte…

---

## [Magnetometer UAVCAN v1 for PX4](https://forum.opencyphal.org/t/magnetometer-uavcan-v1-for-px4/1188)

<div class="topic-metadata">

**Author:** [@arne](https://forum.opencyphal.org/u/arne)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 8:22am UTC](https://forum.opencyphal.org/t/magnetometer-uavcan-v1-for-px4/1188 "2021-04-12T08:22:17Z")

</div>

I’m developing a magnetometer sensor board that can interface to PX4 over UAVCAN. I would like to use UAVCAN v1 but I was wondering if this is even supported right now. It seems like the 1002.MagneticFieldStrength2.uav…

---

## [UAVCAN v0 Multiple Nodes Outputting Data](https://forum.opencyphal.org/t/uavcan-v0-multiple-nodes-outputting-data/1173)

<div class="topic-metadata">

**Author:** [@EFalcione](https://forum.opencyphal.org/u/EFalcione)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 9:17pm UTC](https://forum.opencyphal.org/t/uavcan-v0-multiple-nodes-outputting-data/1173 "2021-03-30T21:17:26Z")

</div>

I have a CAN bus system with several nodes. One of the nodes is a Pixhawk, which is the flight computer for my system. Previously, the Pixhawk was the only node to output anything on the bus, and the other nodes just lis…

---

## [Libcanard v0 about float16 to float](https://forum.opencyphal.org/t/libcanard-v0-about-float16-to-float/1169)

<div class="topic-metadata">

**Author:** [@newcomer](https://forum.opencyphal.org/u/newcomer)\
**Replies:** 2\
**Last updated:** [March 29, 2021, 9:51am UTC](https://forum.opencyphal.org/t/libcanard-v0-about-float16-to-float/1169 "2021-03-29T09:51:38Z")

</div>

When i use static\_air\_temperature in RawAirData,I find that the fractional part of the temperature always varies at.0,.25,.50, and.75,just like : static\_air\_temperature: 320.0000 static\_air\_temperature: 320.2500 stat…

---

## [Incorrect RX CanardTransfer.payload\_size](https://forum.opencyphal.org/t/incorrect-rx-canardtransfer-payload-size/1158)

<div class="topic-metadata">

**Author:** [@nburkitt](https://forum.opencyphal.org/u/nburkitt)\
**Replies:** 6\
**Last updated:** [March 18, 2021, 8:37pm UTC](https://forum.opencyphal.org/t/incorrect-rx-canardtransfer-payload-size/1158 "2021-03-18T20:37:59Z")

</div>

Hi. When sending both single- and multi-frame CanardTransfers, I’ve found that the value of payload\_size on the receiving node differs from its value on the sending node. For example, here is an excerpt from my logger o…

---

## [Guitool 2021 - path to user dsdl files](https://forum.opencyphal.org/t/guitool-2021-path-to-user-dsdl-files/1148)

<div class="topic-metadata">

**Author:** [@Maxim](https://forum.opencyphal.org/u/Maxim)\
**Replies:** 2\
**Last updated:** [March 10, 2021, 8:49am UTC](https://forum.opencyphal.org/t/guitool-2021-path-to-user-dsdl-files/1148 "2021-03-10T08:49:48Z")

</div>

Hello Pavel. Thanks a lot for updating GuiTool, it has a long-awaited useful option - choosing a folder for user dsdl files. But it’s a pity that the path to the dsdl files has to be specified every time you run guitool…

---

## [Will libcanard or libuavcan becomes a kind of software bus(for IPC)?](https://forum.opencyphal.org/t/will-libcanard-or-libuavcan-becomes-a-kind-of-software-bus-for-ipc/1119)

<div class="topic-metadata">

**Author:** [@Cherish-forever](https://forum.opencyphal.org/u/Cherish-forever)\
**Replies:** 5\
**Last updated:** [February 28, 2021, 10:52pm UTC](https://forum.opencyphal.org/t/will-libcanard-or-libuavcan-becomes-a-kind-of-software-bus-for-ipc/1119 "2021-02-28T22:52:43Z")

</div>

Will libcanard or libuavcan becomes a kind of software bus? like D-bus So that can be break the boundary between hardware and software. Everything on this system act as a active node, they can talk with each other, eve…

---

## [Hardware example using UAVCAN v1 on Arduino](https://forum.opencyphal.org/t/hardware-example-using-uavcan-v1-on-arduino/1052)

<div class="topic-metadata">

**Author:** [@generationmake](https://forum.opencyphal.org/u/generationmake)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 1:13am UTC](https://forum.opencyphal.org/t/hardware-example-using-uavcan-v1-on-arduino/1052 "2021-02-22T01:13:33Z")

</div>

The 107-Arduino-UAVCAN library is now at a point where it can be used to make small working projects and here is an example how to do it. This example uses unregulated Subject-IDs. Register API is not yet implemented in…

---

## [Settings for STM32F091 CAN?](https://forum.opencyphal.org/t/settings-for-stm32f091-can/1111)

<div class="topic-metadata">

**Author:** [@lohits](https://forum.opencyphal.org/u/lohits)\
**Replies:** 2\
**Last updated:** [February 10, 2021, 6:02am UTC](https://forum.opencyphal.org/t/settings-for-stm32f091-can/1111 "2021-02-10T06:02:49Z")

</div>

I am working with stm32f091 controller. Do i need to do any changes in the libcanard V0 to work. other than CLK & IO line settings.

---

## [Problems in sending Heartbeat?](https://forum.opencyphal.org/t/problems-in-sending-heartbeat/1103)

<div class="topic-metadata">

**Author:** [@sensometafisico](https://forum.opencyphal.org/u/sensometafisico)\
**Replies:** 2\
**Last updated:** [February 3, 2021, 7:59am UTC](https://forum.opencyphal.org/t/problems-in-sending-heartbeat/1103 "2021-02-03T07:59:38Z")

</div>

Hello. I’m trying to send Heartbeat on a libcanard + STM32 platform specific bxCAN withina a STM32CubeIDE project. As a bus monitor I’m using Babel + UAVCAN GUI tool on Linux. Every second I prepare the message and pa…

---

## [CanardRxTransfer payload reading?](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600)

<div class="topic-metadata">

**Author:** [@kent.martin](https://forum.opencyphal.org/u/kent.martin)\
**Replies:** 45\
**Last updated:** [February 1, 2021, 4:01pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600 "2021-02-01T16:01:09Z")

</div>

Hi all, I’m getting some code going and have triple can interface going , but now I also need to send CAN data over serial for debugging. For single frame transfers I have this working ok where payload\_len data bytes …

---

## [CAN MOb Filter Generation](https://forum.opencyphal.org/t/can-mob-filter-generation/1066)

<div class="topic-metadata">

**Author:** [@schwghrt](https://forum.opencyphal.org/u/schwghrt)\
**Replies:** 2\
**Last updated:** [January 8, 2021, 6:05pm UTC](https://forum.opencyphal.org/t/can-mob-filter-generation/1066 "2021-01-08T18:05:14Z")

</div>

I’m using libcanard v1 on an AVR chipset cunning CAN 2.0B. I’m trying to generate the CAN MOb RX Filter. Can I get the expected extended message ID from the Receive Subscription, or do I need to generate the expected 2…

---

## [Libcanard for UAVCAN/CAN v1 is released](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774)

<div class="topic-metadata">

**Author:** [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Replies:** 22\
**Last updated:** [December 17, 2020, 2:18am UTC](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774 "2020-12-17T02:18:15Z")

</div>

Libcanard v0.100, implementing UAVCAN/CAN v1, is now available: Key features: Full test coverage and static analysis. Partial compliance with automatically enforceable MISRA C rules (compliance report not available)…

[Previous page](https://forum.opencyphal.org/c/app/libcanard/8.md)

[Next page](https://forum.opencyphal.org/c/app/libcanard/8.md?page=2)
