Linker Command File (LCF) problem with CW 10.6

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

Linker Command File (LCF) problem with CW 10.6

1,222件の閲覧回数
leeyeel
Contributor I

Hi everyone,

I am confused when reading the Note CodeWarrior Linker Command File (LCF) for Qorivva/PX .  

In the Listing 6. C source file,  the variable long bss_i should be forcefully placed into ".data" section, but in fact, bss_i is placed in ".bss" section. So why?

pastedImage_4.png

pastedImage_3.png

The note is here:

https://www.nxp.com/docs/en/application-note/AN4497.pdf 

タグ(1)
2 返答(返信)

1,085件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

I checked the code from application note and I can confirm the declspec with long bss_i does not work, which is correct according to declspec implementation, so there is incorrect declspec usage in the application note.

Please use the code below:

#pragma push
#pragma section sdata_type ".data" ".data"

long bss_i;

#pragma pop

If you have any other question, please feel free to write me back.

Regards,

Martin

1,085件の閲覧回数
leeyeel
Contributor I

Thanks for your reply.

Regards

0 件の賞賛
返信