SparkFun Forums 

Where electronics enthusiasts find answers.

Everything ARM and LPC
By mayotte1
In part 3 of the Sparkfun bootloader tutorial, I attempt to run the makefile as directed and get a error.

Creating Symbol Table: main.sym
arm-elf-nm -n main.elf > main.sym
/usr/bin/sh: /c/WinARM/bin/arm-elf-nm: Invalid argument
make.exe: *** [main.sym] Error 126

> Process Exit Code: 2
> Time Taken: 00:04

I tracked it down to be caused bu the final line ($NM) of this makefile snippet:

# Create a symbol table from ELF output file.
%.sym: %.elf
@echo $(MSG_SYMBOL_TABLE) $@
$(NM) -n $< > $@

Anybody got any idea of what the problem is. It appears to be the same makefile as the previous example in part 2 of the turorial.
By Matz
I know that this post is kind of old, but maybe this helps somebody:
I got the same error and found a solution for it.
The name of the directory in which I worked contained " - ". I renamed it and removed the spaces and replaced the "-" by "_" and after that it worked. Although the size after and size before doesn't work anymore but I couldn't figure out why that is and to be honest: I don't really care...
By Ace
That helped, thanks! However, I didn't have a dash, -, in my folder; I had renamed the original main.c to main-orig.c and it choked on that. You saved me HOURS!
By Matz
Glad I could help!
I have a few more information on this. Since my hard drive crashed I had to reinstall my Win7 and had to dig into this again.
The problem seems to be that the utils which come with Winarm 20060606 are out of date (quite obvious) and thus are not working with Win Vista and 7. A workaround is to update the files from somewhere else. On the Winarm homepage there are two test releases (20070505 and 20080331). I took the utils from the latter. Another possibility should be to update the utils directly from MinGW. That's the place they were taken from in the first place.
Another possibility could be to use Gnuarm instead, but I haven't tried this.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]