没有合适的资源?快使用搜索试试~ 我知道了~
首页LIN STACK PACKAGE
LIN STACK PACKAGE
需积分: 24 24 下载量 54 浏览量
更新于2023-03-16
评论
收藏 2.77MB PDF 举报
LIN Stack Package的LIN user manual,详细介绍了LIN stack package的使用方法
资源详情
资源评论
资源推荐
LIN Stack Package
For 8/16/32 bit MCU User’s Guide
Document Number: LIN_STACK_UG
Rev2.5.5 11/2015
2 Freescale Semiconductor
Table of Contents
Chapter 1 Introduction .................................................................................................. 4
1.1 Revision History ................................................................................................................................................... 5
1.2 Definitions, Acronyms, and Abbreviation ............................................................................................................ 6
1.3 References ............................................................................................................................................................ 7
Chapter 2 Overview ....................................................................................................... 8
2.1 System Architecture ............................................................................................................................................. 9
2.2 Supported Derivatives ........................................................................................................................................ 10
2.3 LIN Stack Package Components ........................................................................................................................ 11
2.3.1 Node Configuration Tool .......................................................................................................................... 11
2.3.2 LIN Stack Architecture ............................................................................................................................. 12
Chapter 3 LIN Stack Package ..................................................................................... 16
3.1 Generation Configuration Files .......................................................................................................................... 17
3.2 Stack Source Code ............................................................................................................................................. 17
3.2.1 Board Support Package ............................................................................................................................. 17
3.2.2 Low Level layer......................................................................................................................................... 19
3.2.3 Core API Layer ......................................................................................................................................... 19
3.2.4 Transport Layer ......................................................................................................................................... 19
3.2.5 Diagnostic Service ..................................................................................................................................... 20
3.2.6 Include folder ............................................................................................................................................ 20
Chapter 4 How to use LIN Package ............................................................................ 21
4.1 Environment requirements ................................................................................................................................. 22
4.2 Hardware configuration file generation .............................................................................................................. 24
4.3 Target setup ........................................................................................................................................................ 28
4.4 Configuration Files and LIN Stack Source Code Integration ............................................................................. 31
4.4.1 Create an empty project of the target MCU board .................................................................................... 31
4.4.2 Create a folder containing configuration files ........................................................................................... 32
4.4.3 Create a group containing LIN Stack source code .................................................................................... 33
4.5 Configuration in CW10.6 ................................................................................................................................... 40
4.6 Getting Started with LIN application ................................................................................................................. 47
4.6.1 Initialization of hardware utilities.............................................................................................................. 47
4.6.2 Initialization of LIN system....................................................................................................................... 48
4.6.3 Timer for LIN schedule execution (Master mode only) ............................................................................ 49
4.6.4 LIN_PHY Enable ...................................................................................................................................... 51
4.6.5 LIN Applications ....................................................................................................................................... 51
Chapter 5 Demo Application ....................................................................................... 58
5.1 LIN Protocol demo application .......................................................................................................................... 58
5.1.1 Introduction ............................................................................................................................................... 58
5.1.2 Demo Environment Setup ......................................................................................................................... 59
5.1.3 Detail Description of Nodes ...................................................................................................................... 60
5.1.4 LIN System Initialization .......................................................................................................................... 60
5.1.5 Functionality Description .......................................................................................................................... 62
5.1.6 Operation ................................................................................................................................................... 66
3 Freescale Semiconductor
5.2 LIN diagnostic demo application ....................................................................................................................... 70
5.2.1 Introduction ............................................................................................................................................... 70
5.2.2 Diagnostic services support ....................................................................................................................... 71
5.2.3 Demo setup ................................................................................................................................................ 72
5.2.4 Operation description ................................................................................................................................ 75
5.3 Resynchronization demo application ................................................................................................................. 80
5.3.1 Introduction ............................................................................................................................................... 80
5.3.2 Demo setup ................................................................................................................................................ 80
5.3.3 Operation description ................................................................................................................................ 83
Appendix A ....................................................................................................................... 85
Appendix B ....................................................................................................................... 87
Appendix C ....................................................................................................................... 90
Home Page: ...................................................................................................................................................................... 92
Web Support: .................................................................................................................................................................... 92
USA/Europe or Locations Not Listed: .............................................................................................................................. 92
Europe, Middle East, and Africa: ..................................................................................................................................... 92
Japan: ................................................................................................................................................................................ 92
Asia/Pacific: ..................................................................................................................................................................... 92
For Literature Requests Only: .......................................................................................................................................... 92
4 Freescale Semiconductor
Chapter 1
Introduction
This document details the implementation of LIN 2.0/2.1/2.2A and SAE J2602 compliant (see
[1],[2],[3],[4]) SW drivers for Freescale 8, 16 and 32 bit microcontroller portfolio. Throughout the
text the stack will be called LIN2.x/J2602. The aim of the documents is to help the user to easily
utilize these stacks in the project and explain the configuration flow.
The information in this document is subject of change without notice and does not represent a
commitment on the part of Freescale Semiconductor. The software describes in this document is
furnished under a license agreement and may be used or copied in accordance with the terms of that
license agreement. No part of this manual may be reproduced in any form or by any means,
electronically or mechanically, including photocopying and recording for any purpose without the
express written permission of Freescale Semiconductor.
Introduction
5 Freescale Semiconductor
1.1 Revision History
Table 1-1. Revision history
Revision
Date
Author
Description
1.0
2009-09-24
B26340-Cong Tran
Initial release
2.0
2011-03-21
B26340-Cong Tran
Update chapter 2 for new HW supported
Update chapter 3.1 for NPF structure, 3.2 for
SCI folder and add RESYN feature
Update chapter 4.5 for diagnostic example
application
Add demo application for diagnostic and
resynchronization to chapter 6
2.0.1
2011-03-24
B26340-Cong Tran
Update table 2.1
2.1
2011-12-19
B26340-Cong Tran
Update chapter 3.1.2 for NCF tool
Update table MCU support for MM912xxx,
VR64, GN32, SC4, LG32
2.2
2012-06-11
B26340-Cong Tran
Update chapter 4.5 for new CW support
Update support 9S12ZVM128 MCU
2.3
2013-07-13
B26340-Cong Tran
Update table MCU support for Lumen,
QuIBSJ638, RN60, VR64 SCIv6, Knox
Update chapter 4 for LIN_PHY using
2.4
2013-09-17
B26340-Cong Tran
Update application for LIN master, slave
tasks, goto sleep/wake up, multi timer
selection
2.5
2014-08-11
B26340- Cong Tran
Add Kinetis platform support
Add AUTOBAUD feature in LIN Driver
2.5.1
2014-09-11
B26340- Cong Tran
Add Hearst platform support
2.5.2
2015-04-15
B39392- Lan Bui
Update to support 9S12ZVML31, 9S12VR32
MCUs
2.5.3
2015-06-01
B39392- Lan Bui
Changed name of the LIN Driver Package to
LIN Stack Package
2.5.4
2015-09-26
B39392- Lan Bui
Update to support 9S12ZVL128,
9S12ZVMC256 MCUs
2.5.5
2015-11-18
B39392- Lan Bui
Update SCI Version of S12ZVHY64 to SCIV6
Add max_message_length and support_sid
field to network description in npf files
剩余91页未读,继续阅读
u010800796
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0