Embitel

Embitel logo
Search
Close this search box.

Flash Bootloader Solutions for
ECU Reprogramming

Bootloader Software Solution for Automotive ECU

Designed by our experienced embedded software developers, this time-tested, stable and ready-to-deploy flash bootloader solution has been successfully integrated in a number of production programs across US, India and Europe.

This Low Memory footprint (both ROM and RAM) bootloader software solution for automotive is compatible with application-level protocols like UDS on CAN, UDS on IP, J1939 and KWP2000.

This bootloader also supports communication protocols like CAN FD, CAN and LIN.

It is compatible with both RTOS and non-RTOS based applications. And the reprogramming code sequence is customizable as per the requirements of your target application.

Flash Bootloader Development and Integration Services:

Hardware Platform Consulting for Bootloader Development Project


  • Requirement gathering and application analysis workshops with our automotive experts
  • Hardware platform evaluation and project roadmap strategy
  • Flash Bootloader software development for 8 bits, 16 bits and 32 bits microcontroller platform as per the project requirements
  • Expertise in development of:
  • ARM Bootloader
  • AVR Bootloader
  • STM32 Bootloader
  • Infineon Bootloader

In-vehicle Communication and Application Layer Services


  • Support for Flash bootloader development for ECU Flashing over CAN FD, CAN, LIN, UART, SPI, I2C, Ethernet communication protocols
  • Support for development of flash bootloader software based on UDS over CAN, UDS over IP (DoIP), J1939, KWP 2000, J1587 protocols
  • Custom bootloader development for ECU Flashing over any proprietary communication protocol as per the customer’s requirement

ECU Reprogramming Tools Development and End-of-Line Testing Support


  • Design and development of customized ECU Flashing tool (PC/Web based)
  • Expertise in development of GUI-based and Command line-based (for End-of-Line testing) ECU reprogramming tool
  • Support for tools configuration and testing of standard ECU reprogramming tools like PCAN, VFlash, ValueCAN3 and more
  • Support for ECU Programming using Vflash tool

dynamic

Secure Flash Bootloader Software Access and Data Integrity Services


  • Seed and Key Algorithm implementation for secure and verified access to flash bootloader software for ECU reprogramming or software update
  • Checksum strategy (like CRC16) implementation to ensure vehicle data integrity while ECU Programming

Flash Bootloader Development Services


  • Bootloader sequence development as per the customer/project requirements (Jump to Boot, Erase App, Download App, Validate and Reset sequence)
  • Memory mapping between the Flash Bootloader software and automotive ECU Application
  • CAPL Script or Bus Master Script development to support ECU reprogramming
  • Base software development (Flash driver, MCU, Timer and more) in accordance with the bootloader software design
  • Flash Bootloader software integration with the customer’s hardware platform

Secure Boot Implementation for Automotive ECU Reprogramming


  • Implementation of Hardware Security Module (HSM) (as per the Microcontroller Platform specifications) t and integration with the existing Flash Bootloader Software
  • Support for Encryption and Decryption of flashing files
  • Feature development to avoid unintended read and write functionality in Flash Bootloader
  • Support for implementation of Digital Signature, for logical blocks
  • Support for data compression and decompression, in order to facilitate fast and efficient downloading

Flash Bootloader Factsheet:

Read this reference guide to know in detail about our Flash Bootloader solution used for ECU reprogramming.

Download this Flash Bootloader PDF to get following information:

  • Overview of industry-wide proven and stable Flash Bootloader solution
  • Bootloader Solution Kit: Script & Tools development, Primary and Secondary bootloader
  • Bootloader solution features and memory requirements
  • Key Service offerings(development, testing, and maintenance)
  • Compatibility with different vehicle communication protocols
  • Customizable ECU programming code sequence
Refer to the Flash Bootloader FAQ sections for more details.

Video Explaining Different Types of Flash Bootloaders

Is your Bootloader software compatible with all the vehicle communication protocols?

Ans. Yes, our designed Bootloader software is compatible with popularly used communication protocols (either wired/wireless).
Following is the indicative list of protocols which are compatible with our bootloader design:

 

  • UART
  • SPI
  • LIN
  • Ethernet
  • Bluetooth
  • Kline
Do you provide ECU programming customization for your bootloader sequence according to the application of your customer?
Ans: Yes. The ECU reprogramming strategy can be customized according to your application specific requirements.
Which program is executed first with the initiation of the system, the bootloader or the application?
Ans: The Bootloader code is executed first with the initiation of the system.
If there is a valid application present in the application block, then the control jumps from Boot to the application block.
What support does your team provide for Secure Boot of an ECU reprogramming?

Ans: We can help you implement ‘Secure Boot’ in the Flash Bootloader software. The following is our 3-tier approach to implement ‘Secure Boot’:

 

  • We implement the Hardware Security Module (HSM) specific to the Microcontroller platform. We provide Support for integration of HSM with the existing Flash Bootloader Software.
  • We develop Encryption and Decryption algorithms for flashing files, based on standard algorithms. This helps to bolster the security of ECU reprogramming process.
  • We also ensure to integrate a feature that restricts any unintended read and write functionality in Flash Bootloader.
How to ensure that the ECU flashing has been successfully completed?
Ans: While the ECU reprogramming sequence executes, the hex byte gets flashed. After ECU flashing of the entire hex byte, the bootloader will validate the flashed area by using the CRC algorithm.
How can we reprogram both the application?

Ans: The application and the bootloader can both be reprogrammed using two different programming sequences.

 

The primary bootloader is used for application reprogramming and the secondary bootloader is used for bootloader reprogramming.

 

Both the codes are stored in the program memory of the microcontroller.

Can Embitel develop the front-end , PC Flash tool for ECU flashing?
Ans: Yes, We provide development services for thePC based application. The application development can be done either by using QT C++ scripting for window application or CAPL + CANoE scripting depending on the user specification.
Which all type of Application level protocols does your bootloader supports?
Ans. Our Bootloader programming module supports different types of application-level protocol namely UDS, J1939 and KWP2000.
Is your bootloader compatible with the non-RTOS platform?
Ans. Yes, our bootloader is compatible with both non-RTOS and RTOS based application platforms.
Please share amount of memory utilized by your Bootloader software?

Ans. Embitel’s Bootloader solution ensures a low memory footprint for both ROM and RAM. The bootloader programming occupies the following space of memory block:

 

  • 12 to 15 Kilo Bytes of ROM
  • 2 to 3 Kilo Bytes of RAM
Does Embitel provide the Detailed Design Documentation for the Bootloader?
Ans. After the requirement gathering and application analysis phase, the detailed design documentation is completed based on the customer’s inputs and requirements. This is part of our Service Level Agreement (SLA).
Does Embitel provide post-production support and maintenance services?
Ans. Yes. As a part of our SLA, we provide a planned maintenance and support services depending upon the specific project requirements.
Is your flash bootloader designed for a specific hardware platform?
Ans. We have expertise in development of flash bootloaders including ARM bootloader, STM32 Bootloader, Infineon Bootloader etc. If you wish to build a flash bootloader for a different microprocessor family, we can provide necessary support for that.

Knowledge bytes

Flash Bootloader software, which is integrated with an automotive ECU (electronic control unit) application, facilitates the ECU reprogramming and/or software update in an automotive ECU. Integration of flash bootloader software eliminates the need for specialized hardware (like JTAG programmer) and physical removal of the ECU from the vehicle for ECU reprogramming or application software update. Flash Bootloader software design is completely independent of the ECU application (which needs to be updated or flashed).
What are the different types of Bootloaders?

There are primarily two types of Bootloaders: –

  • Primary or Single Bootloader (PBL): Primary Bootloader (PBL) is installed in the ROM and is the first block to execute on boot reset. The main function of the Primary Bootloader is to download the Secondary Bootloader in the RAM of the automotive ECU and activate the SBL.
  • Secondary Bootloader (SBL):The Secondary Bootloader is used for reprogramming and/or software update of the automotive ECU application software.
The above mentioned software architecture of the Flash Bootloader ensures low memory footprint of the bootloader software.

  • The Flash Bootloader is programmed in the EOL Station and is loaded on the microcontroller Flash memory (which stores both the bootloader software and ECU application software).
  • If the applications are validated, the software control is moved to the automotive ECU application software. If not validated, then control of the software remains with the Bootloader.
  • The Bootloader communicates with ECU reprogramming tools through serial communication protocols (UART, LIN, SPI, CAN, Ethernet, etc.) and can reprogram the ECU application software.
  • The Bootloader software also detects, reports, and manages errors like power failures, loss of communication, and Flash-write errors.
  • Flash error protection is usually accomplished by storing a checksum or Cyclic Redundancy Code (CRC) for the ECU application.
A secure way of reprogramming the ECU Application software can be achieved by using a UDS-based (Flash Bootloader software, which also contains diagnostics services).Multi-packet data is handled by the Transport layer using ISOTP modules. The services listed below are used in the UDS-based Bootloader software:
  • Diagnostics Session Control
  • ECU Reset
  • Routine Control (Flash-Erase and Application Validation)
  • Request Download
  • Transfer Data
  • Transfer Exit
  • Clear DTC
Secure reprogramming of the ECU Application software is also possible using the J1939-based Flash Bootloader software.

It uses CAN communication protocol with a 250kbps rate. Multi-packet data will be handled by the Transport layer – J1939/21 – TP.

The following layers are in the J1939 Bootloader software:

  • J1939/21 – Datalink and TP
  • J1939/81 – Network Management Layer
  • J1939/71 – Application Layer
  • J1939/73 – Diagnostic Layer (DM3, DM11, DM14, DM15, and DM16)
Scroll to Top