AN 742: PMBus SmartVID Controller Reference Designs

ID 683352
Date 5/08/2017
Public

1.5.2. Running the Design in Software

To run the reference designs in software, follow these steps:
  1. Launch Nios II Software Build Tools (SBT) for Eclipse.
  2. Import the project files from the software folder.
    1. In the Nios II SBT for Eclipse window, open File > Import > Nios II Software Build Tools Project > Import Nios II Software Build Tools Project.
    2. Select the required files.
      • Master Mode
        • a10_pmbus
        • a10_pmbus_bsp
      • Slave Mode
        • a10_pmbus_master_slave0
        • a10_pmbusmaster_slave0_bsp
        • a10_pmbusmaster_slave1
        • a10_pmbusmaster_slave1_bsp
      • Multi-Master Mode
        • a10_pmbus_multimaster0
        • a10_pmbus_multimaster0_bsp
        • a10_pmbus_multimaster1
        • a10_pmbus_multimaster1_bsp
  3. Regenerate the Board Support Package (BSP).
    1. Right click <file_name>_bsp > Nios II > Generate BSP.
      • Master Mode
        • a10_pmbus_bsp
      • Slave Mode
        • a10_pmbusmaster_slave0_bsp
        • a10_pmbusmaster_slave1_bsp
      • Multi-Master Mode
        • a10_pmbus_multimaster0_bsp
        • a10_pmbus_multimaster1_bsp
  4. Open the following the files in the Nios II command shell.
    • Master Mode
      • a10_pmbus
    • Slave Mode
      • a10_pmbus_slave0
      • a10_pmbus_slave1
    • Multi-Master Mode
      • a10_pmbus_multimaster0
      • a10_pmbus_multimaster1
  5. Open the downloaded .sof and program the software.
    1. In the Nios command shell, type the following:
      • Master Mode
        • a10_pmbus:
          nios2-download –g a10_pmbus.elf && nios2-terminal 
      • Slave Mode
        • a10_pmbus_slave0:
          nios2-download -g a10_pmbus_slave0.elf -i 0 && nios2-terminal -i 0
        • a10_pmbus_slave1:
          nios2-download -g a10_pmbus_slave1.elf -i 1 && nios2-terminal -i 1
      • Multi-Master Mode
        • a10_pmbus_multimaster0:
          nios2-download -g a10_pmbus_multimaster0.elf -i 0 && nios2-terminal -i 0
        • a10_pmbus_multimaster1:
          nios2-download -g a10_pmbus_multimaster1.elf -i 1 && nios2-terminal -i 1