file-type

SPC5Studio5.8.1教程:驱动配置与Fortify SCA扫描

PDF文件

下载需积分: 5 | 4.16MB | 更新于2024-08-07 | 61 浏览量 | 99 下载量 举报 收藏
download 立即下载
"SPC5Studio5.8.1是一个用于单片机开发的IDE,主要针对意法半导体(STMicroelectronics)的SPC5系列MCU。本教程详细介绍了如何在该环境中创建新工程,选择合适的驱动组件,并进行配置,特别是涉及到PIT定时器驱动的启用和设置。" 在开发嵌入式系统时,正确配置和使能驱动是至关重要的步骤,特别是对于单片机应用。在"使能相关驱动-fortify-sca-扫描工具指导手册"中,主要关注的是如何在SPC5Studio5.8.1中操作这一过程。首先,开发者需要选择并使能必要的驱动,这可以通过"单组件配置视窗"来实现,其中包含定时器驱动如PIT(Pulse Interval Timer)。 PIT定时器是一种常见的微控制器硬件资源,常用于实现精确的时间间隔或计数任务。在本教程中,开发者需要点击"PIT Settings"来配置PIT驱动,使能通道2,并设置其工作频率为1KHz。回调函数是与定时器事件关联的处理函数,这里是`PIT_1msHandle`,当定时器溢出时,该函数会被调用执行特定的任务。 在SPC5Studio5.8.1中创建工程的步骤包括:通过"CreatenewSPC5application"或"File->new->SPC5C/C++Application"启动工程向导,输入工程名和相关描述,然后选择对应的MCU平台,如"SPC570SxxPlatformComponentRLA"。接下来,需要根据硬件设计添加相应的驱动组件,例如时钟组件、IRQ组件、初始化包组件、低级驱动程序组件(包括ADC、DMA、PIT)和OSAL组件。 时钟组件配置是关键,因为它决定了MCU内其他组件的工作频率。开发者需要根据需求设置时钟源和分频系数,确保所有驱动能够正常运行。一旦配置完成,可以使用IDE提供的功能进行编译、下载和调试。 此外,SPC5Studio5.8.1的用户界面包括多个窗口,如工程及组件文件窗口用于管理项目文件,单组件配置视窗用于详细配置驱动参数,快捷操作窗口提供常用功能的快速访问,编译输出窗口显示编译过程和结果,而代码自动生成和清除功能则帮助开发者更高效地管理代码。 本教程提供了关于如何在SPC5Studio5.8.1环境下配置和使能驱动的详细指南,特别是对PIT定时器的使用,对于从事SPC5系列MCU开发的工程师来说,具有很高的实践价值。通过这样的步骤,开发者可以有效地搭建起一个能够运行所需驱动的嵌入式系统。

相关推荐

filetype
fortify扫描工具的说明手册,对实际工作有指导作用,讲的比较清晰。 Fortify SCA分析原理 Front-End 3rd party IDE Java Pug-In C/C++ MicrOsoL NET IBM.eclipse Audit workbench PLSQL XML Analysis Engine Semantic fdi/ fpr Gobal Data flow N Control Flow Configuration Structural Fortify Manager NST Rules builder Custom Pre-Packaged FORTIFY Fortify SCA分析过程 SCA Engine Intermediate Scan phase fles Using Analyzers Tt transation (NST) .Rules Analysis Result File -b build id 阶段一:转换阶段( Translation) 阶段二:分析阶段(Scan o sourceanalyzer-b <build-id>-clean o sourceanalyzer -b <build-id> sourceanalyzer-b <build-id> -Xmx1250m-scan-f results fpr FORTIFY Fortify SCA扫描的工作 Visual studio Eclipse, IBM RAD 面 Audit Workbench Java,. Net Fortify Global Build Tool C, C/C++ Analysis JSP Touchless Build Fortify PL/SQL IDE Intermediate FPR TSOL Model Cold Command Line Interface Fusion 运己 Fortify I m Manager Secure Coding Rules Fortify Customized Rules Rules FORTIFY Fortify SCA扫描的五种方式 插件方式: Plug-In(Eclipse, vs WsAd,rad) 命令行方式 Command line ●扫描目录方式: Audit workbench scan Folder 与其他工具集成: Scan with ANt, Makefile ●编译监控器方式: Fortify SCA Build Monitor FORTIFY Fortify SCA扫描的四个步骤 Fortify SCA扫描总共可以分为四个步骤: ●1. Clean:清除阶段: sourceanalyzer -b proName -clean 2. Translation:转换阶段 3.ShoW-fe:查看阶段 sourceanalyzer -b proName -show-files 4.scan:扫描阶段 sourceanalyzer-b proName -Xmx1250m -scan -f proName. fpr FORTIFY Fortify SCA命令行参数说明 查看SCA扫描命令及参数→> sourceanalyzer ca\ C:\VIRDoS\syste32\cd. exe 川 icrosoft Windows XP[版不5.1268g Kc版权所有1985-2 061 Microsoft Gorp :Documents and settings anming >sourceanalyzer --he lp Fortify Source Code Analyze4..日.回153 Copyright (c>2003-2006 Fortify Software Usage Bu⊥1d Java: sourceanalyzer -b <buildid> <files> sourceanalyzer -b <buildid> javac <compiler opts> <files> G/C++: sourceanalyzer -b <buildid> <compiler> <compiler opts> <files> NET: sourceanalyzer -b <buildin> <exe file> scan〓 sourceanalyzer -b <buildid> -scan -f results. fpr Output opt ions -format <fmt> Controls the output format. Valid options are auto, fpr. fvdl, and text. Default is auto for which type will be determined automatically based on file extension 一£<fi1e> The file to which results are written Default is stdout build-pro ject <name> The name of the project being scanned. Will be inc luded in the output bu⊥1d-1abe1<labe1> The1abe1 of the project being scanned.W主工1 be inc luded in the output build-version <version> The version of the project being scanned. wil1RTIFY. e uale OFTWARE Fortify SCA转换源代码 转换Java代码 Java程序命令行语法 JaVa命令行语法例子 转换J2EE应用程序 使用 Find bugs 转换NET源代码 o. NET Versions 1.1 and 2.0 Visual studio. net version 2003 o Visual studio.net version 2005 转换CC++代码 ●转换 PL/SQLITSQL FORTIFY SCA转换JAVA源代码命令 sourceanalyzer -b <build-id> -cp <classpath> <file-list> ●附注参数:-Xmx;- encoding-jdk;- appserver- appserver- veron -appserver-home Table 1: File specifiers File specifier Description darna盈e All files found under the named directory or any subdirectories dx己盈e/古古 Any file named Example. java found under the named Example java directory or any subdirectories dx22盈e/,ava Any file with the extension. j ava found in the named directory dxna盈e吉/古,java Any file wth the extension j ava found under the named directory or any subdirectories d工22a盈e/方/吉 All files found under the named directory or ary subdirectories (same as dirname FORTIFY
刘兮
  • 粉丝: 28
上传资源 快速赚钱