CANopen Bootloader Overview
A growing number of CANopen devices today require bootloaders to exchange firmware in the field. Using a complete CANopen stack is often unsuitable for bootloaders due to the large flash memory requirements. The emotas CANopen bootloader was therefore developed with a focus on a small memory footprint while simultaneously ensuring high reliability.
The bootloader supports only the most essential CANopen services (SDO, NMT slave, Heartbeat producer) and objects required for a bootloader. As a result, the emotas bootloader requires only 16 KiB of flash and remains CANopen-compatible. The bootloader is available for various 16-bit and 32-bit microcontrollers and can be easily adapted to other target systems.
Manufacturer-specific code can be integrated without any problems, as the bootloader is delivered in C source code. This allows device manufacturers to integrate, for example, access protection mechanisms, firmware encryption, or a backdoor into the bootloader.
Support for SDO block transfer is optionally available; however, SDO block transfer must be activated separately as it increases the memory requirement.
The application to be transferred with the bootloader must be slightly adapted. To do this, the linker settings must be changed so that the reset vector points to the bootloader and the space is not occupied by the application. In addition, a persistent RAM (4 bytes) must be provided for data exchange between the bootloader and the application, although alternative communication methods between the application and the bootloader are also supported. A data block containing the CRC and other information is also prepended to the application’s binary file. Corresponding space must also be kept free in the flash for this purpose.
Highlights
- CANopen compatible
- segmented SDO transfer
- SDO block transfer
- low resource requirements
System Requirements for CANopen Bootloader
- ANSI-C compiler
Scope of delivery/licensing
- CANopen Bootloader Source Code (ANSI-C compatible)
- Drivers for CAN controller, CPU, and flash access
- Ready-to-run example applications
- User manual and reference manual as PDF
- Site-wide company license or project license without runtime costs incl. 6-24 months of free support depending on the license
- 1 single-user license of the CANopen UpdateManager included