CW11 output declaration syntax error when compile asm code

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

CW11 output declaration syntax error when compile asm code

1,221 Views
IvyGuo
Contributor III

I used MC56F84786  and want to include eeprom drivers but EepromDrv/EepromDrv.c include a lot of code like this 

 

// clear RDCOLERR, ACCERR, FPVIOL flag
move.w #0x70,A1
move.bp A1,X:(r0)

 

when i compile the project ,CW11 IDE output

 

C:/nxp/CW MCU v11.1/MCU/DSP56800x_EABI_Tools/command_line_tools/mwcc56800e|Compiler|Error
(C:\Users\MSI-NB\workspace\Test_asm\EepromDrv\EepromDrv.c|666|5|1|33694|1)
= move.w #0x70,A1

But i creat the project  mixed c and asm

 

0 Kudos
Reply
2 Replies

1,190 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I have tested the following code, I have not problem.

Pls have a try.

 

void asmTest(void)
{
asm{
move.w #0x70,A1
move.bp A1,X:(r0)
}
}

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply

1,220 Views
IvyGuo
Contributor III

Error:

IvyGuo_0-1676893715673.png

creat a project in this way:so the asm code would be compiled 

IvyGuo_1-1676893756293.png

 

0 Kudos
Reply