Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

User19956
Level 1
Level 1
Hi.
I want to write data to A11(Return Address) and i don't know how to using asm grammar.
I tried below already but it doesn't work.

unsigned int curr_pc = 0x800043DC;
__asm__("mov.d a11,%1" :"a11" :: "d" (curr_pc));


Thank you for reading.
0 Likes
1 Reply
teoBits
Employee
Employee
100 replies posted 50 replies posted 25 replies posted
Hello,

you can take a look at Assembly_C_Code_1_KIT_TC297_TFT code example, together with its training

Using AURIX Development Studio, you can simply import the code example from the form File >> Import... >> Infineon >> "AURIX Development Studio Project", select "Infineon Code Examples Repository" and select it.
The code can be easily ported to TC27x by creating a new project for TC27x and copying the files and the code needed in the Cpu_main files. Also make sure all the instructions are supported in your device!


If you don't have AURIX™ Development Studio, you can get it here: AURIX™ Development Studio

teoBits
0 Likes