ISP Go command from RAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ISP Go command from RAM

跳至解决方案
1,316 次查看
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,187 次查看
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,188 次查看
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 项奖励
回复