# CanardRxTransfer payload reading?

**URL:** <https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600>\
**Category:** Libcanard\
**Created:** [August 22, 2019, 4:50am UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600 "2019-08-22T04:50:49Z")\
**Posts on this page:** 6\
**Page:** 3

<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:** [March 9, 2020, 4:40pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/41 "2020-03-09T16:40:46Z")

</div>

Bootloaders are tricky. Unfortunately, there is still no comprehensive public demo of how to use Kocherga. One who is experienced in low-level programming should be able to get it going but otherwise, I expect it might be overwhelming. The following archive contains a greatly stripped-down application example I just made from a real proprietary application that relies on Kocherga. It won’t build because some of the components are missing, but I trust it should be still useful as an example. It has the components that are critical for integration with the bootloader: the linker script, the build script, the script that generates the image CRC (which is verified by the bootloader), and also it shows how to command the bootloader to begin the update procedure.

[kocherga-app-demo.tar.gz](https://forum.opencyphal.org/uploads/short-url/ykWzGmVAWIsrGJyQhF4YtYyYtuu.gz) (41.4 KB)

---

<div class="post-metadata">

**Author:** ![rreignier](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@rreignier](https://forum.opencyphal.org/u/rreignier)\
**Post date:** [March 10, 2020, 6:42pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/42 "2020-03-10T18:42:22Z")

</div>

Thanks a lot @pavel.kirienko  
I will have a look at it.

---

<div class="post-metadata">

**Author:** ![cameron-stastra-pi](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/c/f14d63/32.png) [@cameron-stastra-pi](https://forum.opencyphal.org/u/cameron-stastra-pi)\
**Post date:** [July 21, 2020, 9:58pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/43 "2020-07-21T21:58:02Z")

</div>

@kent.martin I’m having trouble getting a single can interface using CAN2 working (as opposed to CAN1 which works out of the box) on an STM32F415.  
Would you mind sharing your modifications to the STM32 port?  
Thanks,  
Cameron

---

<div class="post-metadata">

**Author:** ![Mey](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mey](https://forum.opencyphal.org/u/Mey)\
**Post date:** [January 29, 2021, 9:03pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/44 "2021-01-29T21:03:41Z")

</div>

Hi,

I’m rather new to the ecosystem and would like to use the bootloader for the UAVCAN protocol. Going through the python code, my impression is that the firmware file is the raw binary that will be padded and then CRC checked. The binary file then will be directly transferred to the flash and act as the app. So there isn’t any encryption of the firmware file? If so, is there any other option out there that work with UAVCAN protocol but encrypts the firmware? STM has an expansion package that does encrypt the firmware and has many security features built into it but does not support UAVCAN protocol. I rather not going down that road to develop on top of their code as I use them as an example for bad coding practice which is hard to read and expand.

---

<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:** [January 29, 2021, 9:08pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/45 "2021-01-29T21:08:51Z")

</div>

What you are describing is outside of the scope of UAVCAN. If I understood your intent correctly, you can implement secure boot while supporting the current UAVCAN bootloader protocol.

---

<div class="post-metadata">

**Author:** ![Mey](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@Mey](https://forum.opencyphal.org/u/Mey)\
**Post date:** [February 1, 2021, 4:01pm UTC](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600/46 "2021-02-01T16:01:09Z")

</div>

Yes, I’m aware that secure bootloader is a totally independent thing from the UAVCAN. I was wondering if you know any secure bootloader that has implemented it which I guess the answer is no. You guys have made good libraries though, so I should just get libcanard to work in a secure bootloader.

[Previous page](https://forum.opencyphal.org/t/canardrxtransfer-payload-reading/600.md?page=2)
