Hi,
When I am writting a code in C, how do I make the code reside in a particular location in the memory? What I mean is that, I wan't certain functions (the main function) to reside at memory (FLASH) location 0x0000 onwards & a few functions (may be some bootloader code) at location 0x10000 onwards.
What I intend to do here is that the application code will always start at address 0x0000 & the bootloader at address 0x10000. I may do the reverse too (app at 0x10000 & bootloader at 0x0000).
How do I do this?
I remember doing this on some other compiler (while writting asembly codes) by stating ".ORG 0x8000", or something similar.
-
Thanks
-
Regards
Soumyajit