Modify the program counter in coldfire v2.

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

Modify the program counter in coldfire v2.

1,564件の閲覧回数
b_q_j
Contributor I
I am trying (without success) to change the program counter from where it is executing in flash (a loader program), to the location of an .s19 file in SRAM, to begin executing.  If anyone has an explanation or an example, it would be most helpful.  btw I am using a M5213EVB. 

Thanks,
Brandon

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

370件の閲覧回数
admin
Specialist II
Hmm, not sure what the problem could be. In assembly language, you would use the JMP instruction. In a C program, you would use a function call at a specific address:
((void (*)(void))0x12345678)();
Regards,
- mike
0 件の賞賛
返信

370件の閲覧回数
b_q_j
Contributor I
I had never seen that before!  Perfect, thank you!

-Brandon
0 件の賞賛
返信