Type writing to APSR without specifying a bitmask is deprecated

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

Type writing to APSR without specifying a bitmask is deprecated

Jump to solution
2,246 Views
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

Labels (1)
0 Kudos
1 Solution
1,374 Views
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

View solution in original post

0 Kudos
3 Replies
1,374 Views
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,375 Views
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 Kudos
1,374 Views
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 Kudos