Re: Help with embedded code linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You need to define the linker symbols for the functions. You could do
that in the linker script, but there are probably better ways. Maybe ask
the binutils mailing list about how to define a lot of symbols.

On 21.07.2014 12:17, Grzesiek Gajoch wrote:
> Thanks for reply,
> faster programmer is not a option - programming is done via WiFi (it
> has to be done that way).
> Yes, that's what I want to do - but the question is how to tell the
> linker about libraries (which are already somewhere in memory)?
> Pozdrawiam,
>
>          Grzegorz Gajoch
>
>
>
> 2014-07-21 11:53 GMT+02:00 Niklas Gürtler <profclonk@xxxxxxxxx>:
>> That is possible by placing the library in one part of the flash via a
>> linker script, and the remainder of the code in another part.
>> Alternatively you could buy a faster programming device such as Segger
>> J-Link which can flash even big microcontrollers in <1s ...
>>
>> On 21.07.2014 11:37, Grzesiek Gajoch wrote:
>>>  all,
>>> My "problem" is as follows:
>>> I have relatively big code for STM32 microcontroller (~300KB binary file).
>>> Every time I want to test new software version I have to recompile all
>>> of it and then reflash whole memory (which takes time).
>>>
>>> I have a question:
>>> is it possible to compile "library" part of code (it does not change
>>> but takes a lot of memory) and burn it in static place in memory,
>>> when compiling "user" code (it uses functions from library) tell the
>>> linker somehow to map jumps to part of memory where the lib is (i.e.
>>> take the adresses from memory map of staticly burned lib) - the goal
>>> is to place it in "user" place in memory (and only reflash this part).
>>>
>>> Thanks for replay and help!
>>> Best regards,
>>>
>>>          Grzegorz Gajoch





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux