ISP Go command from RAM

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

ISP Go command from RAM

ソリューションへジャンプ
1,311件の閲覧回数
zorandjokic
Contributor II

I'm working with LPC2378 using Keil 4 ARM. I've made little program with function in RAM at location 0x40002000 which  initializes WDT and go into endless loop without WDT feed, so WDT reset happens. Everything works OK.

Then I wrote ISP routine that writes to RAM (same locations) the same bytes that compiler generated (I noted them in listing of RAM function). With FlashMagic tool I checked that they are written at 0x40002000 and that are the same as compiler generated bytes of above mentioned code. That was everything right.
Back to my ISP routine- after writing bytes (code) in RAM, I sent ISP Go command (0x30 was return value- that is OK)  to 0x40002000 in Arm mode, but Watchdog reset doesn't happened.


Regards

タグ(1)
0 件の賞賛
返信
1 解決策
1,182件の閲覧回数
zorandjokic
Contributor II

I found where the error were. I should write byte (that represents RAM code) in reverse order. When doing so, code works as expected.

Regards

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,183件の閲覧回数
zorandjokic
Contributor II

I found where the error were. I should write byte (that represents RAM code) in reverse order. When doing so, code works as expected.

Regards

0 件の賞賛
返信