This section helps you set up your ConnectCore device to see Storyboard in action.

The goal of this section is to have a Storyboard demo application running in your device. This application includes three different demos:

  • Electrical vehicle charger demo

  • Robot arm demo

  • Medical demo

Follow these steps to get started using the Crank Storyboard demo with your ConnectCore MP15 Development Kit.

Requirements

  • A ConnectCore MP15 Development Kit

  • The Crank prebuilt images

  • LVDS or HDMI display for the graphical user interface

  • A mouse to work in the graphical user interface

    Due to a Weston issue on wl_shell applications, mouse input stops working after a few seconds. The mouse becomes unresponsive and the pointer turns into an hourglass or "loading" icon. See Left mouse click only possible a few seconds after application startup.

    You can read more about this issue at https://gitlab.freedesktop.org/wayland/weston/-/issues/82.

    This occurs with anything considered a mouse input device. Any other input device (touch screen, keyboard, etc.) works as expected.

1. Download the firmware

The Crank demo image includes:

  • Storyboard Engine. The target-specific executable that loads the model generated by Designer and starts the execution of the state machine. See What is Storyboard?.

  • A Storyboard application created and exported with Storyboard Designer. This application is configured to be launch at startup.

2. Program the Crank demo image

Digi recommends you use the Universal Update Utility (UUU) through a USB connection to your development PC to program the images.

  1. Decompress the zip file in a directory of your choice.

  2. Set up your computer.

    1. Download the latest Universal Update Utility (UUU), a software tool from NXP.

      UUU version should be 1.5.11 or higher.
    2. Place the uuu executable in a directory in your PATH, such as /usr/bin.

    3. Install udev rules to allow any user to run uuu to access the USB port:

      $ sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules"
      $ sudo udevadm control --reload
  3. Connect a micro USB cable to your development PC and the other end to the target USB OTG connector.

  4. Reset the device by pressing the reset button on the board and immediately press any key in the serial terminal to stop the auto-boot process. The U-Boot bootloader prompt displays:

    NOTICE:  CPU: STM32MP157CAC Rev.Z
    NOTICE:  Model: Digi International ConnectCore MP15 Development Kit
    NOTICE:  BL2: v2.6-stm32mp1-r2.1(release):dub-2021.10-r4.2(8fdd4435)
    NOTICE:  BL2: Built : 14:41:33, Sep 14 2023
    NOTICE:  BL2: Booting BL32
    optee optee: OP-TEE: revision 3.16 (43350dda)
    
    
    U-Boot dub-2021.10-r4.2 (Sep 14 2023 - 14:40:08 +0000)
    
    CPU: STM32MP157CAC Rev.Z
    DRAM:  512 MiB
    optee optee: OP-TEE: revision 3.16 (43350dda)
    Clocks:
    - MPU : 650 MHz
    - MCU : 208.878 MHz
    - AXI : 266.500 MHz
    - PER : 24 MHz
    - DDR : 533 MHz
    WDT:   Started with servicing (32s timeout)
    NAND:  512 MiB
    MMC:   STM32 SD/MMC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi International ConnectCore MP15 Development Kit
    ConnectCore MP15 SOM variant 0x01: 512 MiB DDR3, Wi-Fi, Bluetooth
      Board version 1
    Boot:  NAND
    Net:   eth0: ethernet@5800a000
    Normal Boot
    Hit any key to stop autoboot:  0
    => 
    Information in the console log may vary.
  5. On the target, in U-Boot, execute the following command:

    => fastboot 0
  6. On your development PC, change to the directory where you extracted the ZIP file:

    $ cd <zip-folder>
  7. To program the demo image, run:

    $ ./install_linux_fw_uuu.sh -i dey-image-crank
  8. Once the firmware is installed, the device boots automatically. The default username is root with no password.

3. Test the Crank Storyboard demo

The Storyboard demo is automatically launched on boot.

Select any of the three different demos and interact with it:

  • Electrical vehicle charger demo

  • Robot arm demo

  • Medical demo

You can develop your own applications with Storyboard Designer, see Getting started with Storyboard.

To build your image with Storyboard Engine and applications, see Create a Crank image.