ST Visual Programmer - setting the PC register before 'RAM Exec'
Hi,
There is an option of executing the code in RAM through the option 'RAM Exec' in ST Visual Programmer. I tested this feature and it looks like the code is starting from address 0.
I wonder if I can change this and set different starting address.
-----
I studied the UM0470 document where the SWIM protocol is described and see::
After a DM break, the CPU is stalled (through the EMU_Stall signal). While the CPU is stalled, the SWIM can read/write any memory location or any memory mapped register. The program can be continued from the breakpoint, by resetting the stall bit.If a change of PC is needed, the SWIM must write the new PC value using the method described in Section3.7: CPU register access on page16. In order to fetch the code from the new PC address, the SWIM must set the FLUSH bit in the DM control/status register 2 (DM_CSR2) (refer to Section4.12.10 on page 33) before resetting the STALL bit.
---
So is there any way to set the PC in advance in ST Visual Programmer? Or maybe there are some rules how the PC is set. Need to test with different memory map than regular 'start from address 0' approach.
