MCUXpresso

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

MCUXpresso

182 Views
BPB
Contributor I

Does MCUXpresso support a way to include Assembly code, inline or file?

0 Kudos
Reply
1 Reply

173 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

In the C file, you can add the lines like:

__asm volatile ("LDR R0, =0x40000220\n\t"

"MOV R1, #56\n\t"

"STR R1, [R0]");

 

hope it can help you

BR

XiangJun Rong

0 Kudos
Reply