I have to admit that I am kind of weird. I am an old hobbyist starting from the Intel 4004 days, but I have ignored ARM for decades. It is only very recent that I start to poke at TI's Stellaris Launchpad when a friend loaned me one. There is a lot for me to catch up.
To start with, I tried to blink the RGB LEDs on the Launchpad. This is similar to one of the TI examples "Blinky". But I did it with the IAR Assembler and Linker to generate a binary file. And I used FLASHER to download that binary file to the Launchpad. It works the way I intended -- an infinity loop that cycles through 7 colors, a short pause, 3 prime colors, a long pause, and repeat.
Here is the binary file: 8154.Blinky.bin.txt -- But you need to rename that file by deleting the last four characters ".txt" so that the file name becomes "Blinky.bin".
And here is the assembly listing:
###############################################################################
# #
# IAR Assembler V6.40.1.53790/W32 for ARM 03/Feb/2013 07:10:25 #
# Copyright 1999-2012 IAR Systems AB. #
# #
# Source file = C:\MyWork\Bllinky.s #
# List file = C:\MyWork\Debug\Bllinky.lst #
# Object file = C:\MyWork\Debug\Bllinky.o #
# Command line = C:\MyWork\Bllinky.s -OC:\MyWork\Debug\ -s+ -M<> #
# -w+ -r -LC:\MyWork\Debug\ -t8 --cpu Cortex-M4F #
# --fpu VFPv4_sp #
# #
###############################################################################
1 PUBLIC __iar_program_start
2 SECTION .intvec : CODE
3 DATA
4 00000000 00800020 DC32 0x20008000
5 00000004 ........ DC32 __iar_program_start
6 CODE
7 __iar_program_start:
8 00000008 0848 main: LDR R0, rcgc2
9 0000000A 2021 MOVS R1, #0x20 ;clockF
10 0000000C 0160 STR R1, [R0]
11 0000000E 0848 LDR R0, dirF
12 00000010 48F22E01 MOV R1, #0x802E ;magic#
13 00000014 0160 STR R1, [R0]
14 00000016 C0F81C11 STR R1, [R0, #0x11C];denF
15 0000001A C0F22002 loop: MOVT R2, #0x20
16 0000001E 013A wait: ADDS R2, #-1
17 00000020 FDD1 BNE wait
18 00000022 40F8041C STR R1, [R0,#-4] ;dataF
19 00000026 4FEA7101 ROR R1, R1, #1
20 0000002A F6E7 B loop
21 DATA
22 0000002C 08E10F40 rcgc2: DC32 0x400FE108
23 00000030 00540240 dirF: DC32 0x40025400
24 END
##############################
# CRC:0 #
# Errors: 0 #
# Warnings: 0 #
# Bytes: 52 #
##############################