Okey, I found how to do it. I used "Relocating majority of application into RAM" procedure.
Now, at startup the code is copied to Ram, but except the main function. When I debug, I can see that my code is over 0x10000000 adrress but in the main section, all the instructions are: "movs r0,r0", and my mcu freezes after boot.
Any idea about what is happening?
Thank you!
regards.