15
SAM7X-EK Hands-On - Flash Programming

SAM7X-EK Hands-On - Flash Programming. IAR EWARM Flash Loader Utility

Embed Size (px)

Citation preview

SAM7X-EKHands-On - Flash Programming

IAR EWARM Flash Loader Utility

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

IAR EWARM Flash Loader Utility

• Select Flash Debug workspace

• In menu project, select options, Category Debugger and Tab Download

• Option Use flash loader is selected allowing download in Flash using the IAR Flash loader utility

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

Generate a binary file in IAR EWARM

• Select Binary workspace

• In menu project, select options, Category Linker and Tab Output

• Output file format raw-binary is selected

• Build the project

• Find where the binary file has been generated

SAM-BA

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

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 the SAM7X256-EK and choose USB Connection

ARM-Based Products GroupMarch 2006

Download a binary file with SAM-BA

• Select FLASH tab

• Press on Send File Name Browse button

• Choose BasicIAR.bin previously generated and press Open

• Press Send File button

• Choose Boot from Flash (GPNVM2) in scripts rolling menu and press Execute

• Close SAM-BA

• Power up the board

Boot from Flash (GPNVM2)

SAM-PROG

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

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

ARM-Based Products GroupMarch 2006

Download a binary file with SAM-PROG

• Browse file BasicIAR.bin

• Press Write Flash button

• Check Status Success

• Close SAM-PROG

• Power up the board