[mc1322x] CodeSourcery , flash loader
Andrew Pullin
pullin at berkeley.edu
Wed May 5 21:25:42 EDT 2010
One of their older version of the CodeCourcery toolchain seems to
compile everything without errors.
The "2008q1-126" release, here:
http://www.codesourcery.com/sgpp/lite/arm/portal/release323
Everything I've tried works (printf, flasher, blink), although the code
size is a little bigger than the latest release.
I guess that indicates that there is actually a bug in binutils/gas
source tree, or at least the ARM port of it, for version 2.19.51 ? I
submitted the bug to the CodeSourcery guys, although maybe I should also
submit it to the binutils maintainers, too.
-Andrew
On 05/05/2010 09:06 AM, Dean Hall wrote:
> Andrew, I was able to recreate the issue of the CodeSourcery
> assembler segfault on start-romvars.s. I built the CS toolchain
> manually on Mac OS X and got this error when building libmc1322x:
>
> arm-none-eabi-gcc -E -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os
> -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections
> -Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin
> -ffreestanding -isystem
> /Users/dwhall/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/include
> -pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM
> -D__ARM__ -mthumb -mthumb-interwork -DUSE_INTS -DUSE_ROM_VECTS
> -DUSE_ROM_VARS -o ../src/start-romvars.s ../src/start.S
> arm-none-eabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os
> -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections
> -Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin
> -ffreestanding -isystem
> /Users/dwhall/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/include
> -pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM
> -D__ARM__ -mthumb -mthumb-interwork -c -o ../src/start-romvars.o
> ../src/start-romvars.s
> arm-none-eabi-gcc: Internal error: Bus error (program as)
> Please submit a full bug report.
> See<http://gcc.gnu.org/bugs.html> for instructions.
> make[1]: *** [../src/start-romvars.o] Error 1
>
> Looks like I am going to go build the straight GNU ARM toolchain manually now.
>
> !!Dean
>
>
> On Fri, Apr 30, 2010 at 8:30 PM, Andrew Pullin<pullin at berkeley.edu> wrote:
>
>> Here's a couple of things that I've discovered in my tinkering:
>>
>> CodeSourcery released a new version of their ARM toolchain recently, and it
>> supposedly fixes a lot of issue for minimal ARM targets, specifically the
>> atexit() calls. It's pretty nice to just be able to unpack a TAR file and
>> not have to build the whole toolchain!
>>
>> <snip>
>>
>> The downside: none of application that reference NVM code seem to compile.
>> The compiler segfaults when trying to assemble start-romvars.o . No idea
>> why, though.
>>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>
More information about the mc1322x
mailing list