John> [st32 flash can be at 0x0 or 0x8000000, I want to link my code at 0x0...]

Is there a specific technical advantage you are gaining? I can't think of any. If there is - please explain.

Have you tried the "load address" in the linker? Hence, the code "loads" at address(fixed location of flash) and runs at (aliased location)

Here's an example of the "load address" technique.

http://lostarm.svn.sourceforge.net/viewvc/lostarm/trunk/chips/at91sam7x256/source/at91sam7x256_ld?revision=28&view=markup

Examples are on line 68, 79, 196, etc.

[ A note of magic, on the linker command line, the variable: __layout_flash is set to 0 or 1]

-Duane.


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to