2594 views|3 replies

227

Posts

0

Resources
The OP
 

How to migrate from GCC Linker to SEGGER Linker in Embedded Studio? [Copy link]

 

Segger's linker is fast, flexible, easy to use, supports Cortex-M microcontrollers, and is designed specifically for the needs of embedded developers. The instructions of its linker script file are similar to IAR's, and there is no difficulty in writing it from scratch. SEGGER Linker can easily be used to replace GNU Linker in existing projects.

Migrating to an existing Embedded Studio project

In a standard Embedded Studio project, the memory layout of the target is defined in *_MemoryMap.xml. This memory map file can be reused with the SEGGER Linker, so that the example linker script SEGGER_Flash.icf can be used directly in most cases.

SEGGER Linker does not use section placement file *_placement.xml, instead it uses SEGGER linker script (*.icf). Writing SEGGER linker script is simpler than GNU linker script.

For a default project with only one FLASH and one RAM area, the following steps need to be completed:

1. Copy the SEGGER linker script template file from $(StudioDir)/samples/SEGGER_Flash.icf to your project directory.

2. Copy the matching startup file from $(StudioDir)/samples/SEGGER_THUMB_Startup.s to your project directory.

3. Set the Linker option in the project options to "SEGGER".

4. Set the Linker Script File of the linker option in the project options to the linker script in the project directory.

5. Delete thumb_crt0.s from the project

6. Add SEGGER_THUMB_Startup.s to your project

If your memory layout includes multiple FLASH or RAM regions, you can tell SEGGER Linker to automatically place multiple regions:

place in RAM1 then RAM2 { ... };

If you added additional sections in *_placement.xml you can also do this in the SEGGER Linker script:

place in RAM { ..., .myregion };

SEGGER Linker also provides more features to give you a wider range of placement options to better utilize your target memory. For more details, please refer to the SEGGER Linker User Guide in Embedded Studio. The specific location is as follows: From the Embedded Studio menu Help->Contents-> Using the SEGGER Linker -> SEGGER Linker User Guide

Latest reply

The previous version of win10 also had input problems, but the later versions fixed it. A few days ago, I installed it on my colleague's win7, and the problem with inputting Chinese characters occurred again.   Details Published on 2021-1-13 22:45
Personal signature

欢迎关注“麦克泰技术”

 

7422

Posts

2

Resources
2
 

I also plan to promote the free version of Segger Studio in the company. The only drawback is that it seems to have problems with Chinese input on Windows 7.

 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

227

Posts

0

Resources
3
 
freebsder posted on 2021-1-11 23:16 I also plan to promote the free version of segger studio in the company. The only drawback is that this thing seems to have problems with Chinese input on win7.

Maybe the computer system version is different. I have never encountered Win10.

 
Personal signature

欢迎关注“麦克泰技术”

 
 

7422

Posts

2

Resources
4
 
MamoYU posted on 2021-1-12 16:55 Maybe the computer system version is different. I have never encountered Win10

The previous version of win10 also had input problems, but the later versions fixed it. A few days ago, I installed it on my colleague's win7, and the problem with inputting Chinese characters occurred again.

 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list