7.2 Procedure

  1. Program the evaluation kit with SPI_DC_top.job file included under M2S Eval Kit Files directory. The M2S090 design connects SPI1 port to certain pins of J1 header. Although not needed for this project, it also maps out specific MSS IOs to other J1 header pins for JTAG access.
  2. Connect the SPI pins as described in HeaderPinAssignment.xlsx available under M2S Eval Kit Files directory. Ignore JTAG portion of the header.
  3. Connect the Mini USB (J18) to your PC. The mini-USB is connected to FTDI FT4232h device used as a USB to UART bridge.
  4. Make sure the appropriate drivers are installed on your PC to communicate with this chip.
  5. Run UARTHostLoader application available with this release package.
  6. There should be four com ports available in the serial port setup window. Select the fourth one from the list and configure the Baud Rate as shown in the following figure. If more than four ports are available, disconnect the J18 header and refresh the com ports in the UARTHostLoader application to identify exiting ports. Reconnect the J18 header and refresh the USB ports. Select the fourth port from the newly generated port list.
  7. Click Initialize Port to establish connection with the selected COM port.
  8. Select the programming file and desired action.
  9. Click Run. The UARTHostLoader application waits for data from the SmartFusion2 evaluation kit.
  10. The programming file programmed into the evaluation kit has a SPI-DirectC sample project that supports SmartFusion2, IGLOO2, PolarFire, and PolarFire SoC devices. Resetting the board runs the embedded application and performs the action selected. To run another action or select a different programming file, select it from the UARTHostLoader. Click Run.
  11. To make changes to the embedded project, run IAR workbench and modify the compile options as required. You can download the embedded application using jLink as follows:
    1. Connect jLink to RVI/IAR header.
    2. Set the JTAG select jumper low.
    3. Click download and run from IAR.
Figure 7-1. UART Host Loader
???