Type writing to APSR without specifying a bitmask is deprecated

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

Type writing to APSR without specifying a bitmask is deprecated

ソリューションへジャンプ
2,797件の閲覧回数
wendersonolivei
Contributor IV

Hi all

 

I'm starting with KDS and I've found a problem on MQX Lite code. It's weird because this error is on PEx generated code (specifically on MQX Lite bean).

The error is at My_Project\MQXLITE\psp\cortex_m\core\M0\dispatch.S, in line 276, and have a error message "Type writing to APSR without specifying a bitmask is deprecated".

 

I've attached my project for references. Can someone help me?

Original Attachment has been moved to: KDS-problem.zip

ラベル(1)
0 件の賞賛
返信
1 解決策
1,925件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Oliveira,

I see the error in your project as well....sort of.

The console tab indicates that it is a warning and the problems tab indicates it is an error.

Since the application elf file is generated and I can download and run the application I believe that the problem tab is lying to us (actually guessing this is a KDS issue).

I will submit this to the KDS team to investigate.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,925件の閲覧回数
BlackNight
NXP Employee
NXP Employee

It is the GCC compiler which issues this as a warning.

The thing is that ARM has depreciated some forms of inline assembly, where you can

Can anyone find me a link where the ARM definition for CPSR_c resides? | LinkedIn

I agree with this post above that this is badly documented in the ARM assembler reference manual.

But it means that going forward the new syntax with a bitmask should be used.

Regards,

Erich

1,926件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Oliveira,

I see the error in your project as well....sort of.

The console tab indicates that it is a warning and the problems tab indicates it is an error.

Since the application elf file is generated and I can download and run the application I believe that the problem tab is lying to us (actually guessing this is a KDS issue).

I will submit this to the KDS team to investigate.

Regards,

David

0 件の賞賛
返信
1,925件の閲覧回数
wendersonolivei
Contributor IV

Hi David

It's true, even with the "error" I can download the program file on FRDM.

Thanks for help.

Regards.

0 件の賞賛
返信