Type writing to APSR without specifying a bitmask is deprecated

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Type writing to APSR without specifying a bitmask is deprecated

跳至解决方案
2,798 次查看
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,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 项奖励
回复
3 回复数
1,926 次查看
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,927 次查看
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,926 次查看
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 项奖励
回复