Updated free makefile, linker script and low level code

I pushed some changes to https://github.com/scompo/stellaris-launchpad-template-gcc .
I basically fixed some compile warnings, cleaned up the makefile (thanks wollow) and used a dinamic stack allocation.

Advertisements

6 thoughts on “Updated free makefile, linker script and low level code

  1. Sorry for the duplicate reply, I think the problem may be in the template’s linker script. Hence posting the same problem description here.

    When I run your template in debug mode, var_init doesn’t seem to be initialized with it’s expected value. Upon modifying it’s initialization to 0xAA55AA55, I see that pattern when memory browsing in the flash but it doesn’t seem to get loaded properly.

  2. I finally managed to find a solution. I’m using the GCC ARM Embedded toolchain (https://launchpad.net/gcc-arm-embedded) under windoze.

    By looking a the map file I could see that the starting point of data section and the _end_text marker were not the same. Apart from the *(.text.*) I also added *(.text) to the linker script and that solved it. Just to be safe, I also added the following sections explicitly into text (even though their size is currently 0, that may changed depending on the code):
    *(.glue_7)
    *(.glue_7t)
    *(.vfp11_veneer)
    *(.v4_bx)
    *(.dyn)
    *(.iplt)
    *(.rel.dyn)
    *(.rel.iplt)

  3. Mauro,
    First of all thank you for your code. Worked like a champ with the TI EK-TM4C123GXL board. A little annoyance that I was hoping you could point out the solution to me:
    I get the following warnings:
    c:/program files (x86)/gnu tools arm embedded/4.8 2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:../startup_src/TM4C.ld:1: ignoring invalid character `\357′ in expression
    c:/program files (x86)/gnu tools arm embedded/4.8 2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:../startup_src/TM4C.ld:1: ignoring invalid character `\273′ in expression
    c:/program files (x86)/gnu tools arm embedded/4.8 2014q2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:../startup_src/TM4C.ld:1: ignoring invalid character `\277′ in expression

    What and where are these characters ?
    thanks much if you can help.
    gopal

    1. Looks like gcc complained about the character encoding of the file, mine it’s utf-8.. Take a look at that in an editor at the files to see if it’s something wrong or characters that doesn’t look right on windows..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s