43
Copyright (C) 2020-2021 Reserved by ASIX Electronics Corporation, All Rights Reserved.
AX58200
Motor Control User Guide
Reference Design User Guide
6-4 IAR EWARM Method
As the method of ARM KEIL MDK, please
take off the USB power cable, modify “
DIP of ICE
” switch and
ensure
“
Debug Port
” has been connect to your USB host.
Then open the IAR project by double-
click the project file “
MotorControl.eww
” in the directory.
“
YOUR_BSP_FOLDER\SampleCode\Ethercat_MotorControl_Reference_Design\IAR\
”.
You will see below screen and items:
(1) BECKHOFF SSC files and related source files of AX58200
(2) Motor control stack code
(3) Main program file of Motor Control Reference Design
(4)
Click on menu “
Project/Rebuild All
” for rebuild all target files
(5)
Click on menu “
Project/Download/Dowbload active application
” for download firmware into
AX58200
Figure 6 - 33
If everything is fine, you should see
Build
window without errors after click “
Rebuild All
”.
The output binary file “
AX58200_MotorControl.bin
” in the directory
“
YOUR_BSP_FOLDER\SampleCode\Ethercat_MotorControl_Reference_Design\IAR\Release\Exe\
”
Now you can download the firmware by click “
Download active application
”. If the progress complete, the
AX58200 will auto-restart.