150 likes | 332 Views
SAM7X-EK Hands-On - Flash Programming. IAR EWARM Flash Loader Utility. SAM7X-EK IAR Flash Loader Utility Hands-On. Software requirements Hands-On Software File: AT91SAM7X256-BasicTools-IAR4_30A-1_21.zip IAR EWARM 4.30A KS Development Tools Hardware requirements SAM7X-EK Evaluation Kit
E N D
SAM7X-EK IAR Flash Loader Utility Hands-On • Software requirements • Hands-On Software File: • AT91SAM7X256-BasicTools-IAR4_30A-1_21.zip • IAR EWARM 4.30A KS Development Tools • Hardware requirements • SAM7X-EK Evaluation Kit • J-Link or SAM-ICE JTAG/ICE Interface • USB Device Cable
IAR EWARM Flash Loader Utility • Connect the JTAG/ICE Interface • Power up the board • Extract the hands-on software • AT91SAM7X256-BasicTools-IAR4_30A-1_21.zip • When extracted, the following directories are available: • In directory AT91SAM7X256-BasicTools-IAR4_30A-1_21\AT91SAM7X-BasicTools\compil open the existing workspace BasicIAR.eww
IAR EWARM Flash Loader Utility • Select Flash Debug workspace • In menu project, select options, Category Debugger andTab Download • Option Use flash loader is selected allowing download in Flash using the IAR Flash loader utility
IAR EWARM Flash Loader Utility • Build the project • Launch the debug session • The project has been programmed in the on-chip Flash memory • You can now run/debug from Flash • Press Go • LEDs are blinking
Generate a binary file in IAR EWARM • Select Binary workspace • In menu project, select options, Category Linker andTab Output • Output file format raw-binary is selected • Build the project • Find where the binary file has been generated
SAM7X-EK SAM-BA Hands-On • Software requirements • Binary File: • BasicIAR.bin • SAM-BA GUI Application installed on your computer • Hardware requirements • SAM7X-EK Evaluation Kit • USB Device Cable
SAM7X-EK SAM-BA Boot • Insert ERASE Jumper (J8) • Power up the board • Remove ERASE Jumper (J8) • Power down and up the board • Connect the USB Device Interface (J6) to your PC using the USB Device Cable • Start SAMBA GUI Application • Select theSAM7X256-EKand chooseUSB Connection
Download a binary file with SAM-BA • SelectFLASHtab • Press onSend File Name Browsebutton • ChooseBasicIAR.bin previously generated and pressOpen • PressSend Filebutton • ChooseBoot from Flash (GPNVM2) inscriptsrolling menu and pressExecute • Close SAM-BA • Power up the board Boot from Flash (GPNVM2)
SAM7X-EK SAM-PROG Hands-On • Software requirements • Binary File: • BasicIAR.bin • AT91-ISP (SAM-PROG) Application installed on your computer • Hardware requirements • SAM7X-EK Evaluation Kit • USB Device Cable
SAM7X-EK SAM-BA Boot • Insert ERASE Jumper (J8) • Power up the board • Remove ERASE Jumper (J8) • Power down and up the board • Connect the USB Device Interface (J6) to your PC using the USB Device Cable • Start SAM-PROG Application
Download a binary file with SAM-PROG • Browse file BasicIAR.bin • PressWrite Flashbutton • Check StatusSuccess • Close SAM-PROG • Power up the board