8。入门¶
8。1.安装说明¶
SmartSnippets™Toolbox支持64位环境。SmartSnippets™Studio安装程序包含SmartSnippets Toolbox应用程序。
要使用DA14580 / 581/583或DA1468X芯片家庭板,需要在系统上安装适当的FTDI驱动程序。只需使用标准窗口
New硬件has到过found
wizard to install them.要使用蓝牙加密狗,需要在系统上安装适当的JLink驱动程序。最新的司机可以找到http://www.segger.com/jlink-software.html。要下载它们,请点击
Download
button under theJ-Link软件&文件盒forWindows
部分。在安装这些驱动程序时,建议蓝牙加密狗未连接到USB端口。If an error occurs while using the SPotA tool and trying to connect to the Bluetooth dongle, please make sure that the
微软视觉的C ++2010重新发行包裹
图书馆安装在C: \ \ Windows \ \System32
文件夹。否则,请从中下载并安装最新的可再发行版库从Visual Studio 2010http://support.microsoft.com/kb/2019667/。如果出现以下错误对话框,则无法成功加载SmartSnippets™工具箱的Java简单串行连接器库(JSSC),用于串行通信。原因是没有一个用户主文件夹和用户临时文件夹可写入。JSSC库提取到用户主文件夹(或用户临时文件夹,如果用户主文件夹不可写)串行连接所需的DLL。用户可以更改这些文件夹的访问权限或覆盖默认用户文件夹位置。为了覆盖默认用户主页路径,用户可以使用user_home属性。例如,用户可以在属性文件中设置user_home = c:/ users / _username_或user_home = c:\ user_home \ _username_。文件
properties.txt.
在安装时定义的SmartSnippets™工具箱工作区文件夹中。
8。2.工作流程¶
This section is providing a guide to start using the SmartSnippets™ Toolbox, a proposed way of working with the tools available for the basic tasks during development. The following figure illustrates the basic flow to run a program from OTP on a DA1453x and DA14585/6 family chip.
[1]对话框的开发板不需要配置
[2] From this point on, application development and debugging is done, and OTP will be programmed
用户可能会尝试电源分布器,以尽可能多地优化代码。这可以采用几个迭代,因为用户可以插入SW Cursors(请参阅Power Profiler软件游标) to identify the code executions translated into current dissipation. As soon as it is completed, the programming of the code into the OTP might start so that the system is self-sustained. Upon OTP burning, the system can operate on a battery and realize complete power cycles e.g. active and sleep intervals. Please refer toPower Profiler关于电力分析器的详细描述。
8。3.设置和虚拟COM端口/ JTAG选择¶
“设置和虚拟COM端口/ JTAG选择屏幕”允许用户添加,编辑和删除设置文件。以下图像显示左侧的可用设置文件列表,当前连接到中间的FTDI设备的可用虚拟COM端口和JTAG列表以及右侧可用芯片版本列表。每个设置文件都与特定的设备/芯片版本相关联。没有规定禁止用户使用与第一次创建设置文件时选择的设备的设置文件。但是,如果选择了不同的设备,则某些设置仍将指向原始的设备。因此,如果用户交换设备,强烈建议创建新的设置文件。
The following options are available:
UART / SPI.:SmartSnippets™工具箱扫描并列出当前连接到FTDI设备的虚拟COM端口对。“电源配置文件激活”指示,通知用户电源分布器可用。
UART only:SmartSnippets™Toolbox为单个COM端口扫描,无需成为FTDI对的一部分。在此模式下,所有端口都被视为UART端口。这意味着如果用户选择连接这些端口中的一个,则禁用SPI功能(例如电源分布器)。
JTAG.:用户有一个连接到电路板的JTAG,并希望通过JTAG进行通信。The serial number that corresponds to the attached JTAG should be selected.
Hybrid:用户有一个连接到电路板的JTAG,并希望通过JTAG进行通信。虽然用户可以为某些工具使用SPI通信。电力分布器。
如果Smartsnippets™和电路板上的连接在UART链路上是不稳定的,请尝试更改FTDI电缆的延迟时间,并设置为10ms以下的某个值。用户可以从设备管理器配置延迟。要在Windows 10中打开Device Manager,用户可以按Windows按钮并在搜索框中键入“设备管理器”。从设备管理器展开端口(COM&LPT)。右键单击首选端口,单击“属性”,选择“选项卡端口设置”,然后选择“高级”。在Windows 8中,Com&LPT是隐藏的。转到查看并选择显示隐藏设备。在图13.您可以看到示例设置的屏幕截图。
On “Settings and Virtual COM port / JTAG selection” window the available options are:
发射: Used for opening the settings file currently selected on the left-hand side of the window and connecting through the Virtual COM port pair or single UART port or JTAG selected above. After selecting a settings file and a virtual COM port / JTAG and pressing ‘Launch’, the settings file is associated with user’s selection and this information is stored in the ‘project.sms’ file. The next time the user selects the same settings file, the virtual COM port / JTAG that was used last time will be preselected. The user is allowed to open a settings file without selecting a virtual COM port / JTAG; in this case all the actions that require communication with the board are disabled.
New: When the application launches for the first time, there will be no settings file; the user will have to create one by pressing the ‘New’ button. The settings file name should be unique and should not contain any spaces or special characters. When saving the new settings file, a new folder with the name of the settings file is created under the Projects directory of the SmartSnippets™ Toolbox workspace. Under this folder, an xml file namedProject.SMS.
创建以存储有关此设置文件的信息和用户首选项。
编辑:通过按“编辑”按钮,用户可以编辑设置文件描述。
删除:“删除”按钮从工作区中删除所选设置文件。
Refresh: The ‘Refresh’ button is used in order to refresh the list of available settings files and the list of available virtual COM ports/ jtag serial numbers. If the board is connected but not listed, the user is advised to use a different USB port, wait a few seconds and press again the ‘Refresh’ button. Problems in identifying the FTDI device may indicate an invalid installation of the FTDI drivers.
探测:使用此选项SmartSnippets™工具箱与电路板通信以识别连接到PC的芯片。在成功检测下显示如下所示的消息:
Cannot see my board: Information popup message
选定的支持包: User can see the Support Pack (SP) that is currently being used.
More Info: User can see more information about the selected SP. By pressing the “Open Folder” button, the user is able to directly open the location of the selected SP.
帮助: SmartSnippets™ Toolbox manual, release notes, license e.t.c
自定义支持包: User can edit the selected SDK/SP or select one if no SDK/SP has been selected. For more information see支持包。
8.4。Linux支持¶
8.4.1。Changing device permissions¶
当用户在Linux系统上添加开发板时,在OS上自动创建新设备。这些设备应为所有用户读写权限。为避免使用SmartSnippets™Toolbox设置适当的权限,因此提供了规则文件,该文件将更改为每个“已知”FTDI设备的权限。命名为smartsnippets_studio_common_ftdi_devices.rules的文件包含一个公共供应商和产品ID列表,并应放在/etc/udev/rules.d下。如果用户无法找到此列表下使用的电路板的VID-PID对,则建议创建新的.rules文件并将其复制到/etc/udev/rules.d文件夹。
8.4.2。为电源分析器设置Vid-PID对¶
除了更改所连接设备的权限之外,如上一节所述,用户还应将VID-PID对添加到SmartSnippets™工具箱属性文件,以便使用Power Profiler。由于与FTDI Linux内核模块不相容,SmartSnippets™工具箱需要了解所连接设备的供应商和产品ID,以便在使用FTD2XX库之前卸载FTDI内核模块。Power Profiler使用默认的VID-PID对运行:VID = 0x0403和PID = 0x6010。用户可以通过以下方式在properties.txt文件中添加额外的VID-PID对
Vid.1.0 = 0x0405.
PID.1.0=0x6011
VID.Dialog_1468xAD=0x0406
pid.dialog_1468xad = 0x6012
VID-PID pairs are created from properties starting with VID. (or vid.) and PID. (or pid.) and having common text after the first ‘.’.