资源预览内容
第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
亲,该文档总共3页全部预览完了,如果喜欢就下载吧!
资源描述
Flash Programmer5 Command Line Interface 5.1 Options To get all available options in the command line interface, run the SmartRF04ProgConsole.exe in a command window or in the IAR workbench without any parameters/arguments. A list of all available options will then be printed out. These options are the same as the ones available in the GUI version of the Flash programmer, please refer to chapter 4 for a description of these. 5.2 Plug-in to IAR Workbench The command line interface can be integrated in the IAR Workbench. To setup IAR with this feature follow the instructions below. 5.2.1 Setup Start IAR Workbench and choose “Configure Tools”, from the Tools menu, Figure 7. Figure 7: Tools Menu Press “New”, and add the information present in Table 2, see Figure 8. Field Value Menu Text: FlashProgram Command: C:Program FilesChipconFlashProg SmartRF04ProgConsole.exe1Argument: S() EPV F=$TARGET_PATH$ K(0) Table 2: Flash Programmer Setup 1Insert the complete path to the Command Line Flash Programmer SWRU069A Page 10 of 13 Flash ProgrammerFigure 8: Configure Tools 5.2.2 Use After setup, a new target is placed on the Tools menu. Figure 9: Using Flash Programmer from IAR Workbench Setup your project to generate hex file as primary output (Figure 11), compile and link, and choose “Flash Program” from the Tools menu. A command line window will be displayed, Figure 10. After the “S” option an empty parenthesize is present. If this parenthesize is empty, the first available development card is used. If more than one development card is connected, fill in the ID number for the card you want to use in the empty parenthesize. The “K(0)” option will retain the IEEE address while programming. SWRU069A Page 11 of 13 Flash ProgrammerUse K(0) on CC2430 F-128, K(1) on CC2430 F-64 and K(2) on CC2430 F-32 If the K option is removed the IEEE address is not retained. The “EPV” option is for “Erase, program and verify” Figure 10: Command Line Window Press OK and the hex file will be downloaded. Figure 11: Generate HEX file as primary output Note: If the output format is hex file the debugger can not be used. To produce a hex file for banked code, please see the manual named “Chipcon IAR User Manual” available from www.chipcon.com. SWRU069A Page 12 of 13
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号