S32DS for ARM v2.2 issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS for ARM v2.2 issue

940 Views
曾经怀念
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
Tags (3)
0 Kudos
3 Replies

852 Views
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 Kudos

852 Views
曾经怀念
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 Kudos

852 Views
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 Kudos