12
Embedded Software |10 July 2014 RENAULT NISSAN GENERAL Embedded Coder toolbox as a streamline for quick realization of Embedded Systems - Kirankumar Bacchewar - Gandhimathi P

Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

Embedded Software |10 July 2014 RENAULT NISSAN GENERAL

Embedded Coder toolbox as a streamline for quick

realization of Embedded Systems

- Kirankumar Bacchewar

- Gandhimathi P

Page 2: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 2 RENAULT NISSAN GENERAL

Index

Introduction 1

Challenges of rapid prototyping

3 MATLAB Embedded coder

2

Rapid prototyping using Embedded coder 4

7 Benefits

7 Features that can help us 8

7

Page 3: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 3 RENAULT NISSAN GENERAL

Introduction

• Quick realization of Algorithms on Target (Rapid prototyping) a vital phase of advanced

engineering

• Algorithms generally developed and validated in Simulink

• Automotive application contains hardware interface to sensors, CAN networks and actuators

Page 4: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 4 RENAULT NISSAN GENERAL

Challenges of rapid prototyping

• Frequent changes in

– Algorithm model

– Prototype Requirement

– CAN .dbc file

• Meeting prime focus of project

– Cost effective solution

– Stringent development time line

– High quality

– Easy maintenance

• High probability of algorithm change and repeated tuning

after delivery

• Large variants of mass production microprocessors available

in market

Page 5: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 5 RENAULT NISSAN GENERAL

Generates readable, compact and fast C code for application ,drivers and schedulers

Generates code for both fixed and floating point model

Provides library for all input, output and communication interfaces for a processor

Provides utility library to pack and un-pack data for communication interfaces like, CAN

Includes variants of on-target rapid prototyping boards & low/high end microprocessors

MATLAB

Embedded Coder

MATLAB Embedded Coder

Page 6: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 6 RENAULT NISSAN GENERAL

Driver development for a processor (1/2)

• Plug and play basic driver bocks aids easy development of drivers

• Plug and play data pack/unpack blocks aids for quick development of drivers

EMBEDDED CODER

LIBRARY

DATA PACK UNPACK BLOCKS

BASIC DRIVER BLOCKS

Page 7: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 7 RENAULT NISSAN GENERAL

OR

Driver development for a processor (2/2)

Example:

eCAN driver for

TMS320F28335 processor

Interrupt based

Non-Interrupt based

Page 8: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 8 RENAULT NISSAN GENERAL

Model integration with Scheduler

• Seamless Driver interfaced to the algorithm.

• Automatic configuration of CPU timer with model sample time

• Auto Scheduler for single and multi-rate tasks

Integration model CPU timer set with sample time Scheduler for

multi-tasking system

Page 9: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 9 RENAULT NISSAN GENERAL

Build and Flash

• Compilation and deployment using a supported third-party IDE such as Texas Instruments

Code Composer Studio

• Predefined settings for rapid prototype development boards

• GUI interface to configure multiplexed pins of the processor

• Provision to include custom linker file

• One click build and flashing sequences

CCS V3

CCS V4

CCS V5

Page 10: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 10 RENAULT NISSAN GENERAL

Benefits

• MATLAB Embedded coder a boon for Rapid Prototyping

• A user friendly platform to meet all the needs and challenges faced while Rapid Prototyping

• Minimum impact on the model while modifications in algorithm or drivers

• Provides user friendly environment to debug and reprograming

• Saves lot of effort to port the same algorithm to a different available target processor

Page 11: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 11 RENAULT NISSAN GENERAL

Features from Mathworks that can help us

• While continuing our work on innovative solutions to our customer, Mathworks Tools will assist us in

future too.

• Expectations from Mathworks:

– Few more Embedded Target support for automotive applications

(such as Microchip, ST)

Page 12: Embedded Coder toolbox as a streamline for quick ...€¦ · - Kirankumar Bacchewar - Gandhimathi P . RENAULT NISSAN GENERAL | 2 Index 1 Introduction Challenges of rapid prototyping

| 12 RENAULT NISSAN GENERAL