8. Getting Started

8.1. Installation Notes

  1. SmartSnippets™ Toolbox supports 64-bit environments. SmartSnippets™ Studio installer contains SmartSnippets™ Toolbox application.
  2. To use a DA14580/581/583 or DA1468x chip family board, the appropriate FTDI drivers need to be installed on the system. Just use the standard Windows New hardware has been found wizard to install them.
  3. To use a Bluetooth dongle, the appropriate JLINK drivers need to be installed on the system. The latest drivers can be found at http://www.segger.com/jlink-software.html. To download them, please click on the Download button under the J-Link software & documentation pack for Windows section. While installing these drivers, it is recommended that the Bluetooth dongle is NOT connected to the USB port.
  4. If an error occurs while using the SPotA tool and trying to connect to the Bluetooth dongle, please make sure that the Microsoft Visual C++ 2010 Redistributable Package libraries are installed at C:\\Windows\\System32 folder. Otherwise, please download and install the latest Redistributable libraries for Visual Studio 2010 from http://support.microsoft.com/kb/2019667/.
  5. If the following error dialog appears, Java Simple Serial Connector library (JSSC), which is used by SmartSnippets™ Toolbox for serial communication, could not be loaded successfully. The reason is that none of the user home folder and user Temp folder is writable. JSSC library extracts to user home folder (or user Temp folder, if user home folder is not writable) the required DLLs for serial connection. The user can change the access rights of these folders or overwrite the default user folder location. In order to overwrite the default user home path, the user can use USER_HOME property. For example the user can set USER_HOME=C:/Users/_username_ or USER_HOME=C:\Users\_username_ at the properties file. File properties.txt is inside SmartSnippets™ Toolbox workspace folder defined at installation.

Figure 7 Example of error on loading a library

8.2. Work Flow

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.


Figure 8 Develop and run a program from OTP for DA1453x, DA14585/6

[1] Dialog’s Development Board needs no configuration

[2] From this point on, application development and debugging is done, and OTP will be programmed

The user might experiment with the Power Profiler for optimizing the code as much as possible. This can take several iterations since the user can insert SW cursors (see Power Profiler software cursors ) 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 to Power Profiler about a detailed description of Power Profiler.

8.3. Settings and Virtual COM port / JTAG selection

The ‘Settings and Virtual COM port / JTAG selection screen’ allows users to add, edit and delete settings files. The following images shows the list of available settings files on the left, the list of available virtual COM ports and JTAGs currently connected to FTDI devices in the middle and the list of available chip versions on the right. Each settings file is associated with a specific device / chip version. There is no provision to prohibit user from using the settings file with a different device than the one selected when the settings file was first created. However, if a different device is selected, some settings will still point to the original one. Therefore it is highly recommended to create a new settings file if user switches device.

The following options are available:

  1. UART/SPI: SmartSnippets™ Toolbox scans and lists the Virtual COM port pairs currently connected to FTDI devices. The “Power Profile activated” indication, informs the user that Power Profiler is available.

Figure 9 Virtual COM port selection

  1. UART only: SmartSnippets™ Toolbox scans for individual COM ports without the need to be part of an FTDI pair. In this mode, all ports are treated as UART ports. This means that if the user selects to connect over one of these ports, the SPI functionality (e.g. Power Profiler) is disabled.

Figure 10 UART only mode

  1. JTAG: The user has a JTAG attached to the board and wants to communicate over JTAG. The serial number that corresponds to the attached JTAG should be selected.

Figure 11 JTAG mode

  1. Hybrid: The user has a JTAG attached to the board and wants to communicate over JTAG. Although user can use SPI communication for certain tools e.g. Power Profiler.

Figure 12 Hybrid mode

If the connection between SmartSnippets™ and the board over the UART link is unstable try to change the latency time of the FTDI cable and set to some value below 10ms. User can configure the latency from the Device Manager. To open the Device Manager in Windows 10, the user can press the Windows button and type “Device Manager” in the search box. From the Device Manager expand Ports (COM & LPT). Right click on preferred port, click properties, select tab Port Settings and then advanced. In windows 8 COM & LPT is hidden. Go to View and select Show hidden devices. At Figure 13 you can see a screenshot of example settings.


Figure 13 Advanced settings for COM port

On “Settings and Virtual COM port / JTAG selection” window the available options are:


Figure 14 Settings and port selection actions

Launch: 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 named project.sms is created to store the information and the user preferences regarding this settings file.

Edit: By pressing the ‘Edit’ button, the user can edit the settings file description.

Delete: The ‘Delete’ button deletes the selected settings file from the workspace.

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.

Detect: With this option SmartSnippets™ Toolbox communicates with the board to identify what chip is connected to the PC. On successful detection a message like the following is shown:


Figure 15 Device detection

Cannot see my board: Information popup message


Figure 16 Instructions if device is not listed

Selected Support Pack: 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.


Figure 17 SP information

Help: SmartSnippets™ Toolbox manual, release notes, license e.t.c

Custom Support Pack: User can edit the selected SDK/SP or select one if no SDK/SP has been selected. For more information see Support Packs.

8.4. Linux Support

8.4.1. Changing device permissions

When user adds a development board on a Linux system, new devices are created automatically on the OS. These devices should have read and write permission for all users. To avoid setting appropriate permissions every time SmartSnippets™ Toolbox is used, a rules file is provided which changes permissions to every “known” FTDI device. The file, named smartsnippets_studio_common_ftdi_devices.rules, contains a list of common vendor and product IDs and should be placed under /etc/udev/rules.d. If the user cannot find the VID-PID pair of the board used under this list, it is recommended that a new .rules file is created and copied to /etc/udev/rules.d folder.

8.4.2. Setting VID-PID pairs for Power Profiler

Except from changing permissions of connected devices, as described in the previous section, the user should also add the VID-PID pairs to the SmartSnippets™ Toolbox properties file, in order to work with Power Profiler. Due to incompatibility with FTDI Linux kernel module, SmartSnippets™ Toolbox needs to know the Vendor and Product ID of the connected devices, in order to unload FTDI kernel module, before using ftd2xx library. Power Profiler works with a default VID-PID pair: VID= 0x0403 and PID=0x6010. User can add extra VID-PID pairs in properties.txt file in the following way:





VID-PID pairs are created from properties starting with VID. (or vid.) and PID. (or pid.) and having common text after the first ‘.’.