cancel
Showing results for 
Search instead for 
Did you mean: 

ST72F - executing code in RAM

rk-system
Associate II
Posted on April 24, 2003 at 12:01

ST72F - executing code in RAM

4 REPLIES 4
rk-system
Associate II
Posted on April 22, 2003 at 08:45

Hello!

I'm using ST72F62x devices. I'm trying to execute small program in RAM. After uploading code (via ICC), modyfying PC in stack the program runs only if it begins from address 0x40. If I set higher address the program doesnt start properly. The same problem occurs when the code is loaded from 0x40 and its size is larger than 64 bytes: when code is located from 0x40 to 0x7F code works fine, but if I shift it by some bytes: eg from 0x50 to 0x8F, it doesnt work.

Michal

shreya
Associate II
Posted on April 22, 2003 at 10:25

Hello,

I assume what you are doing is :

1)Write your code into RAM

2)Modify stack portion storing PC

3)Executing ''Go'' command

In this case, when the Go command is executed, the memory locations 80 and 81 are written into, corrupting your program. So, it is not surprising that the code is no longer running.

Hope this helps....

rk-system
Associate II
Posted on April 24, 2003 at 12:01

Thank you!

Simple solution for big problem.

Now I know how important is accurate study of documentation...

rk-system
Associate II
Posted on April 24, 2003 at 12:01

Thank you!

Simple solution for big problem.

Now I know how important is accurate study of documentation...