CW11 output declaration syntax error when compile asm code

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

CW11 output declaration syntax error when compile asm code

1,224件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,193件の閲覧回数
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 件の賞賛
返信

1,223件の閲覧回数
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 件の賞賛
返信