|Assign static library to specific address
|Page 1 of 1|
|Author:||cindy [ Sat Aug 02, 2014 10:28 pm ]|
|Post subject:||Assign static library to specific address|
Here is a example.
sample.zip [61.29 KiB]
Downloaded 299 times
Please import the sample.zip.
There are two projects inside.
1.png [ 7.29 KiB | Viewed 4737 times ]
In lib.c, we put all functions in a user defined section ".rom_code".
2.png [ 13.71 KiB | Viewed 4737 times ]
In sag file, assign .rom_code to 0x510000
3.png [ 7.52 KiB | Viewed 4737 times ]
The output of project "usercode":
4.png [ 5.62 KiB | Viewed 4736 times ]
|Author:||cindy [ Sat Aug 02, 2014 10:57 pm ]|
|Post subject:||Re: Assign static library to specific address|
Another sample code
usercode2.zip [46.45 KiB]
Downloaded 310 times
5.png [ 17.25 KiB | Viewed 4733 times ]
|Page 1 of 1||All times are UTC + 8 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group