"All segments to ram have to begin at address aligned to 32 Please add ".=ALIGN(32);" before "} > ram" . codewarrior

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

"All segments to ram have to begin at address aligned to 32 Please add ".=ALIGN(32);" before "} > ram" . codewarrior

ソリューションへジャンプ
709件の閲覧回数
chandrasekarkan
Contributor III

When I to build a project for custom board I get this as warning... where can I fix this in my bsp library? I used TWRK60N512's bsp and cloned it for our custom board....

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
432件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Chandra,

This is the path where you can find .lcf of twrk60n512:

C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60n512\cw

In 'Linker Input' on menu Project > properties > C/C++ Build > Settings you will see that the project is pointing to the following path

C:\Freescale\Freescale_MQX_4_0\lib\twrk60n512.cw10\debug\bsp

This is because every time you recompile BSP library a copy of the BSP files is created under this directory to avoid overwritting the original files.

If you cloned a library you must see similar paths for you library. In as the warning says you must add ".=ALIGN(32);" just before "} > ram" in .lcf.

If you are using GCC compiler the the path would be C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60n512\gcc_cw and the linker file has .ld extension.

Hope this helps.

Carlos

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
433件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Chandra,

This is the path where you can find .lcf of twrk60n512:

C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60n512\cw

In 'Linker Input' on menu Project > properties > C/C++ Build > Settings you will see that the project is pointing to the following path

C:\Freescale\Freescale_MQX_4_0\lib\twrk60n512.cw10\debug\bsp

This is because every time you recompile BSP library a copy of the BSP files is created under this directory to avoid overwritting the original files.

If you cloned a library you must see similar paths for you library. In as the warning says you must add ".=ALIGN(32);" just before "} > ram" in .lcf.

If you are using GCC compiler the the path would be C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60n512\gcc_cw and the linker file has .ld extension.

Hope this helps.

Carlos

0 件の賞賛
返信