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.
Connect the SPI pins as described in
HeaderPinAssignment.xlsx available under M2S Eval Kit Files
directory. Ignore JTAG portion of the header.
Connect the Mini USB (J18) to your PC. The
mini-USB is connected to FTDI FT4232h device used as a USB to UART bridge.
Make sure the appropriate drivers are installed
on your PC to communicate with this chip.
Run UARTHostLoader application available with
this release package.
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.
Click Initialize Port to
establish connection with the selected COM port.
Select the programming file and desired
action.
Click Run. The
UARTHostLoader application waits for data from the SmartFusion2 evaluation kit.
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.
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:
Connect jLink to RVI/IAR
header.
Set the JTAG select jumper
low.
Click
download and run from IAR.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.