S32DS for PPC linker script support of ASSERT

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

S32DS for PPC linker script support of ASSERT

ソリューションへジャンプ
1,483件の閲覧回数
michaelgoudey
NXP Employee
NXP Employee

I'm wondering if S32DS for PPC v1.0 supports ASSERT within linker scripts.  I've been told it's not recognized.  The binutils 2.24 documentation online suggests ASSERT is supported.

 

Thanks,

 

Michael Goudey

ラベル(1)
1 解決策
1,310件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hi Michael,

I have done simple test and and modify stack section in linker file. The code is following:

.stack (NOLOAD) : ALIGN(16)

    {

      __HEAP = . ;

      _end = . ;

      end = . ;

      . += __HEAP_SIZE ;

      __HEAP_END = . ;

      _stack_end = . ;

      . +=  __STACK_SIZE ;

      _stack_addr = . ;

      __SP_INIT = . ;

      . += 4;

      ASSERT (1, "Error: No room left for the stack");

    } > m_data

This is possible to compile without error.

Regards,

Martin

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,310件の閲覧回数
michaelgoudey
NXP Employee
NXP Employee

Hi Martin,

Thanks for verifying this.  I have also tested this now and it works exactly as you say.

Regards, Michael Goudey

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

Hi Michael,

I have done simple test and and modify stack section in linker file. The code is following:

.stack (NOLOAD) : ALIGN(16)

    {

      __HEAP = . ;

      _end = . ;

      end = . ;

      . += __HEAP_SIZE ;

      __HEAP_END = . ;

      _stack_end = . ;

      . +=  __STACK_SIZE ;

      _stack_addr = . ;

      __SP_INIT = . ;

      . += 4;

      ASSERT (1, "Error: No room left for the stack");

    } > m_data

This is possible to compile without error.

Regards,

Martin

0 件の賞賛