# Zubax Sapog software

**URL:** <https://forum.opencyphal.org/t/zubax-sapog-software/1317>\
**Category:** Applications & Usage\
**Created:** [June 20, 2021, 10:36pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317 "2021-06-20T22:36:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 20, 2021, 10:36pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/1 "2021-06-20T22:36:50Z")

</div>

I am utilizing the Sapog software to build a ESC to. I have built the binary and flashed it to the hardware using Jflash and a segger pro. The node shows up in UAVCAN GUI tool as node 125, but I cannot do anything with it, nor do firmware updates do anything. I tried changing out the stm32f105, but no luck.  
Any ideas?

---

<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:** [June 21, 2021, 3:36pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/2 "2021-06-21T15:36:41Z")

</div>

> [@dfreitas14](#):
>
> The node shows up in UAVCAN GUI tool as node 125, but I cannot do anything with it

What are you trying to do with it?

---

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 21, 2021, 4:23pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/3 "2021-06-21T16:23:15Z")

</div>

I am trying to upload a new firmware over CAN. When I do so, the node shows up for 3 seconds, then goes offline for 3 seconds and repeats.

---

<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:** [June 21, 2021, 4:35pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/4 "2021-06-21T16:35:00Z")

</div>

> [@dfreitas14](#):
>
> I am trying to upload a new firmware over CAN. When I do so

Please describe how you are doing it and what firmware image you are using.

---

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 21, 2021, 4:37pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/5 "2021-06-21T16:37:05Z")

</div>

I built a board the same as the Sapog reference board as a test board to use to compare my future project to. I then built the bootloader.bin file from the GIT repository. And uploaded it to the ESC using a segger j link.

---

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 21, 2021, 4:38pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/6 "2021-06-21T16:38:15Z")

</div>

I have tried the prebuilt “.compound” and have tried the “.application” both with the same success

---

<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:** [June 21, 2021, 4:43pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/7 "2021-06-21T16:43:14Z")

</div>

From what you described it sounds like the bootloader is functional but the uploaded firmware image is not despite having the correct Application ID structure (otherwise the bootloader wouldn’t attempt to boot it). I recommend either connecting to the bootloader via GDB to inspect what’s happening at boot-up, or just add a bunch of printf calls. If the bootloader seems sane, check what is happening with the firmware (you should only ever attempt to load `*.application`, not compound images).

---

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 21, 2021, 5:54pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/8 "2021-06-21T17:54:58Z")

</div>

Is the latest prebuilt application.bin the best one to run? Also, the bootloader node never changes from initialization to operational, is that normal?

---

<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:** [June 21, 2021, 5:56pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/9 "2021-06-21T17:56:23Z")

</div>

Yes to both.

---

<div class="post-metadata">

**Author:** ![dfreitas14](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/dfreitas14/32/923_2.png) [@dfreitas14](https://forum.opencyphal.org/u/dfreitas14)\
**Post date:** [June 21, 2021, 6:02pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/10 "2021-06-21T18:02:08Z")

</div>

I also noticed that in one of the images, the autopilot is also connected, node ID 1. With the escs work without that node online, or could that be my problem?

---

<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:** [June 21, 2021, 6:03pm UTC](https://forum.opencyphal.org/t/zubax-sapog-software/1317/11 "2021-06-21T18:03:39Z")

</div>

The autopilot is not required for Sapog to function.
