ISP Go command from RAM

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

ISP Go command from RAM

Jump to solution
1,305 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
1,176 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
1,177 Views
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 Kudos
Reply