Visible to Intel only — GUID: bff1480689025030
Ixiasoft
1. About the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
2. Features of the Drive-on-Chip Design Example for Intel® MAX® 10 Devices
3. Getting Started with the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
4. Rebuilding the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
5. About the Scaling of Feedback Signals
6. Motor Control Software
7. Functional Description of the Drive-on-Chip Design Example
8. Achieving Timing Closure on a Motor Control Design
9. Design Security Recommendations
10. Reference Documents for the Drive-on-Chip Design Example
11. Document Revision History for AN 773: Drive-on-Chip Design Example for Intel® MAX® 10 Devices
3.1. Software Requirements for the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
3.2. Hardware Requirements for the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
3.3. Downloading and Installing the Design
3.4. Setting Up the Motor Control Board with your Development Board for the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
3.5. Importing the Drive-On-Chip Design Example Software Project
3.6. Configuring the FPGA Hardware for the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
3.7. Programming the Nios II Software to the Device for the Drive-On-Chip Design Example for Intel® MAX® 10 Devices
3.8. Applying Power to the Power Board
3.9. Debugging and Monitoring the Drive-On-Chip Design Example with System Console
3.10. System Console GUI Upper Pane for the Drive-On-Chip Design Example
3.11. System Console GUI Lower Pane for the Drive-On-Chip Design Example
3.12. Controlling the DC-DC Converter
3.13. Tuning the PI Controller Gains
3.14. Controlling the Speed and Position Demonstrations
3.15. Monitoring Performance
4.1. Changing the Intel® MAX® 10 ADC Thresholds or Conversion Sequence
4.2. Generating the Qsys System
4.3. Compiling the Hardware in the Intel Quartus Prime Software
4.4. Generating and Building the Nios II BSP for the Drive-On-Chip Design Example
4.5. Software Application Configuration Files
4.6. Compiling the Software Application for the Drive-On-Chip Design Example
4.7. Programming the Design into Flash Memory
7.1. Processor Subsystem
7.2. Six-channel PWM Interface
7.3. DC Link Monitor
7.4. Drive System Monitor
7.5. Quadrature Encoder Interface
7.6. Sigma-Delta ADC Interface for Drive Axes
7.7. Intel® MAX® 10 ADCs
7.8. ADC Threshold Sink
7.9. DC-DC Converter
7.10. Motor Control Modes
7.11. FOC Subsystem
7.12. DEKF Technique
7.13. Signals
7.14. Registers
7.11.1. DSP Builder for Intel FPGAs Model for the Drive-on-Chip Designs
7.11.2. Avalon Memory-Mapped Interface
7.11.3. About DSP Builder for Intel FPGAs
7.11.4. DSP Builder for Intel FPGAs Folding
7.11.5. DSP Builder for Intel FPGAs Model Resource Usage
7.11.6. DSP Builder for Intel FPGAs Design Guidelines
7.11.7. Generating VHDL for the DSP Builder Models for the Drive-on-Chip Designs
Visible to Intel only — GUID: bff1480689025030
Ixiasoft
4.7. Programming the Design into Flash Memory
For the Drive-On-Chip Design Example for Intel® MAX® 10 devices, you can store the FPGA configuration file in the Intel® MAX® 10 on-chip flash memory; you can store the software executable in external QSPI flash memory.
- Rebuild the design with the Nios II reset vector pointing to the QSPI memory
The quartus.ini file with PGMIO_SWAP_HEX_BYTE_DATA=ON content is required in the project directory.
- Compile the software and generate the software programmer object file.
- In the Nios II SBT, open the BSP editor.
- Unselect all advanced.hal.linker option.
- Modify the linker script to point the reset section to the qspi memory.
- Build the BSP project and the main project.
- Generate the .hex file by right-clicking DOC_TANDEM_MAX10 > Make Targets > Build > mem_init_generate.
- In the Quartus Prime software click File > Convert Programming Files and enter these settings:.
- Configuration device: CFI_512Mb.
- Mode: 1-bit Passive Serial.
- Change the file name to the desired path and name. For example SW.pof.
- In Input files to convert, remove SOF Page_0.
- Click ADD HEX Data,
- Choose the generic_quad_spi_controller_0.hex file generated previously in step 2e.
This file is in the mem_init subdirectory of the software project.
- Select Absolute Addressing and click OK.
- Click Generate to create the .pof file.
- Program the software into QSPI flash.
- Ensure DIP SW2 is set to OFF-ON-ON-ON.
- Download the parallel Flash Loader from rocket boards https://rocketboards.org/foswiki/pub/Documentation/AlteraMAX1010M50RevCDevelopmentKitLinuxSetup/max10_qpfl.sof.
- Program the parallel flash loader (max10_qpfl.sof) into the MAX 10 device to program the QSPI flash, using Quartus Programmer.
- Right click on the MAX 10 FPGA and select Edit > Change File.
- Choose the max_qpfl.sof file.
- Turn on MAX 10 device under Program/Configure.
- Click Start to start programming.
- Click on Auto Detect after max10_qpfl.sof was successful.
A new QSPI flash device is shown, attached to the MAX10.
- Program the software image into QSPI flash.
- Right click on the SQPI device and select Edit > Change File
- Choose the generated .pof file (SW.pof).
- Check the .hex file under Program/Configure.
- Click Start to start programming.
- Program hardware .sof file into the MAX 10 FPGA.
- Right click on the MAX 10 FPGA and select Edit > Change File.
- Choose the .sof file generated from Quartus Prime project compilation.
- Click Start to start programming.
Related Information