1
関数コールの前にPC値を返すARM Cortex MシリーズICの関数を記述するためのトリックはありますか?アセンブリ言語を使用しないでください。Cを使用したARM Cortex Mシリーズのプログラムカウンタ値の取得
関数コールの前にPC値を返すARM Cortex MシリーズICの関数を記述するためのトリックはありますか?アセンブリ言語を使用しないでください。Cを使用したARM Cortex Mシリーズのプログラムカウンタ値の取得
__current_pc
の組み込み関数を使用できます。
int main()
{
printf("Current PC = %u\n", __current_pc());
return 0;
}