MCUXPresso IDE:What is the link script generation mechanism

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXPresso IDE:What is the link script generation mechanism

ソリューションへジャンプ
3,877件の閲覧回数
Vinos
Contributor III

CPU:I.MX RT1176

IDE:MCUXPresso IDE 11.8

 

In the I.MX series of microcontrollers, headers need to be filled in order to let the L1 BootLoader know how to boot the program. One of these fields is the XMCD, which can be used to initialize the peripherals of FlexSPI or SEMC interfaces.

I added an XMCD component through MCUXPresso IDE, but now there is a problem that the automatically generated link script does not declare the .boot_hdr.xmcd_data field, so the sections in xmcd.c are not linked into the bin file.

If I uncheck Manage Link Script and manually modify the .ld file in the Debug directory to add an xmcd section, then the xmcd section can be filled. However, if I want to change or delete some sections through the GUI of MCUXPresso IDE in the future, it will be very troublesome.

Is this a bug in MCUXPresso IDE? How should I change its link script generation mechanism?

0 件の賞賛
返信
1 解決策
3,827件の閲覧回数
ErichStyger
Specialist I

The IDE uses 'Freemarker' scripts for the generated linker files (see the user manual or how I use it here: https://mcuoneclipse.com/tag/freemarker/ ).

That way you can change or update with local script files the generated linker file.

I hope this helps,

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
3,828件の閲覧回数
ErichStyger
Specialist I

The IDE uses 'Freemarker' scripts for the generated linker files (see the user manual or how I use it here: https://mcuoneclipse.com/tag/freemarker/ ).

That way you can change or update with local script files the generated linker file.

I hope this helps,

Erich

0 件の賞賛
返信
3,816件の閲覧回数
Vinos
Contributor III
As long as you create a "linkscripts" directory and then create some .ldt files, can the "Manage linker script" function of the MCUXPresso IDE generate link files based on these .ldt files?

Is there a detailed syntax? Does this directory name have to be "linkscripts" and what are the requirements for the file names in the directory?

Thanks for you reply.
0 件の賞賛
返信
3,844件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

By default, MCUXpresso IDE projects use a managed linker script mechanism that automatically generates a linker script file without user intervention. This approach is helpful for most of the users but there are some specific scenarios where you would want to use a custom one.

Apparently, this is done only with DCD, for xMCD you need to add it manually. 
I consider helpful that this is added to MCUXpresso as DCD is added so let me inform the corresponding team about this. 

Best regards,
Omar