S32DS for ARM v2.2 issue

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

S32DS for ARM v2.2 issue

1,985件の閲覧回数
曾经怀念
Contributor II

Hi all

      I need some doc about #pragma command.

especially about the introduction of SECTION

here is the demo in codewarrior

#pragma push /* Save the current state */
#pragma section sconst_type ".section1"
const uint8_t data1 = 0;
#pragma pop
pastedImage_2.png
タグ(3)
0 件の賞賛
返信
3 返答(返信)

1,897件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello,

Unfortunately, this directive is not available is S32DS but you can look at the next post:

https://community.nxp.com/docs/DOC-342073 

Best Regards,

Alexis Andalon

0 件の賞賛
返信

1,897件の閲覧回数
曾经怀念
Contributor II

Hello Alexis

So the following usage is correct?

#define START_RAM_SECTION   __attribute__((section(".code_ram")))

#define STOP_RAM_SECTION

START_RAM_SECTION   

void test(void)

{

.........

}

STOP_RAM_SECTION

0 件の賞賛
返信

1,897件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello 陈 金怀,

In case of code placing, check the following document:

https://community.nxp.com/docs/DOC-334030 

Best Regards,

Alexis Andalon

0 件の賞賛
返信