Software for FRDMGD3100HB8EVM is distributed with the SPIGen GUI tool (available on NXP.com). Necessary firmware comes pre-installed on the FRDM-KL25Z with the kit.
Even if the user intends to test with other software or PWM, it is recommended to install this software as a backup or to help debugging.
4.1 Installing SPIGen on your computer
The latest version of SPIGen supports the GD3100 and is designed to run on any Windows 10, Windows 8 or Windows 7 based operating system. To install the software, do the following:
- Go to www.nxp.com/SPIGen and click Download.
- When the SPI generator (SPIGen) software page appears, click Download and select the version associated with your PC operating system.
If instructed for the SPIGen wizard to create a shortcut, an SPIGen icon appears on the desktop. By default, the SPIGen executable file is installed at C:\Program Files (x86)\SPIGen.
Installing the device drivers overwrites any previous SPIGen installation and replaces it with a current version containing the GD3100 drivers. However, configuration files (.spi) from the previous version remain intact.
4.2 Configuring the FRDM-KL25Z microcode
By default, the FRDM-KL25Z delivered with this kit is preprogrammed with the current and most up-to-date firmware available for the kit.
A way to check quickly that the microcode is programmed and the board is functioning properly, is to plug the KL25Z into the computer, open SPIGen and verify that the software version at the bottom is 5.4.7.
If a loss of functionality occurs following a board reset, reprogramming or you experience a corrupted data issue, the microcode may be rewritten per the following steps:
- To clear the memory and place the board in boot loader mode, hold down the reset button while plugging a USB cable into the OpenSDA USB port.
- Verify that the board appears as a BOOTLOADER device and continue with step 3. If the board appears as KL25Z, you may go to step 6.
- Download the Firmware Apps .zip archive from the PEmicro OpenSDA webpage (http://www.pemicro.com/opensda/). Validate your email address to access the files.
- Find the most recent MDS-DEBUG-FRDM-KL25Z_Pemicro_v***.SDA and copy/drag-and-drop into the BOOTLOADER device.
- Reboot the board by unplugging and replugging the connection to the OpenSDA port. Verify now that the device appears as a KL25Z device to continue.
Locate the most recent KL25Z firmware; which is distributed as part of the SPIGen package.
- a. From the SPIGen install directory, which is located in the SPI Dongle Firmware folder and is named in the form “UsbSPIDongleKL25Z_GD3100_v***.srec”.
- b. This .srec file is a product/family-specific configuration file for FRDM-KL25Z containing the pin definitions, SPI/PWM generation code and pin mapping assignments necessary to interface with the translator board as part of FRDMGD3100HB8EVM.
With the KL25Z still plugged through the OpenSDA port, copy/drag-and-drop the .srec file into the KL25Z device memory. Once done, disconnect the USB and plug into the other USB port, labeled KL25Z.
- a. The device may not appear as a distinct device to the computer while connected through the KL25Z USB port, this is normal.
The FRDM-KL25Z board is now fully set up to work with FRDMGD3100HB8EVM and the SPIGen GUI.
- a. There is no software stored or present on either the driver or translator boards, only on the FRDM-KL25Z MCU board.
All uploaded firmware is stored in non-volatile memory until the reset button is hit on the FRDM-KL25Z. There is no need to repeat this process upon every power up and there is no loss of data associated with a single unplug event.
4.4 Ready to use
Begin embedded application development.