Sapog

Sapog - advanced multiplatform ESC firmware
Alternatives To Sapog
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Launchpad Pro401
8 months ago18bsd-3-clauseC
Open source firmware for the Launchpad Pro grid controller
Psdr314
2 years ago7otherC
PortableSDR - A Stand Alone HF Software Defined Transciever.
Firmware249
10 months ago40gpl-3.0C++
Maslow Firmware
Uhsdr247
2 years ago38gpl-3.0C
SDR firmware and bootloader with configuration files for use with Eclipse, EmBitz and Makefile
Sapog157
3 years ago3bsd-3-clauseC
Sapog - advanced multiplatform ESC firmware
Lxr77
8 years ago2otherC
Source files for the LXR drumsynthesizer firmware
Iosonata54
2 days agomitC
IOsonata multi-platform multi-architecture power & performance optimized software library for fast and easy IoT MCU firmware development. Object Oriented design, no board package to define, just pure plug & play any boards
Riscv Fw Infrastructure44
2 years agoapache-2.0C
Firmware infrastructure, contain RTOS Abstraction Layer, demos and more...
Usbdm Firmware40
4 days ago6C
Firmware for USBDM BDMs
Smartto Eclipse24
5 years ago11gpl-2.0C
3D printer firmware and hardware of for stm32
Alternatives To Sapog
Select To Compare


Alternative Project Comparisons
Readme

PX4 Sapog

Forum Forum

Documentation

Sapog v2 Reference Manual is the main piece of project documentation; make sure to read it. Additional documentation and related resources can be found at the Zubax Knowledge Base.

Change Log

v2.3

  • Configuration parameter mot_i_shunt_mr has been removed; now the firmware detects the shunt resistance based on the HW ID pin states.
  • Migrated from GCC 4.9 to GCC 7.2.

v2.2

  • Added a low-pass filter on the estimated angular speed output. This change led to improved performance on motors with severe phase asummetry.
  • Improved RGB LED indication in the bootloader.

v2.1

  • Fixed stability issues at extremely high RPM (>10k mechanical RPM for 14 pole motor).
  • Default PWM frequency set to 60 kHz.

v2.0

  • Completely new, more robust spin up algorithm. Supports smooth start-up from standstill as well as picking up the rotation if the rotor is already spinning.
  • Significantly more reliable operation during rapid acceleration and deceleration, especially at high advance angles.
  • Wider PWM frequency range: 20...75 kHz.
  • Raised the maximum RPM limit; the new maximum for 14 pole motor exceeds 14000 mechanical RPM.

Firmware

If you're not running Linux or OSX natively, you can use Bistromathic - a Linux virtual machine pre-configured for embedded development.

Bootloader

The bootloader allows to update the firmware via the standard UAVCAN firmware upgrade protocol, which is documented at uavcan.org. No additional steps are needed to build the bootloader - the build system will build it automatically together with the firmware. The resulting *.elf file will be extended with the bootloader too, so it can be flashed directly into an factory fresh MCU.

Build Instructions

Prebuilt binaries are available at https://files.zubax.com/products/io.px4.sapog/.

Prerequisites:

  • GCC ARM 7.2
  • Python 3.2+
  • Linux or OSX host computer (Windows is not supported)
git submodule update --init --recursive
cd firmware
make RELEASE=1 # RELEASE is optional; omit to build the debug version

The build outputs will be stored into build/:

  • *.application.bin - built application binary, suitable for uploading via the bootloader;
  • *.compound.bin - application binary together with the bootloader, in one image;
  • compound.elf - application ELF together with the bootloader, in one file; this option is recommended for debugging.

Execute ./blackmagic_flash.sh [portname] from the tools directory to flash the firmware with a Black Magic Debug Probe.

Development

We recommend Eclipse for IDE, but any other IDE will work equally well. If you prefer Eclipse and need GUI debugging, avoid upgrading to any version newer than Luna, since in newer releases GUI GDB debugging of embedded targets is broken. Otherwise we recommend to use the latest Eclipse together with CLI GDB client. It's inconvenient, but unlike Eclipse it works reliably.

When editing code, please follow the PX4 coding conventions.

Hardware Timer Usage

  • TIM1 - 3-phase FET bridge PWM
  • TIM2 - ADC synchronization, works in lockstep with TIM1
  • TIM3 - RGB LED PWM
  • TIM4 - Hard real time callout interface for motor control logic (preempts the kernel)
  • TIM5 - RC PWM input capture
  • TIM6 - High precision timestamping for motor control logic (sub-microsecond resolution, never overflows)
  • TIM7 - General purpose timestamping

Hardware

Reference hardware design is published under CC BY-SA 3.0 in the PX4 Hardware repository.

Known commercially available compatible hardware designs are listed below.

Popular Firmware Projects
Popular Eclipse Projects
Popular Hardware Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Firmware
Eclipse
Robotics
Drone
Bootloader
Pwm
Uav
Can Bus