Design Automation


Jaguar reduces development costs with MathWorks rapid prototyping and code generation tools

19 November 2003 Design Automation

To meet demands for increasingly complex new vehicles while continuing to reduce costs, where possible Jaguar develops and tests new functionality using existing production vehicles instead of building expensive prototypes. This approach involves adding a special-purpose electronic control unit (ECU) to the vehicle.

Jaguar, based in Coventry, England, uses products from MathWorks to generate control software and deploy it on commercially available, general-purpose ECU hardware based on the Motorola MPC555 microcontroller. Jaguar selected the Microgen product from the UK company add2 Limited as its hardware platform (see: www.add2.co.uk/MicroGen.htm).

The Microgen MPC555-based electronic control module from add2 Ltd  is seen here mounted on the vehicle dashboard
The Microgen MPC555-based electronic control module from add2 Ltd is seen here mounted on the vehicle dashboard

In this way Jaguar can develop new features in an offline mode on a desktop in the lab and then try them out in a vehicle. It can support a variety of application areas, such as the transmission, driver entertainment, and body system. By testing the new features on real hardware Jaguar improves the quality of specifications that it provides to its suppliers.

The challenge

Most vehicles today contain several control units that are interconnected via realtime network standards such as CAN and J1850. Messages sent over these networks are used to continually transfer vehicle data and control information between ECUs. When a new ECU is received (by Jaguar) from a supplier, the ECU 'expects' to be installed in a vehicle with other ECUs that use the same message format and network protocol. However, initial development of systems with the new ECUs begins on existing production vehicles, presenting problems with incompatible message formats and protocols.

Previously, Jaguar would deal with this problem by commissioning a special-purpose ECU that would perform 'protocol conversion' between a new ECU and an existing network on the production vehicle. This work was subcontracted to external code developers - a slow and costly option. It involved giving specifications to a vendor, who would write software and send them the code. On-vehicle debugging would identify problems with the code, requiring Jaguar to go through several iterations before implementation. Jaguar needed a quicker, more cost-effective approach.

The solution

In proposing a solution it soon became apparent that the resulting system could be used, not only for protocol conversion, but also as a rapid prototyping system for implementing and testing new control algorithms or diagnostic features. The scope of the project was widened accordingly.

For targeting Microgen, its general-purpose ECU, Jaguar selected the MathWorks complete software environment, based on Simulink, Stateflow, and Real-Time Workshop.

A new product, the Embedded Target for Motorola MPC555, was created. Jaguar used these MathWorks products to design, simulate, and test control algorithms and generate custom code that was downloaded to Microgen hardware. For a typical project, it builds the control system as a block diagram in Simulink and Stateflow. To access I/O such as PWM, analog input, or CAN that is incorporated in the MPC55 microcontroller, it uses blocks that are included with the Embedded Target for Motorola MPC555.

Additional Simulink blocks have been developed by add2 Ltd to provide access to I/O devices that are external to the MPC555 chip. In this way, the control algorithms that Jaguar developed could process signals received via a CAN or J1850 bus or directly from sensor inputs. The algorithm output could be transmitted as a bus message or used to drive output devices directly.

Because the Simulink and Stateflow model was an executable specification, algorithms could be simulated and tested offline as they were being developed. Once the algorithm was validated in simulation, a complete application could be automatically generated and downloaded to ECU hardware.

Once the code was generated, test engineers downloaded the application over CAN into either RAM or flash memory on the target ECU.

Jaguar can customise, document, test, and validate the algorithm model, and then generate code for Microgen, all within the MathWorks environment. For example, the Embedded Target for Motorola MPC555, in conjunction with Jaguar's ECU hardware, allows some prototype work to be completed in-house, which in turn allows more complete and accurate specifications to be sent to suppliers for them to develop the actual system.

Jaguar is now using the code with general-purpose ECU hardware to aid in the development of control strategies. For example, during Engine Management Systems (EMS) development, it ran code on Microgen to simulate the vehicle transmission control unit. This allowed the engine and EMS to be tested through a number of drive cycles. The cycles were simulated by using the ECU hardware to send transmission position information to the EMS, which in turn 'thought' it was in a certain gear. The gear selected was easily controlled by the test engineer or by an automated test procedure.

The results

* Time and cost savings. Using MathWorks tools cuts several weeks from a typical development project. Without the general-purpose ECU, Jaguar would have had to ask the supplier to provide special, development-grade ECUs and software update every time it wanted to test a new strategy. Today it can test many more design iterations and save a great deal of time and money.

* Ability to test more design options. Reduced validation effort and the increased use of general-purpose and cost-effective ECU hardware allow the simultaneous trial of prototype control modules across a fleet of engineering vehicles, thereby enabling more rapid evaluation of proposed features.

* Faster development of embedded control designs. MathWorks products enable Jaguar to test innovative new vehicle features faster and more effectively.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

MPLAB PICkit Basic
ASIC Design Services Design Automation
To make its robust programming and debugging capabilities accessible to a wider range of engineers, Microchip Technology has launched the MPLAB PICkit Basic in-circuit debugger.

Read more...
Accelerating RF PCB design in a 5G world
ASIC Design Services Editor's Choice Design Automation
Billions of IoT devices coming online in the coming years will require RF design capabilities that support ultra-fast 5G speeds.

Read more...
NECTO Studio has been updated
Design Automation
NECTO Studio V7.1 IDE from MIKROE now includes full programmer and debug support for Microchip tools and also adds support for Microchip’s SAM MCU and STMicroelectronics’ STM32L4 series of ultra-low-power MCUs.

Read more...
Altium provides free training
Design Automation
There is no longer any excuse not to master Altium Designer with the company now offering both advanced instructor-led three-day training and an on-demand video series.

Read more...
Altium syncs your design and PCB programming software
EDA Technologies Design Automation
Altium Designer and Altium 365 can keep track of everything needed in PCB design, PCB programming language, component sourcing, and much more, as an embedded application is developed.

Read more...
New Studio 6 SDK
Design Automation
New Simplicity Studio 6 SDK opens development environment, and opens developers to Series 3.

Read more...
New camera module targets AI and computer vision
Vepac Electronics Design Automation
Innodisk has announced its shift towards the AI industry with half of its AI development related to image recognition.

Read more...
Engineering the future of automation
Design Automation
As the next great leap forward in mechanisation, industrial automation integrates data into the manufacturing equation through high-input sensors and sensor infrastructures.

Read more...
Fusion 360 gains Ultra Librarian electronics CAD library
Design Automation
Autodesk collaborated with Ultra Librarian to generate this Fusion 360-compatible app that provides users with free verified schematic symbols, PCB footprints, 3D STEP models, and reference designs.

Read more...
ST releases new reference designs for STM32
Altron Arrow Design Automation
ST Microelectronics has released reference designs for the STM32WL5x and STM32WLEx, allowing new applications to be quickly prototyped.

Read more...