How to solve assembler build error?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Reddit
Level 1
Level 1
First reply posted First question asked Welcome!

Hello,

I am trying to build one project for Aurix TC275 via Aurix Development Studio 1.6.0, i'm not familiar with assembler language, but now i meet some error during building stage.

Code:

 

 __asm("movh.a %a15,0xa002\n"
       "\tlea %a15,[%a15]0x0020\n"
       "\tji %a15");

 

Error:

 

ctc E344:illegal argument reference "%a"

 

How to solve this problem?

Thanks so much for your help.

0 Likes
1 Solution
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

Please change the format as below and it should work:

                                                    Prudhvi_0-1654494151254.png

Basically, remove "%" in "%a15" and add # in movh.a instruction. Please refer to Tasking Compiler manual for more details an example from which is given below:

                                                                 Prudhvi_1-1654494259525.png

Regards,

Prudhvi.

View solution in original post

0 Likes
2 Replies
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

Please change the format as below and it should work:

                                                    Prudhvi_0-1654494151254.png

Basically, remove "%" in "%a15" and add # in movh.a instruction. Please refer to Tasking Compiler manual for more details an example from which is given below:

                                                                 Prudhvi_1-1654494259525.png

Regards,

Prudhvi.

0 Likes

Thank you very much, it works😀

0 Likes