AM335x ICEv2 flash erase

''' Starting in v4.3, Processor SDK documentation is no longer hosted on processors wiki. ''' Please bookmark the new links: = Introduction = The AM3359 ICE development board from Texas Instruments comes pre-loaded with a default application in the on-board SPI flash device. In order to boot Linux from the SD card you will need to clear the SPI flash so that the boot process will fall back to SD card boot mode. The following steps will clear the SPI flash. I performed these steps with CCS v6.1.3 on a Ubuntu 14.04 host system
 * Linux, RT-Linux: http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/index.html
 * RTOS: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index.html
 * Android: http://software-dl.ti.com/processor-sdk-android/esd/docs/latest/android/index.html

= Steps =
 * 1) Mare sure pins 1 and 2 of Jumper J5 (sysboot) are connected on the board
 * 2) Make sure that USB cable is connected from the AM3359 ICE board to your host development machine
 * 3) Launch Code Composer Studio (CCS)
 * 4) * If you do not have CCS, download it here: CCS Download
 * 5) Create a target configuration file in CCS to connect to the AM3359 ICE board
 * 6) * Click File -> New-> Target Configuration File
 * 7) * Filename : AM3359-ice-v2.ccxml. Check "Use shared location" to be available to anyone who uses the workspace. Click Finish. A window opens up which is to configure the connection details
 * 8) ** Connection: "Texas Instruments XDS100v2 USB Debug Probe"
 * 9) ** Device: ICE_AM3359
 * 10) ** Click Save
 * 11) Launch your AM3359 ICE Target Configuration
 * 12) * Click Window -> Show View -> Target Configurations
 * 13) * Right click on the AM3359-ice-v2.ccxml file and the click Launch Selected Configuration
 * 14) * This should switch your current perspective to the CCS Debug perspective. If it doesn't, click View -> Debug to get to the CCS Debug perspective
 * 15) Connect the debugger to the CortexA8 core
 * 16) * Right click on Texas Instruments XDS100v2 USB Debug Probe_0/CortxA8 listed in the Debug view and select Connect Target
 * 17) Load the SPI flash programmer into the CortexA8 core
 * 18) * Download the SPI flash programmer and unzip it: [[File:Isdk_spi_flasher.zip]]
 * 19) * Highlight the Texas Instruments XDS100v2 USB Debug Probe_0/CortxA8 by clicking on it
 * 20) * Click Run -> Load -> Load Program
 * 21) * Browse to the isdk_spi_flasher.out file (that you just downloaded and unzipped) and click OK
 * 22) Run the SPI flash programmer on the CortexA8
 * 23) * Highlight the Texas Instruments XDS100v2 USB Debug Probe_0/CortxA8 by clicking on it
 * 24) * Click Run -> Resume
 * 25) At this point the SPI flash programmer is running on the CortexA8 and we just need to follow the prompts to clear the flash
 * 26) * If it isn't opened already, open the Console view by clicking Window -> Show View -> Console
 * 27) * The program will give you the following prompts, type the responses and press Enter
 * 28) ** Enter Operation [1 - Flash ] [2 - Erase] : 2
 * 29) ** Enter the offset [in Hex]: 0
 * 30) ** Enter size to be erased in Kilo bytes: 64
 * 1) ** Enter size to be erased in Kilo bytes: 64

Once the program outputs 'Erase complete. Exiting' then you are finished! You can now disconnect the debugger and close CCS. Then, power down the board, and connect back pins 2 and 3 on Jumper J5 (sysboot). After that, you can put your SD card loaded with Linux into the ICE board and reset it to boot Linux.